public void Stop() { s_logger.Information("Stoping pending notifications chaser..."); m_pollingJob.Stop(); s_logger.Information("Pending notifications chaser stoped."); }
public void StopNotificationProcessing() { if (m_subscriptions.Any()) { // Call sequence is important. First we stop receiving // of a new notifications then wait for completion of // received notifications processing. // m_pollingJob.Stop(); // Absense of new a notifications in the subscription // stop phase is essential guarantee. // foreach (var subscription in m_subscriptions.Values) { subscription.Stop(); } } }