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