internal void SetAndBeginPhase(SqlConnectionTimeoutErrorPhase timeoutErrorPhase) { _currentPhase = timeoutErrorPhase; if (_phaseDurations[(int)timeoutErrorPhase] == null) { _phaseDurations[(int)timeoutErrorPhase] = new SqlConnectionTimeoutPhaseDuration(); } _phaseDurations[(int)timeoutErrorPhase].StartCapture(); }