Condividi tramite


HttpConnectionOptions.WebSocketFactory Proprietà

Definizione

Ottiene o imposta un delegato per il wrapping o la sostituzione dell'oggetto WebSocket che verrà usato per il trasporto 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))

Valore della proprietà

Si applica a