public void SetInternalSourceType(SqlConnectionInternalSourceType sourceType) { _currentSourceType = sourceType; if (_currentSourceType == SqlConnectionInternalSourceType.RoutingDestination) { // When we get routed, save the current phase durations so that we can use them in the error message later Debug.Assert(_currentPhase == SqlConnectionTimeoutErrorPhase.PostLogin, "Should not be switching to the routing destination until Post Login is completed"); _originalPhaseDurations = _phaseDurations; _phaseDurations = new SqlConnectionTimeoutPhaseDuration[(int)SqlConnectionTimeoutErrorPhase.Count]; SetAndBeginPhase(SqlConnectionTimeoutErrorPhase.PreLoginBegin); } }
public void SetInternalSourceType(SqlConnectionInternalSourceType sourceType) { _currentSourceType = sourceType; if (_currentSourceType == SqlConnectionInternalSourceType.RoutingDestination) { // When we get routed, save the current phase durations so that we can use them in the error message later Debug.Assert(_currentPhase == SqlConnectionTimeoutErrorPhase.PostLogin, "Should not be switching to the routing destination until Post Login is completed"); _originalPhaseDurations = _phaseDurations; _phaseDurations = new SqlConnectionTimeoutPhaseDuration[(int)SqlConnectionTimeoutErrorPhase.Count]; SetAndBeginPhase(SqlConnectionTimeoutErrorPhase.PreLoginBegin); } }
public void SetInternalSourceType(SqlConnectionInternalSourceType sourceType) { currentSourceType = sourceType; }
public void SetInternalSourceType(SqlConnectionInternalSourceType sourceType) { currentSourceType = sourceType; }