5 instantiations of WebSocketReceiveResult
System (4)
net\System\Net\WebSockets\WebSocketBase.cs (2)
2018
receiveResult = new
WebSocketReceiveResult
(bytesTransferred,
2047
receiveResult = new
WebSocketReceiveResult
(bytesTransferred, messageType, endOfMessage);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
338
new
WebSocketReceiveResult
(bytesBuffered, messageType, endOfMessage);
net\System\Net\WebSockets\WebSocketReceiveResult.cs (1)
46
return new
WebSocketReceiveResult
(count,
System.Web (1)
WebSockets\WebSocketPipe.cs (1)
145
tcs.TrySetResult(new
WebSocketReceiveResult
(
33 references to WebSocketReceiveResult
System (14)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
328
public override Task<
WebSocketReceiveResult
> ReceiveAsync(ArraySegment<byte> buffer,
net\System\Net\WebSockets\WebSocket.cs (1)
135
public abstract Task<
WebSocketReceiveResult
> ReceiveAsync(ArraySegment<byte> buffer,
net\System\Net\WebSockets\WebSocketBase.cs (9)
197
public override Task<
WebSocketReceiveResult
> ReceiveAsync(ArraySegment<byte> buffer,
204
private async Task<
WebSocketReceiveResult
> ReceiveAsyncCore(ArraySegment<byte> buffer,
214
WebSocketReceiveResult
receiveResult;
893
Task<
WebSocketReceiveResult
> receiveAsyncTask = m_ReceiveOperation.Process(closeMessageBuffer,
897
WebSocketReceiveResult
receiveResult = null;
1621
public
WebSocketReceiveResult
ReceiveResult { get; protected set; }
1645
internal async Task<
WebSocketReceiveResult
> Process(Nullable<ArraySegment<byte>> buffer,
1925
WebSocketReceiveResult
receiveResult;
2004
WebSocketReceiveResult
receiveResult;
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
50
private volatile
WebSocketReceiveResult
m_BufferedPayloadReceiveResult;
343
internal bool ReceiveFromBufferedPayload(ArraySegment<byte> buffer, out
WebSocketReceiveResult
receiveResult)
net\System\Net\WebSockets\WebSocketReceiveResult.cs (1)
41
internal
WebSocketReceiveResult
Copy(int count)
System.ServiceModel (9)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (9)
652
WebSocketReceiveResult
result = null;
663
Task<
WebSocketReceiveResult
> receiveTask = this.webSocket.ReceiveAsync(
815
internal void CheckCloseStatus(
WebSocketReceiveResult
result)
876
Task<
WebSocketReceiveResult
> receiveTask = this.webSocket.ReceiveAsync(
882
WebSocketReceiveResult
result = receiveTask.Result;
963
Message PrepareMessage(
WebSocketReceiveResult
result, byte[] buffer, int count)
1261
Task<
WebSocketReceiveResult
> task = this.webSocket.ReceiveAsync(new ArraySegment<byte>(buffer, offset, count), CancellationToken.None);
1436
static void CheckResultAndEnsureNotCloseMessage(WebSocketMessageSource messageSource,
WebSocketReceiveResult
result)
1468
Task<
WebSocketReceiveResult
> receiveTask = this.webSocket.ReceiveAsync(new ArraySegment<byte>(this.initialReadBuffer.Array), CancellationToken.None);
System.Web (10)
WebSockets\AspNetWebSocket.cs (6)
227
Func<Task<
WebSocketReceiveResult
>> receiveCloseTaskFunc = null;
270
Task<
WebSocketReceiveResult
> receiveCloseTask = (receiveCloseTaskFunc != null) ? receiveCloseTaskFunc() : null;
280
WebSocketReceiveResult
result = await receiveCloseTask.ConfigureAwait(continueOnCapturedContext: false);
368
public override Task<
WebSocketReceiveResult
> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) {
372
private Func<Task<
WebSocketReceiveResult
>> ReceiveAsyncImpl(ArraySegment<byte> buffer, CancellationToken cancellationToken, bool performValidation = true) {
394
WebSocketReceiveResult
result = await DoWork(() => _pipe.ReadFragmentAsync(buffer), cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
WebSockets\IWebSocketPipe.cs (1)
23
Task<
WebSocketReceiveResult
> ReadFragmentAsync(ArraySegment<byte> buffer);
WebSockets\WebSocketPipe.cs (3)
118
public Task<
WebSocketReceiveResult
> ReadFragmentAsync(ArraySegment<byte> buffer) {
119
TaskCompletionSource<
WebSocketReceiveResult
> tcs = new TaskCompletionSource<
WebSocketReceiveResult
>();