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

Make constructors of ServiceConfig and ServiceStatus private.

Those objects are not meant to be instantiated directly but only using
the Deserialize() methods which takes care of creating a new object in
case deserializing fails for the status class.
parent 783ed583
Branches
Tags
No related merge requests found
...@@ -224,9 +224,9 @@ namespace ATxCommon.Serializables ...@@ -224,9 +224,9 @@ namespace ATxCommon.Serializables
/// <summary> /// <summary>
public ServiceConfig() {
/// ServiceConfig constructor, currently empty. /// ServiceConfig constructor, currently empty.
/// </summary> /// </summary>
private ServiceConfig() {
Log.Trace("ServiceConfig() constructor."); Log.Trace("ServiceConfig() constructor.");
} }
......
...@@ -40,7 +40,7 @@ namespace ATxCommon.Serializables ...@@ -40,7 +40,7 @@ namespace ATxCommon.Serializables
/// <summary> /// <summary>
/// The constructor, setting default values. /// The constructor, setting default values.
/// </summary> /// </summary>
public ServiceStatus() { private ServiceStatus() {
_currentTransferSrc = ""; _currentTransferSrc = "";
_currentTargetTmp = ""; _currentTargetTmp = "";
_transferInProgress = false; _transferInProgress = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment