示例#1
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _logger?.LogInformation($"Stop loop pipe.");
     if (_loopWorker.IsRunning)
     {
         _loopWorker.StopWorker();
     }
     return(Task.CompletedTask);
 }
示例#2
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     if (_worker.IsRunning)
     {
         _worker.StopWorker();
     }
     _logger?.LogInformation("Stabilizer loop is stopping.");
     return(Task.CompletedTask);
 }