Aracılığıyla paylaş


SignalRDependencyInjectionExtensions.AddHubOptions<THub> Yöntem

Tanım

Bir ISignalRServerBuilderöğesine hub'a özgü seçenekler ekler.

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

Tür Parametreleri

THub

Yapılandırılan hub türü.

Şunlara uygulanır