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)); } }
public IEnumerable <string> GetDailyExtEventsDirs() { return(string.IsNullOrWhiteSpace(ExtendedEventsDirectory) ? _provider.GetDailyExtEventsDirs() : Enumerable.Repeat(ExtendedEventsDirectory, 1)); }