Share via


IConnectionFactory 接口

定义

用于创建与 SignalR 服务器的连接的工厂抽象。

public interface class IConnectionFactory
public interface IConnectionFactory
type IConnectionFactory = interface
Public Interface IConnectionFactory
派生

方法

ConnectAsync(TransferFormat, CancellationToken)

使用指定的 TransferFormat创建与 SignalR 服务器的新连接。

DisposeAsync(ConnectionContext)

释放指定的 ConnectionContext

适用于