ServerComponentsEndpointOptions.ConfigureWebSocketAcceptContext 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 function to configure the WebSocketAcceptContext for the websocket connections used by the server components.
public Func<Microsoft.AspNetCore.Http.HttpContext,Microsoft.AspNetCore.Http.WebSocketAcceptContext,System.Threading.Tasks.Task>? ConfigureWebSocketAcceptContext { get; set; }
member this.ConfigureWebSocketAcceptContext : Func<Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Http.WebSocketAcceptContext, System.Threading.Tasks.Task> with get, set
Public Property ConfigureWebSocketAcceptContext As Func(Of HttpContext, WebSocketAcceptContext, Task)
Property Value
Remarks
By default, a policy that enables compression and sets a Content Security Policy for the frame ancestors defined in ContentSecurityFrameAncestorsPolicy will be applied.