37 references to StreamCompletionState
System.Net.Http (37)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (37)
45private StreamCompletionState _requestCompletionState; 46private StreamCompletionState _responseCompletionState; 97_requestCompletionState = StreamCompletionState.InProgress; 98_responseCompletionState = StreamCompletionState.InProgress; 112_requestCompletionState = StreamCompletionState.Completed; 156public bool SendRequestFinished => _requestCompletionState != StreamCompletionState.InProgress; 182Debug.Assert(_requestCompletionState == StreamCompletionState.Completed); 248Debug.Assert(_requestCompletionState == StreamCompletionState.InProgress, $"Request already completed with state={_requestCompletionState}"); 255Debug.Assert(_responseCompletionState == StreamCompletionState.Completed); 256_requestCompletionState = StreamCompletionState.Completed; 267_requestCompletionState = StreamCompletionState.Failed; 291Debug.Assert(_requestCompletionState == StreamCompletionState.InProgress, $"Request already completed with state={_requestCompletionState}"); 292_requestCompletionState = StreamCompletionState.Completed; 295if (_responseCompletionState != StreamCompletionState.InProgress) 298sendReset = _responseCompletionState == StreamCompletionState.Failed; 365Debug.Assert(_requestCompletionState != StreamCompletionState.InProgress); 366Debug.Assert(_responseCompletionState != StreamCompletionState.InProgress); 367Debug.Assert(_requestCompletionState == StreamCompletionState.Failed || _responseCompletionState == StreamCompletionState.Failed, 384Debug.Assert(_requestCompletionState != StreamCompletionState.InProgress); 385Debug.Assert(_responseCompletionState != StreamCompletionState.InProgress); 413if (_requestCompletionState == StreamCompletionState.InProgress) 457if (_responseCompletionState == StreamCompletionState.InProgress) 459_responseCompletionState = StreamCompletionState.Failed; 460if (_requestCompletionState != StreamCompletionState.InProgress) 827Debug.Assert(_responseCompletionState == StreamCompletionState.InProgress, $"Response already completed with state={_responseCompletionState}"); 829_responseCompletionState = StreamCompletionState.Completed; 843if (_requestCompletionState == StreamCompletionState.Completed && !ConnectProtocolEstablished) 850Debug.Assert(_requestCompletionState != StreamCompletionState.Failed); 901Debug.Assert(_responseCompletionState == StreamCompletionState.InProgress, $"Response already completed with state={_responseCompletionState}"); 903_responseCompletionState = StreamCompletionState.Completed; 917if (_requestCompletionState == StreamCompletionState.Completed && !ConnectProtocolEstablished) 924Debug.Assert(_requestCompletionState != StreamCompletionState.Failed); 956if (_requestCompletionState == StreamCompletionState.Completed && _responseCompletionState == StreamCompletionState.Completed) 982_responseCompletionState == StreamCompletionState.Completed) 984if (_requestCompletionState == StreamCompletionState.InProgress)