19 references to OperationState
System.Net.Sockets (19)
System\Net\Sockets\SocketAsyncEventArgs.cs (19)
87
private
OperationState
_operating;
485
_operating =
OperationState
.Free;
503
if (Interlocked.CompareExchange(ref _operating,
OperationState
.Disposed,
OperationState
.Free) !=
OperationState
.Free)
530
OperationState
status = Interlocked.CompareExchange(ref _operating,
OperationState
.Configuring,
OperationState
.Free);
531
if (status !=
OperationState
.Free)
537
private void ThrowForNonFreeStatus(
OperationState
status)
539
Debug.Assert(status ==
OperationState
.InProgress || status ==
OperationState
.Configuring || status ==
OperationState
.Disposed, $"Unexpected status: {status}");
540
ObjectDisposedException.ThrowIf(status ==
OperationState
.Disposed, this);
549
OperationState
status = Interlocked.CompareExchange(ref _operating,
OperationState
.InProgress,
OperationState
.Free);
550
if (status !=
OperationState
.Free)
611
if (_operating ==
OperationState
.InProgress && _completedOperation == SocketAsyncOperation.Connect)