57 references to WebSocketMessageType
System (27)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
321
public override Task SendAsync(ArraySegment<byte> buffer,
WebSocketMessageType
messageType, bool endOfMessage,
net\System\Net\WebSockets\WebSocket.cs (1)
138
WebSocketMessageType
messageType,
net\System\Net\WebSockets\WebSocketBase.cs (21)
280
WebSocketMessageType
messageType,
284
if (messageType !=
WebSocketMessageType
.Binary &&
285
messageType !=
WebSocketMessageType
.Text)
290
WebSocketMessageType
.Binary,
291
WebSocketMessageType
.Text,
302
WebSocketMessageType
messageType,
306
Contract.Assert(messageType ==
WebSocketMessageType
.Binary || messageType ==
WebSocketMessageType
.Text,
932
if (receiveResult.MessageType !=
WebSocketMessageType
.Close)
1184
private static WebSocketProtocolComponent.BufferType GetBufferType(
WebSocketMessageType
messageType,
1187
Contract.Assert(messageType ==
WebSocketMessageType
.Binary || messageType ==
WebSocketMessageType
.Text,
1191
WebSocketMessageType
.Binary,
1192
WebSocketMessageType
.Text));
1194
if (messageType ==
WebSocketMessageType
.Text)
1214
private static
WebSocketMessageType
GetMessageType(WebSocketProtocolComponent.BufferType bufferType)
1219
return
WebSocketMessageType
.Close;
1222
return
WebSocketMessageType
.Binary;
1225
return
WebSocketMessageType
.Text;
1973
if (ReceiveResult.MessageType ==
WebSocketMessageType
.Close)
2008
WebSocketMessageType
messageType = GetMessageType(bufferType);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
320
WebSocketMessageType
messageType,
net\System\Net\WebSockets\WebSocketReceiveResult.cs (3)
12
public WebSocketReceiveResult(int count,
WebSocketMessageType
messageType, bool endOfMessage)
18
WebSocketMessageType
messageType,
37
public
WebSocketMessageType
MessageType { get; private set; }
System.ServiceModel (18)
System\ServiceModel\Channels\TransportDefaults.cs (2)
500
internal const
WebSocketMessageType
DefaultWebSocketMessageType =
WebSocketMessageType
.Binary;
System\ServiceModel\Channels\WebSocketMessageProperty.cs (3)
16
WebSocketMessageType
messageType;
24
internal WebSocketMessageProperty(WebSocketContext context, string subProtocol,
WebSocketMessageType
incomingMessageType, ReadOnlyDictionary<string, object> properties)
42
public
WebSocketMessageType
MessageType
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (13)
209
WebSocketMessageType
outgoingMessageType = GetWebSocketMessageType(message);
262
WebSocketMessageType
outgoingMessageType = GetWebSocketMessageType(message);
319
WebSocketMessageType
outgoingMessageType = GetWebSocketMessageType(message);
447
static
WebSocketMessageType
GetWebSocketMessageType(Message message)
449
WebSocketMessageType
outgoingMessageType = WebSocketDefaults.DefaultWebSocketMessageType;
817
if (result.MessageType ==
WebSocketMessageType
.Close)
928
void AddMessageProperties(MessageProperties messageProperties,
WebSocketMessageType
incomingMessageType)
965
if (result.MessageType !=
WebSocketMessageType
.Close)
998
if (result.MessageType ==
WebSocketMessageType
.Binary)
1005
Fx.Assert(result.MessageType ==
WebSocketMessageType
.Text, "result.MessageType must be WebSocketMessageType.Text.");
1038
WebSocketMessageType
outgoingMessageType;
1066
WebSocketMessageType
outgoingMessageType,
1439
if (result.MessageType ==
WebSocketMessageType
.Close)
System.Web (12)
WebSockets\AspNetWebSocket.cs (8)
286
if (result.MessageType !=
WebSocketMessageType
.Close) {
400
if (result.MessageType ==
WebSocketMessageType
.Close) {
430
public override Task SendAsync(ArraySegment<byte> buffer,
WebSocketMessageType
messageType, bool endOfMessage, CancellationToken cancellationToken) {
434
private Func<Task> SendAsyncImpl(ArraySegment<byte> buffer,
WebSocketMessageType
messageType, bool endOfMessage, CancellationToken cancellationToken, bool performValidation = true) {
463
await DoWork(() => _pipe.WriteFragmentAsync(buffer, (messageType ==
WebSocketMessageType
.Text), endOfMessage), cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
516
private static void ValidateSendMessageType(
WebSocketMessageType
messageType) {
518
case
WebSocketMessageType
.Text:
519
case
WebSocketMessageType
.Binary:
WebSockets\WebSocketPipe.cs (4)
131
WebSocketMessageType
messageType = (fUtf8Encoded) ?
WebSocketMessageType
.Text :
WebSocketMessageType
.Binary;
135
messageType =
WebSocketMessageType
.Close;