PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager Class Reference

Provides a fake websocket manager. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager:
PeanutButter.TestUtils.AspNetCore.Fakes.IFake

Public Member Functions

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.

Properties

override bool IsWebSocketRequest [get]
override IList< string > WebSocketRequestedProtocols [get]

Detailed Description

Provides a fake websocket manager.

Member Function Documentation

◆ SetIsWebSocketRequest()

void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetIsWebSocketRequest ( bool b)

Set the IsWebSocketRequest property.

Parameters
b

◆ SetProtocols()

void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetProtocols ( IEnumerable< string > protocols)

Set the requested protocols.

Parameters
protocols

◆ SetWebSocketAcceptHandler()

void PeanutButter.TestUtils.AspNetCore.Fakes.FakeWebSocketManager.SetWebSocketAcceptHandler ( Func< string, Task< WebSocket > > handler)

Set the accept handler.

Parameters
handler

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeWebSocketManager.cs