Partager via


SignalRDependencyInjectionExtensions.AddHubOptions<THub> Méthode

Définition

Ajoute des options spécifiques au hub à un 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

Paramètres de type

THub

Type de hub à configurer.

S’applique à