Partager via


HubInvocationContext Constructeurs

Définition

Surcharges

HubInvocationContext(HubCallerContext, String, Object[])
Obsolète.

Instancie une nouvelle instance de la classe HubInvocationContext.

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

Instancie une nouvelle instance de la classe HubInvocationContext.

HubInvocationContext(HubCallerContext, String, Object[])

Attention

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

Instancie une nouvelle instance de la 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())

Paramètres

context
HubCallerContext

Contexte de la connexion hub active et de l’appelant.

hubMethodName
String

Nom de la méthode Hub appelée.

hubMethodArguments
Object[]

Arguments fournis par le client.

Attributs

S’applique à

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

Source:
HubInvocationContext.cs

Instancie une nouvelle instance de la 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))

Paramètres

context
HubCallerContext

Contexte de la connexion hub active et de l’appelant.

serviceProvider
IServiceProvider

IServiceProvider spécifique à l’étendue de cet appel de méthode Hub.

hub
Hub

Instance du hub.

hubMethod
MethodInfo

MethodInfo pour la méthode Hub appelée.

hubMethodArguments
IReadOnlyList<Object>

Arguments fournis par le client.

S’applique à