Compartir a través de


HttpConnectionOptions.WebSocketFactory Propiedad

Definición

Obtiene o establece un delegado para encapsular o reemplazar el WebSocket que se usará para el transporte de 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))

Valor de propiedad

Se aplica a