public SatelliteImportFailuresHandler(IDocumentStore store, LoggingSettings loggingSettings, Func <string, Exception, Task> onCriticalError) { this.store = store; logPath = Path.Combine(loggingSettings.LogPath, @"FailedImports\Error"); failureCircuitBreaker = new ImportFailureCircuitBreaker(onCriticalError); Directory.CreateDirectory(logPath); }
public SatelliteImportFailuresHandler(IDocumentStore store, string logPath, Func <TransportMessage, object> messageBuilder, CriticalError criticalError) { this.store = store; this.logPath = logPath; this.messageBuilder = messageBuilder; failureCircuitBreaker = new ImportFailureCircuitBreaker(criticalError); Directory.CreateDirectory(logPath); }