HttpConnectionOptions.WebSocketFactory 属性

定义

获取或设置一个委托,用于包装或替换 WebSocket 将用于 WebSocket 传输的 。

public Func<Microsoft.AspNetCore.Http.Connections.Client.WebSocketConnectionContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.Net.WebSockets.WebSocket>>? WebSocketFactory { get; set; }
member this.WebSocketFactory : Func<Microsoft.AspNetCore.Http.Connections.Client.WebSocketConnectionContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<System.Net.WebSockets.WebSocket>> with get, set
Public Property WebSocketFactory As Func(Of WebSocketConnectionContext, CancellationToken, ValueTask(Of WebSocket))

属性值

适用于