Beispiel #1
0
 private void PurgeLogs()
 {
     Services.Log.Info("Running Job: Purge old log entries");
     using (var logRepository = new LogRepository())
     {
         logRepository.PurgeOldLogEntries();
     }
 }
 private void LogConnectionMessage(string message)
 {
     if (!string.IsNullOrEmpty(HomeHubId))
     {
         using (var logRepository = new LogRepository())
         {
             logRepository.Priority(HomeHubId, message);
         }
     }
 }