コード例 #1
0
        public Task InternalStop()
        {
            _logger.LogTrace($"{nameof(MonitorLocalProcess)}: Internal stopping local process");

            LocalProcess?localProcess = _localProcess?.GetAndClear();

            localProcess?.Stop();

            _monitorStream.NewMessageBlockId();
            return(localProcess?.Completion ?? Task.CompletedTask);
        }
コード例 #2
0
 public async Task Stop()
 {
     _logger.LogInformation($"{nameof(MonitorLocalProcess)}: Stopping local process monitoring");
     _runningTcs?.GetAndClear()?.SetResult(true);
     await InternalStop();
 }