Base:
method
SendAsync
System.Net.WebSockets.WebSocket.SendAsync(System.ArraySegment<System.Byte>, System.Net.WebSockets.WebSocketMessageType, System.Boolean, System.Threading.CancellationToken)
15 references to SendAsync
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
191
await webSocket.
SendAsync
(new ArraySegment<byte>(Encoding.ASCII.GetBytes(message)), WebSocketMessageType.Text, true, default);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
191
await webSocket.
SendAsync
(new ArraySegment<byte>(Encoding.ASCII.GetBytes(message)), WebSocketMessageType.Text, true, default);
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
86
await wsClient.
SendAsync
(Encoding.UTF8.GetBytes("Hello"), WebSocketMessageType.Text, endOfMessage: true, default);
Microsoft.AspNetCore.SignalR.Tests (2)
EndToEndTests.cs (2)
104
await ws.
SendAsync
(new ArraySegment<byte>(bytes), WebSocketMessageType.Binary, endOfMessage: true, CancellationToken.None).DefaultTimeout();
143
await ws.
SendAsync
(new ArraySegment<byte>(bytes), WebSocketMessageType.Binary, endOfMessage: false, CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.WebSockets.Tests (9)
WebSocketMiddlewareTests.cs (9)
81
await client.
SendAsync
(new ArraySegment<byte>(originalData), WebSocketMessageType.Binary, true, CancellationToken.None);
106
await client.
SendAsync
(new ArraySegment<byte>(originalData), WebSocketMessageType.Binary, true, CancellationToken.None);
131
await client.
SendAsync
(new ArraySegment<byte>(originalData), WebSocketMessageType.Binary, true, CancellationToken.None);
159
await client.
SendAsync
(new ArraySegment<byte>(originalData), WebSocketMessageType.Binary, true, CancellationToken.None);
206
await client.
SendAsync
(new ArraySegment<byte>(originalData, 0, 2), WebSocketMessageType.Binary, false, CancellationToken.None);
209
await client.
SendAsync
(new ArraySegment<byte>(originalData, 2, 2), WebSocketMessageType.Binary, false, CancellationToken.None);
212
await client.
SendAsync
(new ArraySegment<byte>(originalData, 4, 7), WebSocketMessageType.Binary, true, CancellationToken.None);
563
await client.
SendAsync
(clientBuffer, WebSocketMessageType.Binary, false, default);
630
await client.
SendAsync
(clientBuffer, WebSocketMessageType.Binary, false, default);
WebSocketSample (1)
Program.cs (1)
38
await ws.
SendAsync
(new ArraySegment<byte>(bytes), WebSocketMessageType.Text, endOfMessage: true, cancellationToken: CancellationToken.None);