89 references to WebSocketHelpers
System (89)
net\System\Net\HttpListenerContext.cs (4)
156
WebSocketHelpers
.DefaultReceiveBufferSize,
163
WebSocketHelpers
.DefaultReceiveBufferSize,
171
WebSocketHelpers
.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval);
186
return
WebSocketHelpers
.AcceptWebSocketAsync(this,
net\System\Net\HttpListenerRequest.cs (1)
504
if (string.Compare(upgrade,
WebSocketHelpers
.WebSocketUpgradeToken, StringComparison.OrdinalIgnoreCase) == 0)
net\System\Net\Internal.cs (1)
1735
WebSocketHelpers
.PrepareWebRequest(ref request);
net\System\Net\WebSockets\ClientWebSocket.cs (9)
44
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
271
if (!string.Equals(upgradeHeader,
WebSocketHelpers
.WebSocketUpgradeToken,
289
string expectedAcceptHeader =
WebSocketHelpers
.GetSecWebSocketAcceptString(
417
receiveBufferSize =
WebSocketHelpers
.DefaultReceiveBufferSize;
418
sendBufferSize =
WebSocketHelpers
.DefaultClientSendBufferSize;
518
WebSocketHelpers
.ValidateBufferSizes(receiveBufferSize, sendBufferSize);
528
WebSocketHelpers
.ValidateBufferSizes(receiveBufferSize, sendBufferSize);
529
WebSocketHelpers
.ValidateArraySegment(buffer, "buffer");
568
WebSocketHelpers
.ValidateSubprotocol(subProtocol);
net\System\Net\WebSockets\InternalClientWebSocket.cs (1)
35
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
net\System\Net\WebSockets\ServerWebSocket.cs (1)
38
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
net\System\Net\WebSockets\WebSocket.cs (10)
50
WebSocketHelpers
.ValidateBufferSizes(receiveBufferSize, sendBufferSize);
57
WebSocketHelpers
.ValidateBufferSizes(receiveBufferSize, WebSocketBuffer.MinSendBufferSize);
73
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
76
WebSocketHelpers
.ValidateInnerStream(innerStream);
77
WebSocketHelpers
.ValidateOptions(subProtocol, receiveBufferSize, sendBufferSize, keepAliveInterval);
78
WebSocketHelpers
.ValidateArraySegment<byte>(internalBuffer, "internalBuffer");
98
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
101
WebSocketHelpers
.ValidateInnerStream(innerStream);
102
WebSocketHelpers
.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval);
103
WebSocketHelpers
.ValidateArraySegment<byte>(internalBuffer, "internalBuffer");
net\System\Net\WebSockets\WebSocketBase.cs (11)
76
WebSocketHelpers
.ValidateInnerStream(innerStream);
77
WebSocketHelpers
.ValidateOptions(subProtocol, internalBuffer.ReceiveBufferSize,
200
WebSocketHelpers
.ValidateArraySegment<byte>(buffer, "buffer");
296
WebSocketHelpers
.ValidateArraySegment<byte>(buffer, "buffer");
512
WebSocketHelpers
.ValidateCloseStatus(closeStatus, statusDescription);
758
WebSocketHelpers
.ValidateCloseStatus(closeStatus, statusDescription);
1748
WebSocketHelpers
.ThrowIfConnectionAborted(m_WebSocket.m_InnerStream, true);
1832
WebSocketHelpers
.ThrowIfConnectionAborted(m_WebSocket.m_InnerStream, false);
2013
payload =
WebSocketHelpers
.EmptyPayload;
2170
Contract.Assert(blob.Length <=
WebSocketHelpers
.MaxControlFramePayloadLength,
2172
ArraySegment<byte> closeBuffer = new ArraySegment<byte>(blob, 0, Math.Min(
WebSocketHelpers
.MaxControlFramePayloadLength, blob.Length));
net\System\Net\WebSockets\WebSocketBuffer.cs (3)
198
WebSocketHelpers
.ValidateBuffer(payload.Array, payload.Offset, payload.Count);
315
m_PinnedSendBuffer =
WebSocketHelpers
.EmptyPayload;
387
return
WebSocketHelpers
.EmptyPayload;
net\System\Net\WebSockets\WebSocketConnectionStream.cs (16)
109
new CancellationTokenSource(
WebSocketHelpers
.ClientTcpCloseTimeout);
116
WebSocketHelpers
.ThrowIfConnectionAborted(m_ConnectStream.Connection, true);
202
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
215
WebSocketHelpers
.ThrowIfConnectionAborted(m_ConnectStream.Connection, true);
250
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
261
WebSocketHelpers
.ThrowIfConnectionAborted(m_ConnectStream.Connection, false);
330
WebSocketHelpers
.ThrowIfConnectionAborted(m_ConnectStream.Connection, false);
612
WebSocketHelpers
.ThrowIfConnectionAborted(connection.m_InnerStream, false);
623
WebSocketHelpers
.ThrowIfConnectionAborted(connection.m_InnerStream, false);
655
WebSocketHelpers
.ThrowIfConnectionAborted(m_InnerStream, false);
683
WebSocketHelpers
.ValidateBuffer(buffer, offset, count);
693
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
707
WebSocketHelpers
.ThrowIfConnectionAborted(m_InnerStream, false);
735
WebSocketHelpers
.ValidateBuffer(buffer, offset, count);
751
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
766
WebSocketHelpers
.ThrowIfConnectionAborted(m_InnerStream, true);
net\System\Net\WebSockets\WebSocketHelpers.cs (14)
60
WebSocketHelpers
.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval);
61
WebSocketHelpers
.ValidateArraySegment<byte>(internalBuffer, "internalBuffer");
94
WebSocketHelpers
.ProcessWebSocketProtocolHeader(
108
string secWebSocketAccept =
WebSocketHelpers
.GetSecWebSocketAcceptString(secWebSocketKey);
111
response.Headers.Add(HttpKnownHeaderNames.Upgrade,
WebSocketHelpers
.WebSocketUpgradeToken);
121
WebSocketHelpers
.MethodNames.AcceptWebSocketAsync,
205
string acceptString = string.Concat(secWebSocketKey,
WebSocketHelpers
.SecWebSocketKeyGuid);
324
WebSocketHelpers
.MethodNames.ValidateWebSocketHeaders,
327
WebSocketHelpers
.WebSocketUpgradeToken,
336
WebSocketHelpers
.MethodNames.ValidateWebSocketHeaders,
344
WebSocketHelpers
.MethodNames.ValidateWebSocketHeaders,
353
WebSocketHelpers
.MethodNames.ValidateWebSocketHeaders,
441
if (length >
WebSocketHelpers
.MaxControlFramePayloadLength)
445
WebSocketHelpers
.MaxControlFramePayloadLength),
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
131
WebSocketHelpers
.ValidateBuffer(buffer, offset, count);
141
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
419
WebSocketHelpers
.ValidateBuffer(buffer, offset, count);
429
WebSocketHelpers
.GetTraceMsgForParameters(offset, count, cancellationToken));
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (14)
49
Value =
WebSocketHelpers
.WebSocketUpgradeToken,
50
ValueLength = (uint)
WebSocketHelpers
.WebSocketUpgradeToken.Length
169
Value =
WebSocketHelpers
.WebSocketUpgradeToken,
170
ValueLength = (uint)
WebSocketHelpers
.WebSocketUpgradeToken.Length
203
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
362
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
374
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
425
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
434
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
476
string acceptValue =
WebSocketHelpers
.GetSecWebSocketAcceptString(key);
490
Value =
WebSocketHelpers
.WebSocketUpgradeToken,
491
ValueLength = (uint)
WebSocketHelpers
.WebSocketUpgradeToken.Length
526
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();
535
WebSocketHelpers
.ThrowPlatformNotSupportedException_WSPC();