Пример #1
0
 public void Shutdown()
 {
     _synchronizer.StopPeriodicFetching();
     _synchronizer.ClearFetchersCache();
     _synchronizer.StopPeriodicDataRecording();
     _pushManager.StopSse();
 }
Пример #2
0
 public void Shutdown()
 {
     _synchronizer.StopPeriodicFetching();
     _synchronizer.ClearFetchersCache();
     _synchronizer.StopPeriodicDataRecording();
     _pushManager.StopSse();
     _shutdownCancellationTokenSource.Cancel();
     _shutdownCancellationTokenSource.Dispose();
 }
Пример #3
0
        public void StopPeriodicFetching_ShouldStopFetchings()
        {
            // Act.
            _synchronizer.StopPeriodicFetching();

            // Assert.
            _splitFetcher.Verify(mock => mock.Stop(), Times.Once);
            _segmentFetcher.Verify(mock => mock.Stop(), Times.Once);
        }