private void DisposeContext(ExceptionCollector exceptionCollector) { try { _contextProvider.Dispose(); } catch (Exception exception) { _exceptionProcessor.UpdateResultsWithException(_result.UpdateScenarioResult, exception); exceptionCollector.Capture(exception); } }
public void Dispose() { _context?.Dispose(); }