5 instantiations of WebSocketMessage
Microsoft.AspNetCore.Http.Connections.Tests (5)
TestWebSocketConnectionFeature.cs (5)
66
private WebSocketMessage _internalBuffer = new
WebSocketMessage
();
96
await SendMessageAsync(new
WebSocketMessage
111
await SendMessageAsync(new
WebSocketMessage
201
await SendMessageAsync(new
WebSocketMessage
220
return new
WebSocketMessage
()
17 references to WebSocketMessage
Microsoft.AspNetCore.Http.Connections.Tests (17)
HttpConnectionDispatcherTests.cs (2)
2405
var
webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().DefaultTimeout();
2479
var
webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().DefaultTimeout();
TestWebSocketConnectionFeature.cs (15)
40
var clientToServer = Channel.CreateUnbounded<
WebSocketMessage
>();
41
var serverToClient = Channel.CreateUnbounded<
WebSocketMessage
>();
59
private readonly ChannelReader<
WebSocketMessage
> _input;
60
private readonly ChannelWriter<
WebSocketMessage
> _output;
66
private
WebSocketMessage
_internalBuffer = new WebSocketMessage();
68
public WebSocketChannel(ChannelReader<
WebSocketMessage
> input, ChannelWriter<
WebSocketMessage
> output, SyncPoint sync = null)
138
if (_input.TryRead(out
var
message))
210
public async Task<
WebSocketMessage
> GetNextMessageAsync()
214
if (_input.TryRead(out
var
message))
232
var frames = new List<
WebSocketMessage
>();
235
while (_input.TryRead(out
var
message))
253
private async Task SendMessageAsync(
WebSocketMessage
webSocketMessage, CancellationToken cancellationToken)
267
public IList<
WebSocketMessage
> Received { get; }
270
public WebSocketConnectionSummary(IList<
WebSocketMessage
> received, WebSocketReceiveResult closeResult)