Beispiel #1
0
        public Task StopAsync(CancellationToken cancellationToken)
        {
            _trace.Info("Stopping event listener.");
            _observable.Dispose();
            _eventStoreSubscription.Stop();
            _trace.Info("Event listener stopped.");

            return(Task.FromResult(true));
        }
Beispiel #2
0
 public void Cancel()
 {
     _trace.Info("Cancelling event listener.");
     _observable?.Dispose();
     _eventStoreSubscription?.Stop();
 }
Beispiel #3
0
 public void Cancel()
 {
     _trace.Info("Cancelling LiveProcessingStartedListener listener.");
     _observable?.Dispose();
     _eventStoreSubscription?.Stop();
 }