/// <summary> /// Constructor /// </summary> /// <param name="domainEventsToExecute"></param> /// <param name="executeMiddlewaresService"></param> public InMemoryEventBus( IInMemoryDomainEventsConsumer domainEventsToExecute, IExecuteMiddlewaresService executeMiddlewaresService) { _domainEventsToExecute = domainEventsToExecute; _executeMiddlewaresService = executeMiddlewaresService; }
/// <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; }
/// <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; }