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)
203result = 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)
203result = await webSocket.ReceiveAsync(new ArraySegment<byte>(received, offset, received.Length - offset), default);
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
89var result = await wsClient.ReceiveAsync(bytes, default); 161await Assert.ThrowsAnyAsync<Exception>(() => wsClient.ReceiveAsync(new byte[1], default));
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
405var result = await client.ReceiveAsync(new ArraySegment<byte>(new byte[1024]), CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests (4)
EndToEndTests.cs (4)
108var result = await ws.ReceiveAsync(buffer, CancellationToken.None).DefaultTimeout(); 116result = await ws.ReceiveAsync(buffer, CancellationToken.None).DefaultTimeout(); 147var result = await ws.ReceiveAsync(buffer, CancellationToken.None).DefaultTimeout(); 155result = await ws.ReceiveAsync(buffer, CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.WebSockets.Tests (8)
WebSocketMiddlewareTests.cs (8)
233var result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer), CancellationToken.None); 258var result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer), CancellationToken.None); 287result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer, receivedCount, clientBuffer.Length - receivedCount), CancellationToken.None); 318var result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer), CancellationToken.None); 324result = await client.ReceiveAsync( 331result = await client.ReceiveAsync( 387var result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer), CancellationToken.None); 485var result = await client.ReceiveAsync(new ArraySegment<byte>(clientBuffer), CancellationToken.None);
WebSocketSample (1)
Program.cs (1)
55var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);