71 references to SqlConnectionTimeoutErrorPhase
System.Data (71)
fx\src\data\System\Data\SqlClient\SqlConnectionTimeoutErrorInternal.cs (55)
80
SqlConnectionTimeoutErrorPhase
currentPhase =
SqlConnectionTimeoutErrorPhase
.Undefined;
84
internal
SqlConnectionTimeoutErrorPhase
CurrentPhase
91
phaseDurations = new SqlConnectionTimeoutPhaseDuration[(int)
SqlConnectionTimeoutErrorPhase
.Count];
108
Debug.Assert(currentPhase ==
SqlConnectionTimeoutErrorPhase
.PostLogin, "Should not be switching to the routing destination until Post Login is completed");
110
phaseDurations = new SqlConnectionTimeoutPhaseDuration[(int)
SqlConnectionTimeoutErrorPhase
.Count];
111
SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.PreLoginBegin);
117
currentPhase =
SqlConnectionTimeoutErrorPhase
.PreLoginBegin;
122
internal void SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
timeoutErrorPhase)
132
internal void EndPhase(
SqlConnectionTimeoutErrorPhase
timeoutErrorPhase)
140
currentPhase =
SqlConnectionTimeoutErrorPhase
.Complete;
149
case
SqlConnectionTimeoutErrorPhase
.PreLoginBegin:
152
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration());
154
case
SqlConnectionTimeoutErrorPhase
.InitializeConnection:
157
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
158
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration());
160
case
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake:
163
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
164
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
165
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration());
167
case
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake:
170
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
171
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
172
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration() +
173
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake].GetMilliSecondDuration());
175
case
SqlConnectionTimeoutErrorPhase
.LoginBegin:
178
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
179
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
180
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration() +
181
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake].GetMilliSecondDuration(),
182
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.LoginBegin].GetMilliSecondDuration());
184
case
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth:
187
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
188
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
189
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration() +
190
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake].GetMilliSecondDuration(),
191
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.LoginBegin].GetMilliSecondDuration(),
192
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth].GetMilliSecondDuration());
194
case
SqlConnectionTimeoutErrorPhase
.PostLogin:
197
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
198
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
199
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration() +
200
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake].GetMilliSecondDuration(),
201
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.LoginBegin].GetMilliSecondDuration(),
202
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth].GetMilliSecondDuration(),
203
phaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PostLogin].GetMilliSecondDuration());
213
if ((currentPhase !=
SqlConnectionTimeoutErrorPhase
.Undefined) && (currentPhase !=
SqlConnectionTimeoutErrorPhase
.Complete))
224
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PreLoginBegin].GetMilliSecondDuration() +
225
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.InitializeConnection].GetMilliSecondDuration(),
226
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake].GetMilliSecondDuration() +
227
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake].GetMilliSecondDuration(),
228
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.LoginBegin].GetMilliSecondDuration(),
229
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth].GetMilliSecondDuration(),
230
originalPhaseDurations[(int)
SqlConnectionTimeoutErrorPhase
.PostLogin].GetMilliSecondDuration());
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (8)
1394
timeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.PreLoginBegin);
1428
timeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.PostLogin);
1629
timeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.PreLoginBegin);
1977
timeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake);
1978
timeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.LoginBegin);
1983
timeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth);
1984
timeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.PostLogin);
1988
timeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.PostLogin);
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
452
_connHandler.TimeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.PreLoginBegin);
453
_connHandler.TimeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.InitializeConnection);
503
_connHandler.TimeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.InitializeConnection);
504
_connHandler.TimeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake);
513
_connHandler.TimeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.SendPreLoginHandshake);
514
_connHandler.TimeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.ConsumePreLoginHandshake);
7133
_connHandler.TimeoutErrorInternal.EndPhase(
SqlConnectionTimeoutErrorPhase
.LoginBegin);
7134
_connHandler.TimeoutErrorInternal.SetAndBeginPhase(
SqlConnectionTimeoutErrorPhase
.ProcessConnectionAuth);