public Task InternalStop() { _logger.LogTrace($"{nameof(MonitorLocalProcess)}: Internal stopping local process"); LocalProcess?localProcess = _localProcess?.GetAndClear(); localProcess?.Stop(); _monitorStream.NewMessageBlockId(); return(localProcess?.Completion ?? Task.CompletedTask); }
public async Task Stop() { _logger.LogInformation($"{nameof(MonitorLocalProcess)}: Stopping local process monitoring"); _runningTcs?.GetAndClear()?.SetResult(true); await InternalStop(); }