12 references to State
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysListener.cs (12)
38private volatile State _state; // m_State is set only within lock blocks, but often read outside locks. 61_state = State.Stopped; 120get { return _state == State.Started; } 140if (_state == State.Started) 165_state = State.Started; 170_state = State.Disposed; 185if (_state == State.Stopped) 199_state = State.Stopped; 229if (_state == State.Disposed) 245_state = State.Disposed; 275Debug.Assert(_state != State.Stopped, "Listener has been stopped."); 392ObjectDisposedException.ThrowIf(_state == State.Disposed, this);