2 overrides of SessionHandle
System (2)
net\System\Net\WebSockets\InternalClientWebSocket.cs (1)
41
internal override SafeHandle
SessionHandle
net\System\Net\WebSockets\ServerWebSocket.cs (1)
44
internal override SafeHandle
SessionHandle
43 references to SessionHandle
System (43)
net\System\Net\WebSockets\WebSocketBase.cs (26)
334
lock (
SessionHandle
)
482
if (
SessionHandle
!= null && !
SessionHandle
.IsClosed && !
SessionHandle
.IsInvalid)
484
WebSocketProtocolComponent.WebSocketAbortHandle(
SessionHandle
);
1075
Contract.Assert(
SessionHandle
!= null, "'SessionHandle' MUST NOT be NULL.");
1077
Monitor.Enter(
SessionHandle
, ref sessionHandleLockTaken);
1084
Contract.Assert(
SessionHandle
!= null, "'SessionHandle' MUST NOT be NULL.");
1102
Monitor.Exit(
SessionHandle
);
1385
if (
SessionHandle
!= null)
1387
SessionHandle
.Dispose();
1547
Monitor.Enter(thisPtr.
SessionHandle
, ref lockTaken);
1566
ReleaseLock(thisPtr.
SessionHandle
, ref lockTaken);
1574
Monitor.Enter(thisPtr.
SessionHandle
, ref lockTaken);
1600
ReleaseLock(thisPtr.
SessionHandle
, ref lockTaken);
1655
Monitor.Enter(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1699
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1747
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1766
Monitor.Enter(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1784
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1786
Monitor.Enter(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1831
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1834
Monitor.Enter(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1872
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1873
Monitor.Enter(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
1879
ReleaseLock(m_WebSocket.
SessionHandle
, ref sessionHandleLockTaken);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (17)
596
Contract.Assert(webSocket.
SessionHandle
!= null && !webSocket.
SessionHandle
.IsInvalid,
604
errorCode = WebSocketSend_Raw(webSocket.
SessionHandle
, bufferType, ref buffer, IntPtr.Zero);
620
Contract.Assert(webSocket.
SessionHandle
!= null && !webSocket.
SessionHandle
.IsInvalid,
628
errorCode = WebSocketSendWithoutBody_Raw(webSocket.
SessionHandle
, bufferType, IntPtr.Zero, IntPtr.Zero);
643
Contract.Assert(webSocket.
SessionHandle
!= null && !webSocket.
SessionHandle
.IsInvalid,
651
errorCode = WebSocketReceive_Raw(webSocket.
SessionHandle
, IntPtr.Zero, IntPtr.Zero);
672
Contract.Assert(webSocket.
SessionHandle
!= null && !webSocket.
SessionHandle
.IsInvalid,
689
errorCode = WebSocketGetAction_Raw(webSocket.
SessionHandle
,
718
Contract.Assert(webSocket.
SessionHandle
!= null && !webSocket.
SessionHandle
.IsInvalid,
723
if (webSocket.
SessionHandle
.IsClosed)
730
WebSocketCompleteAction_Raw(webSocket.
SessionHandle
, actionContext, (uint)bytesTransferred);
883
if (webSocket.
SessionHandle
.IsClosed)