Exemplo n.º 1
0
 public NatsEventSubscriber(INatsConnection connection, IOptions <NatsOptions> options, IEventProcessor eventProcessor)
 {
     _connection     = connection;
     _eventProcessor = eventProcessor;
     _options        = options.Value;
     _eventProcessor.Setup();
 }
Exemplo n.º 2
0
 public NatsEventBus(IOptions <NatsOptions> options, INatsPersistentConnection persistentConnection,
                     IEventProcessor eventProcessor, IEventBusSubscriptionsManager subscriptionsManager,
                     ILogger <NatsEventBus> logger)
 {
     _persistentConnection = persistentConnection;
     _eventProcessor       = eventProcessor;
     _subscriptionsManager = subscriptionsManager;
     _logger  = logger;
     _options = options.Value;
 }
Exemplo n.º 3
0
 public NatsEventPublisher(INatsConnection connection, IOptions <NatsOptions> options, ILogger <NatsEventPublisher> logger)
 {
     _connection = connection;
     _options    = options.Value;
     _logger     = logger;
 }
Exemplo n.º 4
0
 public NatsPersistentConnection(ConnectionFactory factory, IOptions <NatsOptions> options, ILogger <NatsPersistentConnection> logger)
 {
     _logger  = logger;
     _options = options.Value;
     _factory = factory;
 }