예제 #1
0
 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);
 }
예제 #2
0
        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; };
        }
예제 #4
0
        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 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,
            });
        }
예제 #7
0
 public ErrorIngestionFaultPolicy(SatelliteImportFailuresHandler importFailuresHandler)
 {
     this.importFailuresHandler = importFailuresHandler;
 }
예제 #8
0
 public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, AuditImporterFeature importer)
 {
     importer.importFailuresHandler = importFailuresHandler;
 }
예제 #9
0
 public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, ErrorIngestor errorIngestor, ErrorImporter importer)
 {
     importer.importFailuresHandler = importFailuresHandler;
     importer.errorIngestor         = errorIngestor;
 }
예제 #10
0
 public StartupTask(SatelliteImportFailuresHandler importFailuresHandler, ErrorImporter importer)
 {
     importer.importFailuresHandler = importFailuresHandler;
 }