7 instantiations of WebSocketReceiveResult
Microsoft.AspNetCore.Owin (2)
WebSockets\OwinWebSocketAdapter.cs (2)
116return new WebSocketReceiveResult(rawResult.Item3, messageType, rawResult.Item2, CloseStatus, CloseStatusDescription); 120return new WebSocketReceiveResult(rawResult.Item3, messageType, rawResult.Item2);
Microsoft.AspNetCore.TestHost (2)
TestWebSocket.cs (2)
127var result = new WebSocketReceiveResult(0, WebSocketMessageType.Close, true, _closeStatus, _closeStatusDescription); 150return new WebSocketReceiveResult(count, receiveMessage.MessageType, endOfMessage);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1057return (TResult)(object)new WebSocketReceiveResult(count, messageType, endOfMessage, _closeStatus, _closeStatusDescription);
System.Net.WebSockets.Client (2)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (2)
492return new WebSocketReceiveResult(count, messageType, isEnd, _closeStatus, _closeStatusDescription); 506return new WebSocketReceiveResult(count, messageType, isEnd);
36 references to WebSocketReceiveResult
dotnet-svcutil-lib (7)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (7)
570WebSocketReceiveResult result = null; 704internal void CheckCloseStatus(WebSocketReceiveResult result) 764WebSocketReceiveResult result; 827private Message PrepareMessage(WebSocketReceiveResult result, byte[] buffer, int count) 1057WebSocketReceiveResult result; 1238private static void CheckResultAndEnsureNotCloseMessage(WebSocketMessageSource messageSource, WebSocketReceiveResult result) 1271Task<WebSocketReceiveResult> receiveTask =
Microsoft.AspNetCore.Owin (2)
WebSockets\OwinWebSocketAdapter.cs (1)
102public override async Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)
WebSockets\WebSocketAdapter.cs (1)
78WebSocketReceiveResult nativeResult = await _webSocket.ReceiveAsync(buffer, cancel);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
299var result = resultTask.Result; // We know it's completed already
Microsoft.AspNetCore.TestHost (3)
TestWebSocket.cs (3)
60WebSocketReceiveResult result; 110public override async Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) 127var result = new WebSocketReceiveResult(0, WebSocketMessageType.Close, true, _closeStatus, _closeStatusDescription);
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (1)
204WebSocketReceiveResult result;
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\WebSocketTransport.cs (1)
101WebSocketReceiveResult result;
netstandard (1)
netstandard.cs (1)
1318[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebSockets.WebSocketReceiveResult))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
809[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebSockets.WebSocketReceiveResult))]
System.Net.HttpListener (1)
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
166public override Task<WebSocketReceiveResult> ReceiveAsync(
System.Net.WebSockets (7)
System\Net\WebSockets\ManagedWebSocket.cs (4)
351public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) 361return ReceiveAsyncPrivate<WebSocketReceiveResult>(buffer, cancellationToken).AsTask(); 366return Task.FromException<WebSocketReceiveResult>(exc); 1044/// Returns either <see cref="ValueWebSocketReceiveResult"/> or <see cref="WebSocketReceiveResult"/>.
System\Net\WebSockets\WebSocket.cs (3)
28public abstract Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, 39WebSocketReceiveResult r = await ReceiveAsync(arraySegment, cancellationToken).ConfigureAwait(false); 46WebSocketReceiveResult r = await ReceiveAsync(new ArraySegment<byte>(array, 0, buffer.Length), cancellationToken).ConfigureAwait(false);
System.Net.WebSockets.Client (4)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (3)
174public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) 420private async Task<WebSocketReceiveResult> ReceiveAsyncCore(ArraySegment<byte> buffer, CancellationToken cancellationToken) 465private WebSocketReceiveResult ConvertResponse()
System\Net\WebSockets\ClientWebSocket.cs (1)
150public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) =>
System.ServiceModel.Http (7)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (7)
542WebSocketReceiveResult result = null; 676internal void CheckCloseStatus(WebSocketReceiveResult result) 736WebSocketReceiveResult result; 799private Message PrepareMessage(WebSocketReceiveResult result, byte[] buffer, int count) 1029WebSocketReceiveResult result; 1210private static void CheckResultAndEnsureNotCloseMessage(WebSocketMessageSource messageSource, WebSocketReceiveResult result) 1243Task<WebSocketReceiveResult> receiveTask =