Exemple #1
0
 public IntegrationEventBusHangFire(IBackgroundJobClient backgroundJobClient, ILogger <IntegrationEventBusHangFire> logger,
                                    IServiceProvider serviceProvider, IIntegrationEventBusSubscriptionsManager subsManager, IOptions <IntegrationEventBusHangFireOptions> options, IOptions <JsonOptions> jsonOptions)
     : base(logger, serviceProvider, subsManager, jsonOptions)
 {
     _backgroundJobClient = backgroundJobClient;
     _options             = options.Value;
 }
Exemple #2
0
 public IntegrationEventBusInMemory(ILogger <IntegrationEventBusInMemory> logger,
                                    IServiceProvider serviceProvider, IIntegrationEventBusSubscriptionsManager subsManager, IOptions <JsonOptions> jsonOptions)
 {
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _subsManager     = subsManager ?? new IntegrationEventBusInMemorySubscriptionsManager();
     _jsonOptions     = jsonOptions.Value;
     _serviceProvider = serviceProvider;
 }
 public IntegrationEventBusRabbitMQ(IRabbitMQPersistentConnection persistentConnection, ILogger <IntegrationEventBusRabbitMQ> logger,
                                    IServiceProvider serviceProvider, IIntegrationEventBusSubscriptionsManager subsManager, string queueName = null, int retryCount = 5)
 {
     _persistentConnection = persistentConnection ?? throw new ArgumentNullException(nameof(persistentConnection));
     _logger                      = logger ?? throw new ArgumentNullException(nameof(logger));
     _subsManager                 = subsManager ?? new IntegrationEventBusInMemorySubscriptionsManager();
     _queueName                   = queueName;
     _consumerChannel             = CreateConsumerChannel();
     _serviceProvider             = serviceProvider;
     _retryCount                  = retryCount;
     _subsManager.OnEventRemoved += SubsManager_OnEventRemoved;
 }