public RabbitMQPublisher( IConnectionProvider <RabbitMQConnection> connectionProvider, MessageWriterProvider messageWriterProvider, RabbitMessageSerializer rabbitMessageSerializer, RabbitPipeline pipeline, ILogger <RabbitMQPublisher> logger, IServiceProvider serviceProvider ) { this.connectionProvider = connectionProvider; this.messageWriterProvider = messageWriterProvider; this.rabbitMessageSerializer = rabbitMessageSerializer; this.pipeline = pipeline; this.logger = logger; this.serviceProvider = serviceProvider; }
public RabbitMQSubscription(Type subscriptionType, IServiceProvider serviceProvider, RabbitPipeline rabbitPipeline) { this.subscriptionType = subscriptionType; this.serviceProvider = serviceProvider; this.receiveExecutionPipe = rabbitPipeline .Describe <T>() .Use(this) .Build(HandlerType.Receive); }