Compartilhar via


SignalRDependencyInjectionExtensions.AddHubOptions<THub> Método

Definição

Adiciona opções específicas do hub a um 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

Parâmetros de tipo

THub

O tipo de hub a ser configurado.

Aplica-se a