예제 #1
0
 private static void InitializeBaseCommands(CoreSettings settings, ICommandExecutor core)
 {
     Logger.Info($"Core running with this settings:{Environment.NewLine}{settings}");
     if (settings.UpdateDriversCommandEnabled)
         core.ExecuteCommandEvery(new UpdateDriversCommand(), settings.UpdateDriversCommandInterval);
     if (settings.DriversBlockCommandEnabled)
         core.ExecuteCommandDaily(new DriversBlockCommand(), settings.DriversBlockCommandTime.Hours, settings.DriversBlockCommandTime.Minutes, settings.DriversBlockCommandTime.Seconds);
 }