From a3d5b6ae03517573593332e37bfdfb871a4dc7c9 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Wed, 14 Feb 2018 16:37:22 +0100
Subject: [PATCH] Set default values for optional configuration parameters.

Refers to #29
---
 ATxCommon/Serializables/ServiceConfig.cs | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/ATxCommon/Serializables/ServiceConfig.cs b/ATxCommon/Serializables/ServiceConfig.cs
index 955a66d..2fb48f8 100644
--- a/ATxCommon/Serializables/ServiceConfig.cs
+++ b/ATxCommon/Serializables/ServiceConfig.cs
@@ -229,11 +229,29 @@ namespace ATxCommon.Serializables
         /// </summary>
         public ServiceConfig() {
             Log.Trace("ServiceConfig() constructor, setting defaults.");
-            // set values for the optional XML elements:
+            // set values for the optional XML elements (NOTE: parameters / variables that do not
+            // strictly REQUIRE a value are listed here as comments to denote they have not just
+            // been forgotten but an empty value is fine instead:
+
+            Debug = false;
+            // MarkerFile may be empty
+            // SmtpHost may be empty
             SmtpPort = 25;
+            // SmtpUserCredential may be empty
+            // SmtpPasswortCredential may be empty
+            // EmailFrom may be empty
+            EmailPrefix = "[AutoTx Service] ";
+            // AdminEmailAdress may be empty
+            // AdminDebugEmailAdress may be empty
+            SendTransferNotification = true;
+            SendAdminNotification = true;
+            AdminNotificationDelta = 60;
             GraceNotificationDelta = 720;
-
+            StorageNotificationDelta = 720;
+            // BlacklistedProcesses may be empty
             EnforceInheritedACLs = true;
+            // SpaceMonitoring may be empty
+            InterPacketGap = 0;
         }
 
         /// <summary>
-- 
GitLab