public void ResetHits() { if (!LoadRuntimeConfig()) { return; } foreach (var process in _currentRuntimeConfig.Processes) { _logger.LogInformation($"Resetting hits for process {process.ID} on port {process.ListeningPort}"); RecordingControllerClient.ResetHits(_host, process.ListeningPort); } }
public CoverageResult CollectResultAndReset() { if (!LoadRuntimeConfig()) { return(new CoverageResult(_map, Array.Empty <int[]>())); } CoverageResult result = null; foreach (var process in _currentRuntimeConfig.Processes) { _logger.LogInformation($"Collecting coverage result from process {process.ID} on port {process.ListeningPort}"); var procResult = RecordingControllerClient.CollectResultAndReset(_host, process.ListeningPort, _map); if (result == null) { result = procResult; } else { result = result.MergeWith(procResult); } } return(result); }
public void ResetHits() { _logger.LogInformation($"Resetting hits for {_host}:{_port}"); RecordingControllerClient.ResetHits(_host, _port); }
public CoverageResult CollectResultAndReset() { _logger.LogInformation($"Collecting coverage result for {_host}:{_port}"); return(RecordingControllerClient.CollectResultAndReset(_host, _port, _map)); }