Base:
method
ReceiveAsync
System.Net.WebSockets.WebSocket.ReceiveAsync(System.ArraySegment<System.Byte>, System.Threading.CancellationToken)
18 references to ReceiveAsync
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
203
result = await webSocket.
ReceiveAsync
(new ArraySegment<byte>(received, offset, received.Length - offset), default);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
203
result = await webSocket.
ReceiveAsync
(new ArraySegment<byte>(received, offset, received.Length - offset), default);
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
89
var result = await wsClient.
ReceiveAsync
(bytes, default);
161
await Assert.ThrowsAnyAsync<Exception>(() => wsClient.
ReceiveAsync
(new byte[1], default));
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
405
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(new byte[1024]), CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests (4)
EndToEndTests.cs (4)
108
var result = await ws.
ReceiveAsync
(buffer, CancellationToken.None).DefaultTimeout();
116
result = await ws.
ReceiveAsync
(buffer, CancellationToken.None).DefaultTimeout();
147
var result = await ws.
ReceiveAsync
(buffer, CancellationToken.None).DefaultTimeout();
155
result = await ws.
ReceiveAsync
(buffer, CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.WebSockets.Tests (8)
WebSocketMiddlewareTests.cs (8)
233
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
258
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
287
result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer, receivedCount, clientBuffer.Length - receivedCount), CancellationToken.None);
318
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
324
result = await client.
ReceiveAsync
(
331
result = await client.
ReceiveAsync
(
387
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
485
var result = await client.
ReceiveAsync
(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
WebSocketSample (1)
Program.cs (1)
55
var result = await ws.
ReceiveAsync
(new ArraySegment<byte>(buffer), CancellationToken.None);