Esempio n. 1
0
 public EventSender(EventReceiver receiver, Checkpoint checkpoint, StoreConfig storeConfig)
 {
     _storeReceiver = receiver;
     _checkpoint    = checkpoint;
     _storeConfig   = storeConfig;
     if (_storeConfig.ReplicationIsActive)
     {
         _eventHubClient = EventHubClient.CreateFromConnectionString(_storeConfig.EventHubConnectionString);
         _ = this.StartListeners();
         _ = _storeReceiver.LogCount();
     }
 }
Esempio n. 2
0
 public EventSender(IQueueContainer queueContainer, EventReceiver storeReceiver, Checkpoint checkpoint, StoreConfig storeConfig)
 {
     _storeReceiver  = storeReceiver;
     _queueContainer = queueContainer;
     _checkpoint     = checkpoint;
     _storeConfig    = storeConfig;
     if (_storeConfig.ReplicationIsActive)
     {
         _eventHubClient = EventHubClient.CreateFromConnectionString(_storeConfig.EventHubConnectionString);
         _       = StartListeners();
         _active = true;
     }
 }