Base:
property
State
System.Net.WebSockets.WebSocket.State
29 references to State
System (29)
net\System\Net\WebSockets\WebSocketBase.cs (27)
219
ThrowOnInvalidState(
State
, WebSocketState.Open, WebSocketState.CloseSent);
324
ThrowOnInvalidState(
State
, WebSocketState.Open, WebSocketState.CloseReceived);
454
if (IsStateTerminal(
State
))
460
if (IsStateTerminal(
State
))
534
if (IsStateTerminal(
State
))
552
if (IsStateTerminal(
State
))
557
ThrowOnInvalidState(
State
, WebSocketState.Open, WebSocketState.CloseReceived);
662
if (IsStateTerminal(
State
))
667
switch (
State
)
779
if (IsStateTerminal(
State
))
792
if (IsStateTerminal(
State
))
797
ThrowOnInvalidState(
State
,
805
if (closeOutputTask == null &&
State
!= WebSocketState.CloseSent)
879
if (IsStateTerminal(
State
))
956
if (!IsStateTerminal(
State
))
1041
if (!IsStateTerminal(
State
))
1261
if (
State
== WebSocketState.Closed ||
State
== WebSocketState.Aborted)
1264
SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, GetType().FullName,
State
));
1282
if (
State
!= WebSocketState.Closed)
1392
m_InternalBuffer.Dispose(this.
State
);
1484
if (IsStateTerminal(
State
) ||
State
== WebSocketState.CloseReceived)
1490
if (IsStateTerminal(
State
) ||
State
== WebSocketState.CloseReceived)
1495
if (
State
== WebSocketState.Open)
1792
if (m_WebSocket.
State
!= WebSocketState.CloseSent ||
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (2)
886
SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, webSocket.GetType().FullName, webSocket.
State
));
893
SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, webSocket.GetType().FullName, webSocket.
State
),