Skip to content
Snippets Groups Projects
Commit 04d6d48c authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Use expressions for accessing private fields.

parent 244e90eb
No related branches found
No related tags found
No related merge requests found
...@@ -108,8 +108,8 @@ namespace ATxCommon.Serializables ...@@ -108,8 +108,8 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
[XmlElement("LastStatusUpdate", DataType = "dateTime")] [XmlElement("LastStatusUpdate", DataType = "dateTime")]
public DateTime LastStatusUpdate { public DateTime LastStatusUpdate {
get { return _lastStatusUpdate; } get => _lastStatusUpdate;
set { _lastStatusUpdate = value; } set => _lastStatusUpdate = value;
} }
/// <summary> /// <summary>
...@@ -117,7 +117,7 @@ namespace ATxCommon.Serializables ...@@ -117,7 +117,7 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
[XmlElement("LastStorageNotification", DataType = "dateTime")] [XmlElement("LastStorageNotification", DataType = "dateTime")]
public DateTime LastStorageNotification { public DateTime LastStorageNotification {
get { return _lastStorageNotification; } get => _lastStorageNotification;
set { set {
_lastStorageNotification = value; _lastStorageNotification = value;
Serialize(); Serialize();
...@@ -129,7 +129,7 @@ namespace ATxCommon.Serializables ...@@ -129,7 +129,7 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
[XmlElement("LastAdminNotification", DataType = "dateTime")] [XmlElement("LastAdminNotification", DataType = "dateTime")]
public DateTime LastAdminNotification { public DateTime LastAdminNotification {
get { return _lastAdminNotification; } get => _lastAdminNotification;
set { set {
_lastAdminNotification = value; _lastAdminNotification = value;
Serialize(); Serialize();
...@@ -141,7 +141,7 @@ namespace ATxCommon.Serializables ...@@ -141,7 +141,7 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
[XmlElement("LastGraceNotification", DataType = "dateTime")] [XmlElement("LastGraceNotification", DataType = "dateTime")]
public DateTime LastGraceNotification { public DateTime LastGraceNotification {
get { return _lastGraceNotification; } get => _lastGraceNotification;
set { set {
_lastGraceNotification = value; _lastGraceNotification = value;
Serialize(); Serialize();
...@@ -152,7 +152,7 @@ namespace ATxCommon.Serializables ...@@ -152,7 +152,7 @@ namespace ATxCommon.Serializables
/// String indicating why the service is currently suspended (empty if not suspended). /// String indicating why the service is currently suspended (empty if not suspended).
/// </summary> /// </summary>
public string LimitReason { public string LimitReason {
get { return _limitReason; } get => _limitReason;
set { set {
if (_limitReason == value) return; if (_limitReason == value) return;
...@@ -166,7 +166,7 @@ namespace ATxCommon.Serializables ...@@ -166,7 +166,7 @@ namespace ATxCommon.Serializables
/// The full path to the folder currently being transferred. /// The full path to the folder currently being transferred.
/// </summary> /// </summary>
public string CurrentTransferSrc { public string CurrentTransferSrc {
get { return _currentTransferSrc; } get => _currentTransferSrc;
set { set {
_currentTransferSrc = value; _currentTransferSrc = value;
Log.Trace("CurrentTransferSrc was updated ({0}).", value); Log.Trace("CurrentTransferSrc was updated ({0}).", value);
...@@ -180,7 +180,7 @@ namespace ATxCommon.Serializables ...@@ -180,7 +180,7 @@ namespace ATxCommon.Serializables
/// <seealso cref="CurrentTargetTmpFull"/> on details for assembling the full path. /// <seealso cref="CurrentTargetTmpFull"/> on details for assembling the full path.
/// </summary> /// </summary>
public string CurrentTargetTmp { public string CurrentTargetTmp {
get { return _currentTargetTmp; } get => _currentTargetTmp;
set { set {
_currentTargetTmp = value; _currentTargetTmp = value;
Log.Trace("CurrentTargetTmp was updated ({0}).", value); Log.Trace("CurrentTargetTmp was updated ({0}).", value);
...@@ -192,7 +192,7 @@ namespace ATxCommon.Serializables ...@@ -192,7 +192,7 @@ namespace ATxCommon.Serializables
/// Flag indicating whether the service is currently suspended. /// Flag indicating whether the service is currently suspended.
/// </summary> /// </summary>
public bool ServiceSuspended { public bool ServiceSuspended {
get { return _serviceSuspended; } get => _serviceSuspended;
set { set {
if (_serviceSuspended == value) return; if (_serviceSuspended == value) return;
...@@ -206,7 +206,7 @@ namespace ATxCommon.Serializables ...@@ -206,7 +206,7 @@ namespace ATxCommon.Serializables
/// Flag indicating whether a transfer is currently running. /// Flag indicating whether a transfer is currently running.
/// </summary> /// </summary>
public bool TransferInProgress { public bool TransferInProgress {
get { return _transferInProgress; } get => _transferInProgress;
set { set {
_transferInProgress = value; _transferInProgress = value;
Log.Trace("FilecopyFinished was updated ({0}).", value); Log.Trace("FilecopyFinished was updated ({0}).", value);
...@@ -218,7 +218,7 @@ namespace ATxCommon.Serializables ...@@ -218,7 +218,7 @@ namespace ATxCommon.Serializables
/// Indicates whether the service was cleanly shut down (false while the service is running). /// Indicates whether the service was cleanly shut down (false while the service is running).
/// </summary> /// </summary>
public bool CleanShutdown { public bool CleanShutdown {
get { return _cleanShutdown; } get => _cleanShutdown;
set { set {
_cleanShutdown = value; _cleanShutdown = value;
Serialize(); Serialize();
...@@ -229,7 +229,7 @@ namespace ATxCommon.Serializables ...@@ -229,7 +229,7 @@ namespace ATxCommon.Serializables
/// The full size of the current transfer in bytes. /// The full size of the current transfer in bytes.
/// </summary> /// </summary>
public long CurrentTransferSize { public long CurrentTransferSize {
get { return _currentTransferSize; } get => _currentTransferSize;
set { set {
_currentTransferSize = value; _currentTransferSize = value;
Log.Trace("CurrentTransferSize was updated ({0}).", value); Log.Trace("CurrentTransferSize was updated ({0}).", value);
...@@ -241,7 +241,7 @@ namespace ATxCommon.Serializables ...@@ -241,7 +241,7 @@ namespace ATxCommon.Serializables
/// Total size of files of the running transfer that are already fully transferred. /// Total size of files of the running transfer that are already fully transferred.
/// </summary> /// </summary>
public long TransferredBytesCompleted { public long TransferredBytesCompleted {
get { return _transferredBytesCompleted; } get => _transferredBytesCompleted;
set { set {
_transferredBytesCompleted = value; _transferredBytesCompleted = value;
Log.Trace("TransferredBytesCompleted was updated ({0}).", value); Log.Trace("TransferredBytesCompleted was updated ({0}).", value);
...@@ -253,7 +253,7 @@ namespace ATxCommon.Serializables ...@@ -253,7 +253,7 @@ namespace ATxCommon.Serializables
/// Total size of files of the running transfer that are already fully transferred. /// Total size of files of the running transfer that are already fully transferred.
/// </summary> /// </summary>
public long TransferredBytesCurrentFile { public long TransferredBytesCurrentFile {
get { return _transferredBytesCurrentFile; } get => _transferredBytesCurrentFile;
set { set {
_transferredBytesCurrentFile = value; _transferredBytesCurrentFile = value;
Log.Trace("TransferredBytesCurrentFile was updated ({0}).", value); Log.Trace("TransferredBytesCurrentFile was updated ({0}).", value);
...@@ -265,7 +265,7 @@ namespace ATxCommon.Serializables ...@@ -265,7 +265,7 @@ namespace ATxCommon.Serializables
/// The progress of the current transfer in percent. /// The progress of the current transfer in percent.
/// </summary> /// </summary>
public int CurrentTransferPercent { public int CurrentTransferPercent {
get { return _currentTransferPercent; } get => _currentTransferPercent;
set { set {
_currentTransferPercent = value; _currentTransferPercent = value;
Log.Trace("CurrentTransferPercent was updated ({0}).", value); Log.Trace("CurrentTransferPercent was updated ({0}).", value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment