public void Stop() { if (NodeRunnerDict != null) { foreach (var runners in NodeRunnerDict.Values) { foreach (var runner in runners) { foreach (var child in runner.Slices) { child.NeedRestart = false; } runner.Close(); } } } if (HeathCheckTimer != default) { HeathCheckTimer.Dispose(); } if (DistributedMonitorTime != default) { DistributedMonitorTime.Dispose(); } if (DistributedHoldTimer != default) { DistributedHoldTimer.Dispose(); } }
public void Stop() { foreach (var runner in ConsumerRunners.Values) { runner.Close(); } HeathCheckTimer?.Dispose(); DistributedMonitorTime?.Dispose(); DistributedHoldTimer?.Dispose(); }
public void Dispose() { if (logger.IsEnabled(LogLevel.Information)) { logger.LogInformation("EventBus Background Service is disposing."); } foreach (var runner in ConsumerRunners.Values) { runner.Close(); } DistributedMonitorTime?.Dispose(); DistributedHoldTimer?.Dispose(); HeathCheckTimer?.Dispose(); }
public void Stop() { foreach (var runner in ConsumerRunners.Values) { foreach (var child in runner.Slices) { child.NeedRestart = false; } runner.Close(); } HeathCheckTimer?.Dispose(); DistributedMonitorTime?.Dispose(); DistributedHoldTimer?.Dispose(); }
public void Stop() { if (NodeRunnerDict != null) { foreach (var runners in NodeRunnerDict.Values) { foreach (var runner in runners) { runner.Close(); } } } HeathCheckTimer?.Dispose(); DistributedMonitorTime?.Dispose(); DistributedHoldTimer?.Dispose(); }
public void Dispose() { if (logger.IsEnabled(LogLevel.Information)) { logger.LogInformation("EventBus Background Service is disposing."); } foreach (var runner in ConsumerRunners.Values) { foreach (var child in runner.Slices) { child.NeedRestart = false; } runner.Close(); } DistributedMonitorTime.Dispose(); DistributedHoldTimer.Dispose(); HeathCheckTimer.Dispose(); }