예제 #1
0
 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;
 }
예제 #2
0
 public RabbitMQSubscription(Type subscriptionType, IServiceProvider serviceProvider, RabbitPipeline rabbitPipeline)
 {
     this.subscriptionType     = subscriptionType;
     this.serviceProvider      = serviceProvider;
     this.receiveExecutionPipe = rabbitPipeline
                                 .Describe <T>()
                                 .Use(this)
                                 .Build(HandlerType.Receive);
 }