Share via


HttpConnectionOptions.WebSocketConfiguration Property

Definition

Gets or sets a delegate that will be invoked with the ClientWebSocketOptions object used to configure the WebSocket when using the WebSockets transport.

public:
 property Action<System::Net::WebSockets::ClientWebSocketOptions ^> ^ WebSocketConfiguration { Action<System::Net::WebSockets::ClientWebSocketOptions ^> ^ get(); void set(Action<System::Net::WebSockets::ClientWebSocketOptions ^> ^ value); };
public Action<System.Net.WebSockets.ClientWebSocketOptions> WebSocketConfiguration { get; set; }
public Action<System.Net.WebSockets.ClientWebSocketOptions>? WebSocketConfiguration { get; set; }
member this.WebSocketConfiguration : Action<System.Net.WebSockets.ClientWebSocketOptions> with get, set
Public Property WebSocketConfiguration As Action(Of ClientWebSocketOptions)

Property Value

Remarks

This delegate is invoked after headers from Headers and the access token from AccessTokenProvider has been applied.

If ClientWebSocketOptions.HttpVersion is set to 2.0 or higher, some options like Cookies will not be applied. Instead use Cookies or the corresponding option on HttpConnectionOptions.

Applies to