示例#1
0
 public RabbitMqHandler(IRabbitMqClient rabbitMqClient, IContextBuilder contextBuilder,
                        ISpanContextBuilder spanContextBuilder, IRequestProcessor requestProcessor, IPayloadBuilder payloadBuilder,
                        IPayloadValidator payloadValidator)
 {
     _rabbitMqClient     = rabbitMqClient;
     _contextBuilder     = contextBuilder;
     _spanContextBuilder = spanContextBuilder;
     _requestProcessor   = requestProcessor;
     _payloadBuilder     = payloadBuilder;
     _payloadValidator   = payloadValidator;
 }
示例#2
0
 public RabbitMqHandler(IRabbitMqClient rabbitMqClient, IContextBuilder contextBuilder,
                        ISpanContextBuilder spanContextBuilder, IRequestProcessor requestProcessor, IPayloadBuilder payloadBuilder,
                        IPayloadValidator payloadValidator, RabbitMqOptions options, IServiceProvider serviceProvider)
 {
     _rabbitMqClient     = rabbitMqClient;
     _contextBuilder     = contextBuilder;
     _spanContextBuilder = spanContextBuilder;
     _requestProcessor   = requestProcessor;
     _payloadBuilder     = payloadBuilder;
     _payloadValidator   = payloadValidator;
     _options            = options;
     _requestHooks       = serviceProvider.GetServices <IRequestHook>();
     _responseHooks      = serviceProvider.GetServices <IResponseHook>();
 }