12 references to State
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysListener.cs (12)
37
private volatile
State
_state; // m_State is set only within lock blocks, but often read outside locks.
60
_state =
State
.Stopped;
119
get { return _state ==
State
.Started; }
139
if (_state ==
State
.Started)
164
_state =
State
.Started;
169
_state =
State
.Disposed;
184
if (_state ==
State
.Stopped)
198
_state =
State
.Stopped;
228
if (_state ==
State
.Disposed)
244
_state =
State
.Disposed;
274
Debug.Assert(_state !=
State
.Stopped, "Listener has been stopped.");
391
ObjectDisposedException.ThrowIf(_state ==
State
.Disposed, this);