Partilhar via


HubLifetimeContext(HubCallerContext, IServiceProvider, Hub) Construtor

Definição

Cria uma nova instância da classe HubLifetimeContext.

public:
 HubLifetimeContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, IServiceProvider ^ serviceProvider, Microsoft::AspNetCore::SignalR::Hub ^ hub);
public HubLifetimeContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub);
new Microsoft.AspNetCore.SignalR.HubLifetimeContext : Microsoft.AspNetCore.SignalR.HubCallerContext * IServiceProvider * Microsoft.AspNetCore.SignalR.Hub -> Microsoft.AspNetCore.SignalR.HubLifetimeContext
Public Sub New (context As HubCallerContext, serviceProvider As IServiceProvider, hub As Hub)

Parâmetros

context
HubCallerContext

Contexto para a conexão do Hub ativa e o chamador.

serviceProvider
IServiceProvider

O IServiceProvider específico para o escopo dessa invocação de método hub.

hub
Hub

A instância do Hub.

Aplica-se a