Beispiel #1
0
 /// <summary/>
 public MongoRecordProcessor(
     ILogger <MongoRecordProcessor> logger,
     IOptionsMonitor <MessagingClientOptions> options,
     ExceptionModelConverter converter,
     IMessagingClientFactory clientFactory,
     ISystemClock clock)
 {
     this.logger        = logger;
     this.options       = options;
     this.converter     = converter;
     this.clientFactory = clientFactory;
     this.clock         = clock;
 }
 public MongoMessageHandlerProxy(
     ILogger <MongoMessageHandlerProxy <TMessage, TResponse> > logger,
     IOptions <MongoHandlingClientOptions> options,
     IDiagnosticContext context,
     ITypeEncoder typeEncoder,
     IMongoClientFactory clientFactory,
     ISystemClock clock,
     ExceptionModelConverter converter)
 {
     this.logger      = logger;
     this.context     = context;
     this.typeEncoder = typeEncoder;
     this.clock       = clock;
     this.options     = options.Value;
     this.collection  = clientFactory
                        .GetDatabase()
                        .GetCollection <MongoRecord>(MongoNames.MessageCollectionName);
     this.converter = converter;
 }