Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 public void Stop()
 {
     foreach (var runner in ConsumerRunners.Values)
     {
         runner.Close();
     }
     HeathCheckTimer?.Dispose();
     DistributedMonitorTime?.Dispose();
     DistributedHoldTimer?.Dispose();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 6
0
 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();
 }