public ErrorIngestion(ErrorIngestor errorIngestor, string errorQueue, RawEndpointFactory rawEndpointFactory, IDocumentStore documentStore, LoggingSettings loggingSettings, Func <string, Exception, Task> onCriticalError) { this.errorIngestor = errorIngestor; this.errorQueue = errorQueue; this.rawEndpointFactory = rawEndpointFactory; this.onCriticalError = onCriticalError; importFailuresHandler = new SatelliteImportFailuresHandler(documentStore, loggingSettings, onCriticalError); }
public Action <TransportReceiver> GetReceiverCustomization() { satelliteImportFailuresHandler = new SatelliteImportFailuresHandler(Builder.Build <IDocumentStore>(), Path.Combine(Settings.LogPath, @"FailedImports\Error"), tm => new FailedErrorImport { Message = tm, }); return(receiver => { receiver.FailureManager = satelliteImportFailuresHandler; }); }
public Action<TransportReceiver> GetReceiverCustomization() { satelliteImportFailuresHandler = new SatelliteImportFailuresHandler(Builder.Build<IDocumentStore>(), Path.Combine(Settings.LogPath, @"FailedImports\Error"), tm => new FailedErrorImport { Message = tm, }); return receiver => { receiver.FailureManager = satelliteImportFailuresHandler; }; }
public Action <TransportReceiver> GetReceiverCustomization() { satelliteImportFailuresHandler = new SatelliteImportFailuresHandler(builder.Build <IDocumentStore>(), Path.Combine(loggingSettings.LogPath, @"FailedImports\Audit"), tm => new FailedAuditImport { Message = tm }, criticalError); return(receiver => { receiver.FailureManager = satelliteImportFailuresHandler; }); }
public MsmqAuditQueueImporter(IDocumentStore store, IBuilder builder, IDequeueMessages receiver) { this.store = store; this.builder = builder; enabled = receiver is MsmqDequeueStrategy; importFailuresHandler = new SatelliteImportFailuresHandler(store, Path.Combine(Settings.LogPath, @"FailedImports\Audit"), tm => new FailedAuditImport { Message = tm, }); }
public ErrorIngestionFaultPolicy(SatelliteImportFailuresHandler importFailuresHandler) { this.importFailuresHandler = importFailuresHandler; }
public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, AuditImporterFeature importer) { importer.importFailuresHandler = importFailuresHandler; }
public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, ErrorIngestor errorIngestor, ErrorImporter importer) { importer.importFailuresHandler = importFailuresHandler; importer.errorIngestor = errorIngestor; }
public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, ErrorImporter importer) { importer.importFailuresHandler = importFailuresHandler; }