Compartir a través de


HubInvocationContext Constructores

Definición

Sobrecargas

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

Crea una nueva instancia de la clase HubInvocationContext.

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

Crea una nueva instancia de la clase HubInvocationContext.

HubInvocationContext(HubCallerContext, String, Object[])

Precaución

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

Crea una nueva instancia de la clase 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 la conexión y el autor de la llamada del centro activo.

hubMethodName
String

Nombre del método hub que se está invocando.

hubMethodArguments
Object[]

Argumentos proporcionados por el cliente.

Atributos

Se aplica a

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

Source:
HubInvocationContext.cs

Crea una nueva instancia de la clase 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 la conexión y el autor de la llamada del centro activo.

serviceProvider
IServiceProvider

IServiceProvider Específico del ámbito de esta invocación de método hub.

hub
Hub

Instancia del centro de conectividad.

hubMethod
MethodInfo

MethodInfo para el método hub que se está invocando.

hubMethodArguments
IReadOnlyList<Object>

Argumentos proporcionados por el cliente.

Se aplica a