次の方法で共有


SignalRDependencyInjectionExtensions.AddHubOptions<THub> メソッド

定義

ハブ固有のオプションを に ISignalRServerBuilder追加します。

public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddHubOptions<THub> (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, Action<Microsoft.AspNetCore.SignalR.HubOptions<THub>> configure) where THub : Microsoft.AspNetCore.SignalR.Hub;
static member AddHubOptions : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * Action<Microsoft.AspNetCore.SignalR.HubOptions<'Hub>> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)
<Extension()>
Public Function AddHubOptions(Of THub As Hub) (signalrBuilder As ISignalRServerBuilder, configure As Action(Of HubOptions(Of THub))) As ISignalRServerBuilder

型パラメーター

THub

構成するハブの種類。

適用対象