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