Share via


HttpConnectionOptions.WebSocketFactory Property

Definition

Gets or sets a delegate for wrapping or replacing the WebSocket that will be used for the WebSocket transport.

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))

Property Value

Applies to