public ManagerConfiguration()
 {
     taskConfiguration = new TaskConfiguration
     {
         WeeklyTasks = new[] { weeklyTask1, weeklyTask2 },
         NewDayTasks = new[] { newDayTask },
     };
 }
Esempio n. 2
0
 public void ParseConfig()
 {
     GetExecutionPath();
     taskConfiguration = Extensions.Deserialize(new TaskConfiguration(), configurationFileName, DefaultNamespace);
     if (taskConfiguration == null)
     {
         throw new ConfigurationErrorsException("Failed to load TaskConfiguration!");
     }
 }