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)
41if (_state == State.Started) 46_state = State.Started; 50_state = State.Closed; 76if (_state == State.Stopped) 90_state = State.Stopped; 102if (_state == State.Closed) 108if (_state == State.Started) 120_state = State.Closed; 132if (_state == State.Closed) 146_state = State.Closed; 276if (_state != State.Started) 342if (_state == State.Stopped)