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
No related branches found
Tags 2.1
No related merge requests found
......@@ -224,9 +224,9 @@ namespace ATxCommon.Serializables
/// <summary>
public ServiceConfig() {
/// ServiceConfig constructor, currently empty.
/// </summary>
private ServiceConfig() {
Log.Trace("ServiceConfig() constructor.");
}
......
......@@ -40,7 +40,7 @@ namespace ATxCommon.Serializables
/// <summary>
/// The constructor, setting default values.
/// </summary>
public ServiceStatus() {
private ServiceStatus() {
_currentTransferSrc = "";
_currentTargetTmp = "";
_transferInProgress = false;
......
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