public ErrorPersister(IDocumentStore store, BodyStorageFeature.BodyStorageEnricher bodyStorageEnricher, IEnrichImportedErrorMessages[] enrichers, IFailedMessageEnricher[] failedMessageEnrichers) { this.store = store; this.bodyStorageEnricher = bodyStorageEnricher; this.enrichers = enrichers; failedMessageFactory = new FailedMessageFactory(failedMessageEnrichers); }
public FailedMessagePersister(IDocumentStore store, BodyStorageFeature.BodyStorageEnricher bodyStorageEnricher, IEnrichImportedMessages[] enrichers, IFailedMessageEnricher[] failedMessageEnrichers) { this.store = store; this.bodyStorageEnricher = bodyStorageEnricher; this.enrichers = enrichers.Where(x => x.EnrichErrors).ToArray(); failedMessageFactory = new FailedMessageFactory(failedMessageEnrichers); }
public ErrorQueueImport(IBuilder builder, ISendMessages forwarder, IDocumentStore store, IBus bus, CriticalError criticalError, LoggingSettings loggingSettings, Settings settings, BodyStorageFeature.BodyStorageEnricher bodyStorageEnricher) { this.builder = builder; this.forwarder = forwarder; this.store = store; this.bus = bus; this.criticalError = criticalError; this.loggingSettings = loggingSettings; this.settings = settings; this.bodyStorageEnricher = bodyStorageEnricher; enrichers = builder.BuildAll <IEnrichImportedMessages>().Where(e => e.EnrichErrors).ToArray(); var failedEnrichers = builder.BuildAll <IFailedMessageEnricher>().ToArray(); failedMessageFactory = new FailedMessageFactory(failedEnrichers); }