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; }
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>(); }