Compartilhar via


HubInvocationContext Construtores

Definição

Sobrecargas

HubInvocationContext(HubCallerContext, String, Object[])
Obsoleto.

Cria uma nova instância da classe HubInvocationContext.

HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>)

Cria uma nova instância da classe HubInvocationContext.

HubInvocationContext(HubCallerContext, String, Object[])

Cuidado

This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.

Cria uma nova instância da classe HubInvocationContext.

public:
 HubInvocationContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, System::String ^ hubMethodName, cli::array <System::Object ^> ^ hubMethodArguments);
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, string hubMethodName, object[] hubMethodArguments);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")]
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, string hubMethodName, object?[] hubMethodArguments);
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * string * obj[] -> Microsoft.AspNetCore.SignalR.HubInvocationContext
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")>]
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * string * obj[] -> Microsoft.AspNetCore.SignalR.HubInvocationContext
Public Sub New (context As HubCallerContext, hubMethodName As String, hubMethodArguments As Object())

Parâmetros

context
HubCallerContext

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

hubMethodName
String

O nome do método Hub que está sendo invocado.

hubMethodArguments
Object[]

Os argumentos fornecidos pelo cliente.

Atributos

Aplica-se a

HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>)

Origem:
HubInvocationContext.cs

Cria uma nova instância da classe HubInvocationContext.

public:
 HubInvocationContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, IServiceProvider ^ serviceProvider, Microsoft::AspNetCore::SignalR::Hub ^ hub, System::Reflection::MethodInfo ^ hubMethod, System::Collections::Generic::IReadOnlyList<System::Object ^> ^ hubMethodArguments);
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub, System.Reflection.MethodInfo hubMethod, System.Collections.Generic.IReadOnlyList<object?> hubMethodArguments);
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * IServiceProvider * Microsoft.AspNetCore.SignalR.Hub * System.Reflection.MethodInfo * System.Collections.Generic.IReadOnlyList<obj> -> Microsoft.AspNetCore.SignalR.HubInvocationContext
Public Sub New (context As HubCallerContext, serviceProvider As IServiceProvider, hub As Hub, hubMethod As MethodInfo, hubMethodArguments As IReadOnlyList(Of Object))

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.

hubMethod
MethodInfo

O MethodInfo para o método Hub que está sendo invocado.

hubMethodArguments
IReadOnlyList<Object>

Os argumentos fornecidos pelo cliente.

Aplica-se a