Esempio n. 1
0
 private void LoadExtendedEvents(IDataFilePathProvider pathProvider)
 {
     ClearTmpDir();
     foreach (string directory in pathProvider.GetDailyExtEventsDirs())
     {
         _logger.LogInformation("LoadExtendedEvents from: {0}", directory);
         SafeExecute(() => ImportLongQueriesData(directory));
         SafeExecute(() => ImportLongLocksData(directory));
         SafeExecute(() => ImportDeadLocksData(directory));
     }
 }
Esempio n. 2
0
 public IEnumerable <string> GetDailyExtEventsDirs()
 {
     return(string.IsNullOrWhiteSpace(ExtendedEventsDirectory)
                     ? _provider.GetDailyExtEventsDirs()
                     : Enumerable.Repeat(ExtendedEventsDirectory, 1));
 }