public void Cancel() { lock (this) { _canceled = true; _executor?.Cancel(); _testEnvironment.LogInfo("Test execution canceled."); } }
public void Cancel() { lock (this) { _canceled = true; _executor?.Cancel(); _logger.LogInfo("Test execution canceled."); } }
public void Cancel() { lock (_lock) { if (_canceled) { return; } _canceled = true; _executor?.Cancel(); _logger.LogInfo(Resources.TestExecutionCancelled); } }
public void Cancel() { lock (_lock) { if (_canceled) { return; } _canceled = true; _executor?.Cancel(); _logger.LogInfo("Test execution canceled."); } }