コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }