19 references to State
System.Net.HttpListener (19)
System\Net\HttpListener.cs (7)
19
private volatile
State
_state; // _state is set only within lock blocks, but often read outside locks.
35
_state =
State
.Stopped;
157
if (_state ==
State
.Started)
230
if (_state ==
State
.Started)
252
if (_state ==
State
.Started)
278
public bool IsListening => _state ==
State
.Started;
314
ObjectDisposedException.ThrowIf(_state ==
State
.Closed, this);
System\Net\Managed\HttpListener.Managed.cs (12)
41
if (_state ==
State
.Started)
46
_state =
State
.Started;
50
_state =
State
.Closed;
76
if (_state ==
State
.Stopped)
90
_state =
State
.Stopped;
102
if (_state ==
State
.Closed)
108
if (_state ==
State
.Started)
120
_state =
State
.Closed;
132
if (_state ==
State
.Closed)
146
_state =
State
.Closed;
276
if (_state !=
State
.Started)
342
if (_state ==
State
.Stopped)