public TraceQueryHandlerDecorator(IQueryHandler <TQuery, TResponse> decoratedRequestHandler,
                                   ITracer tracer,
                                   IOptionsSnapshot <TraceSettings> traceSettingOptions)
 {
     this.decoratedRequestHandler = decoratedRequestHandler;
     this.tracer        = tracer;
     this.traceSettings = traceSettingOptions.Value;
 }
Exemple #2
0
 public TraceCommandHandlerDecorator(
     ICommandHandler <TCommand> decoratedRequestHandler,
     ITracer tracer,
     IOptionsSnapshot <TraceSettings> traceSettingOptions)
 {
     this.decoratedRequestHandler = decoratedRequestHandler;
     this.tracer        = tracer;
     this.traceSettings = traceSettingOptions.Value;
 }