4 instantiations of ValueWebSocketReceiveResult
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
72.ReturnsAsync(new ValueWebSocketReceiveResult(0, WebSocketMessageType.Close, true));
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1058return (TResult)(object)new ValueWebSocketReceiveResult(count, messageType, endOfMessage);
System\Net\WebSockets\WebSocket.cs (2)
40return new ValueWebSocketReceiveResult(r.Count, r.MessageType, r.EndOfMessage); 48return new ValueWebSocketReceiveResult(r.Count, r.MessageType, r.EndOfMessage);
14 references to ValueWebSocketReceiveResult
Microsoft.AspNetCore.Http.Connections (2)
Internal\Transports\WebSocketsServerTransport.cs (2)
140var result = await socket.ReceiveAsync(Memory<byte>.Empty, token); 150var receiveResult = await socket.ReceiveAsync(memory, token);
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketCompressionMiddlewareTests.cs (1)
151var result = await client.ReceiveAsync(receiveBuf.AsMemory(totalRecv), default);
netstandard (1)
netstandard.cs (1)
1311[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebSockets.ValueWebSocketReceiveResult))]
System.Net.WebSockets (9)
System\Net\WebSockets\ManagedWebSocket.cs (7)
382public override ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken) 390return ReceiveAsyncPrivate<ValueWebSocketReceiveResult>(buffer, cancellationToken); 395return ValueTask.FromException<ValueWebSocketReceiveResult>(exc); 1048/// Returns either <see cref="ValueWebSocketReceiveResult"/> or <see cref="WebSocketReceiveResult"/>. 1053if (typeof(TResult) == typeof(ValueWebSocketReceiveResult)) 1459ValueTask<ValueWebSocketReceiveResult> receiveTask = default; 1469receiveTask = ReceiveAsyncPrivate<ValueWebSocketReceiveResult>(closeBuffer, cancellationToken);
System\Net\WebSockets\ValueWebSocketReceiveResult.cs (1)
14/// <summary>Creates an instance of the <see cref="ValueWebSocketReceiveResult"/> value type.</summary>
System\Net\WebSockets\WebSocket.cs (1)
35public virtual async ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken)
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocket.cs (1)
157public override ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken) =>