Provides a fake websocket manager.
More...
|
|
override Task< WebSocket > | AcceptWebSocketAsync (string subProtocol) |
| void | SetWebSocketAcceptHandler (Func< string, Task< WebSocket > > handler) |
| | Set the accept handler.
|
| void | SetIsWebSocketRequest (bool b) |
| | Set the IsWebSocketRequest property.
|
| void | SetProtocols (IEnumerable< string > protocols) |
| | Set the requested protocols.
|
|
|
override bool | IsWebSocketRequest [get] |
|
override IList< string > | WebSocketRequestedProtocols [get] |
Provides a fake websocket manager.
◆ SetIsWebSocketRequest()
| void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetIsWebSocketRequest |
( |
bool | b | ) |
|
Set the IsWebSocketRequest property.
- Parameters
-
◆ SetProtocols()
| void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetProtocols |
( |
IEnumerable< string > | protocols | ) |
|
Set the requested protocols.
- Parameters
-
◆ SetWebSocketAcceptHandler()
| void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetWebSocketAcceptHandler |
( |
Func< string, Task< WebSocket > > | handler | ) |
|
Set the accept handler.
- Parameters
-
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeWebSocketManager.cs