Beispiel #1
0
 public EventBusRedis(IRedisConnection redisConnection, ILifetimeScope lifetimeScope, ILogger <EventBusRedis> logger, IEventBusSubscribeManager eventBusSubscribeManager)
 {
     this.redisConnection          = redisConnection;
     this.lifetimeScope            = lifetimeScope;
     this.logger                   = logger;
     this.eventBusSubscribeManager = eventBusSubscribeManager;
 }
 public EventBusRabbitMQ(IRabbitMQConnection rabbitMQConnection, ILifetimeScope lifetimeScope, ILogger <EventBusRabbitMQ> logger, IEventBusSubscribeManager eventBusSubscribeManager, string queueName = null)
 {
     this.rabbitMQConnection                  = rabbitMQConnection;
     this.lifetimeScope                       = lifetimeScope;
     this.logger                              = logger;
     this.eventBusSubscribeManager            = eventBusSubscribeManager;
     this.queueName                           = queueName;
     consumerChannel                          = CreateConsumerChannel();
     eventBusSubscribeManager.OnEventRemoved += EventBusSubscribeManager_OnEventRemoved;
 }