コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="domainEventsToExecute"></param>
 /// <param name="executeMiddlewaresService"></param>
 public InMemoryEventBus(
     IInMemoryDomainEventsConsumer domainEventsToExecute,
     IExecuteMiddlewaresService executeMiddlewaresService)
 {
     _domainEventsToExecute     = domainEventsToExecute;
     _executeMiddlewaresService = executeMiddlewaresService;
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="connectionMultiplexer"></param>
 /// <param name="executeMiddlewaresService"></param>
 /// <param name="domainEventJsonSerializer"></param>
 public RedisEventBus(
     IConnectionMultiplexer connectionMultiplexer,
     IExecuteMiddlewaresService executeMiddlewaresService,
     IDomainEventJsonSerializer domainEventJsonSerializer)
 {
     _connectionMultiplexer     = connectionMultiplexer;
     _executeMiddlewaresService = executeMiddlewaresService;
     _domainEventJsonSerializer = domainEventJsonSerializer;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="domainEventJsonSerializer"></param>
 /// <param name="config"></param>
 /// <param name="executeMiddlewaresService"></param>
 /// <param name="rabbitMqParams"></param>
 public RabbitMqEventBus(
     // MsSqlEventBus failOverPublisher,
     IDomainEventJsonSerializer domainEventJsonSerializer,
     RabbitMqConnectionFactory config,
     IExecuteMiddlewaresService executeMiddlewaresService,
     IOptions <RabbitMqConfigParams> rabbitMqParams)
 {
     // _failOverPublisher = failOverPublisher;
     _domainEventJsonSerializer = domainEventJsonSerializer;
     _config = config;
     _executeMiddlewaresService = executeMiddlewaresService;
     _rabbitMqParams            = rabbitMqParams;
 }