12 references to State
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysListener.cs (12)
39private volatile State _state; // m_State is set only within lock blocks, but often read outside locks. 63_state = State.Stopped; 116get { return _state == State.Started; } 136if (_state == State.Started) 161_state = State.Started; 166_state = State.Disposed; 181if (_state == State.Stopped) 195_state = State.Stopped; 225if (_state == State.Disposed) 241_state = State.Disposed; 272Debug.Assert(_state != State.Stopped, "Listener has been stopped."); 389ObjectDisposedException.ThrowIf(_state == State.Disposed, this);