43 references to RequestStage
System.Net.Requests (43)
System\Net\FtpWebRequest.cs (43)
217
private
RequestStage
_requestStage;
555
RequestStage
prev = FinishRequestStage(
RequestStage
.RequestStarted);
556
if (prev >=
RequestStage
.RequestStarted)
558
if (prev <
RequestStage
.ReadReady)
562
if (_requestStage <
RequestStage
.ReadReady)
576
FinishRequestStage(
RequestStage
.WriteReady);
578
FinishRequestStage(
RequestStage
.ReadReady);
595
FinishRequestStage(
RequestStage
.CheckForError);
628
RequestStage
prev = FinishRequestStage(
RequestStage
.RequestStarted);
632
if (prev >=
RequestStage
.RequestStarted)
638
if (prev >=
RequestStage
.ReadReady)
644
if (_requestStage >=
RequestStage
.ReadReady)
665
FinishRequestStage(
RequestStage
.CheckForError);
742
FinishRequestStage(
RequestStage
.RequestStarted);
744
FinishRequestStage(
RequestStage
.WriteReady);
782
FinishRequestStage(
RequestStage
.RequestStarted);
789
FinishRequestStage(
RequestStage
.CheckForError);
1153
RequestStage
stageMode =
RequestStage
.CheckForError;
1182
stageMode =
RequestStage
.ReleaseConnection;
1201
RequestStage
stageMode =
RequestStage
.CheckForError;
1271
stageMode = stream.CanRead ?
RequestStage
.ReadReady :
RequestStage
.WriteReady;
1286
stageMode =
RequestStage
.ReleaseConnection;
1317
private
RequestStage
FinishRequestStage(
RequestStage
stage)
1322
stage =
RequestStage
.ReleaseConnection;
1324
RequestStage
prev;
1333
if (stage ==
RequestStage
.CheckForError)
1336
if (prev ==
RequestStage
.ReleaseConnection &&
1337
stage ==
RequestStage
.ReleaseConnection)
1339
return
RequestStage
.ReleaseConnection;
1345
if (stage <=
RequestStage
.RequestStarted)
1352
if (stage ==
RequestStage
.ReleaseConnection)
1356
prev !=
RequestStage
.ReadReady &&
1370
if ((stage ==
RequestStage
.ReleaseConnection ||
1371
prev ==
RequestStage
.ReleaseConnection)
1398
if (stage >=
RequestStage
.WriteReady)
1416
if (stage >=
RequestStage
.ReadReady && readResult != null && !readResult.InternalPeekCompleted)
1437
if (_requestStage >=
RequestStage
.ReleaseConnection)