24 references to State
Microsoft.AspNetCore.Server.Kestrel.Core (24)
Internal\Http2\Http2FrameWriter.cs (8)
192
var
observed = producer.UnobservedState;
193
var
currentState = producer.CurrentState;
196
static bool HasStateFlag(Http2OutputProducer.
State
state, Http2OutputProducer.
State
flags)
200
var flushHeaders = HasStateFlag(observed, Http2OutputProducer.
State
.FlushHeaders) && !HasStateFlag(currentState, Http2OutputProducer.
State
.FlushHeaders);
204
var aborted = HasStateFlag(currentState, Http2OutputProducer.
State
.Aborted);
205
var completed = HasStateFlag(currentState, Http2OutputProducer.
State
.Completed) && !hasMoreData;
Internal\Http2\Http2OutputProducer.cs (16)
44
private
State
_unobservedState;
47
private
State
_currentState;
92
internal (int, long,
State
,
State
, long) SchedulingState => (Stream.StreamId, _unconsumedBytes, _unobservedState, _currentState, _streamWindow);
94
public
State
UnobservedState
105
public
State
CurrentState
129
private void EnqueueStateUpdate(
State
state)
148
internal (bool hasMoreData, bool reschedule,
State
currentState, bool waitingForWindowUpdates) ObserveDataAndState(long bytes,
State
state)
156
return (_unconsumedBytes > 0, _unobservedState !=
State
.None, _currentState, _waitingForWindowUpdates);
191
_unobservedState =
State
.None;
192
_currentState =
State
.None;
215
EnqueueStateUpdate(
State
.Completed);
377
EnqueueStateUpdate(
State
.FlushHeaders);
425
EnqueueStateUpdate(
State
.Completed);
581
EnqueueStateUpdate(
State
.Aborted);