19 references to State
System.Net.HttpListener (19)
System\Net\HttpListener.cs (7)
19private volatile State _state; // _state is set only within lock blocks, but often read outside locks. 35_state = State.Stopped; 157if (_state == State.Started) 230if (_state == State.Started) 252if (_state == State.Started) 278public bool IsListening => _state == State.Started; 314ObjectDisposedException.ThrowIf(_state == State.Closed, this);
System\Net\Managed\HttpListener.Managed.cs (12)
45if (_state == State.Started) 55_state = State.Started; 59_state = State.Closed; 85if (_state == State.Stopped) 99_state = State.Stopped; 111if (_state == State.Closed) 117if (_state == State.Started) 129_state = State.Closed; 141if (_state == State.Closed) 155_state = State.Closed; 286if (_state != State.Started) 360if (_state == State.Stopped)