24 references to State
Microsoft.AspNetCore.Server.Kestrel.Core (24)
Internal\Http2\Http2FrameWriter.cs (8)
230
var
observed = producer.UnobservedState;
231
var
currentState = producer.CurrentState;
234
static bool HasStateFlag(Http2OutputProducer.
State
state, Http2OutputProducer.
State
flags)
238
var flushHeaders = HasStateFlag(observed, Http2OutputProducer.
State
.FlushHeaders) && !HasStateFlag(currentState, Http2OutputProducer.
State
.FlushHeaders);
242
var aborted = HasStateFlag(currentState, Http2OutputProducer.
State
.Aborted);
243
var completed = HasStateFlag(currentState, Http2OutputProducer.
State
.Completed) && !hasMoreData;
Internal\Http2\Http2OutputProducer.cs (16)
51
private
State
_unobservedState;
54
private
State
_currentState;
116
internal (int, long,
State
,
State
, long) SchedulingState => (Stream.StreamId, _unconsumedBytes, _unobservedState, _currentState, _streamWindow);
118
public
State
UnobservedState
129
public
State
CurrentState
153
private void EnqueueStateUpdate(
State
state)
172
internal (bool hasMoreData, bool reschedule,
State
currentState, bool waitingForWindowUpdates) ObserveDataAndState(long bytes,
State
state)
180
return (_unconsumedBytes > 0, _unobservedState !=
State
.None, _currentState, _waitingForWindowUpdates);
215
_unobservedState =
State
.None;
216
_currentState =
State
.None;
239
EnqueueStateUpdate(
State
.Completed);
398
EnqueueStateUpdate(
State
.FlushHeaders);
446
EnqueueStateUpdate(
State
.Completed);
604
EnqueueStateUpdate(
State
.Aborted);