1 write to _state
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpResponseStream.cs (1)
27
_state
= state;
16 references to _state
System.Net.Http.WinHttpHandler (16)
System\Net\Http\WinHttpResponseStream.cs (16)
110
if (Interlocked.CompareExchange(ref
_state
.AsyncReadInProgress, 1, 0) == 1)
117
_state
.PinReceiveBuffer(buffer);
122
lock (
_state
.Lock)
129
int bytesAvailable = await
_state
.LifecycleAwaitable;
139
lock (
_state
.Lock)
146
int bytesRead = await
_state
.LifecycleAwaitable;
164
_state
.AsyncReadInProgress = 0;
214
if (Interlocked.CompareExchange(ref
_state
.AsyncReadInProgress, 1, 0) == 1)
221
_state
.PinReceiveBuffer(buffer);
222
lock (
_state
.Lock)
231
int bytesAvailable = await
_state
.LifecycleAwaitable;
233
lock (
_state
.Lock)
246
int bytesRead = await
_state
.LifecycleAwaitable;
257
_state
.AsyncReadInProgress = 0;
349
lock (
_state
.Lock)
351
if (
_state
.AsyncReadInProgress == 1)