語言

ServerComponentsEndpointOptions.ConfigureConnection 屬性

定義

取得或設定回調以設定 SignalR 連線所使用的 。HttpConnectionDispatcherOptions

public Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions>? ConfigureConnection { get; set; }
member this.ConfigureConnection : Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> with get, set
Public Property ConfigureConnection As Action(Of HttpConnectionDispatcherOptions)

屬性值

備註

這允許配置如 CloseOnAuthenticationExpiration、傳輸選項、授權資料及其他連線層級設定。

適用於