2 instantiations of TestWebSocket
Microsoft.AspNetCore.TestHost (2)
TestWebSocket.cs (2)
22
new
TestWebSocket
(subProtocol, buffers[0], buffers[1]),
23
new
TestWebSocket
(subProtocol, buffers[1], buffers[0]));
8 references to TestWebSocket
Microsoft.AspNetCore.TestHost (8)
TestWebSocket.cs (7)
18
public static Tuple<
TestWebSocket
,
TestWebSocket
> CreatePair(string? subProtocol)
175
ObjectDisposedException.ThrowIf(_state >= WebSocketState.Closed, typeof(
TestWebSocket
)); // or Aborted
282
ObjectDisposedException.ThrowIf(_senderClosed, typeof(
TestWebSocket
));
286
throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(
TestWebSocket
).FullName));
333
ObjectDisposedException.ThrowIf(_receiverClosed, typeof(
TestWebSocket
));
336
throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(
TestWebSocket
).FullName));
WebSocketClient.cs (1)
137
var websockets =
TestWebSocket
.CreatePair(context.SubProtocol);