HttpConnectionOptions.WebSocketConfiguration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.