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