Share via


HubInvocationContext Konstruktoren

Definition

Überlädt

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

Instanziiert eine neue Instanz der HubInvocationContext-Klasse.

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

Instanziiert eine neue Instanz der HubInvocationContext-Klasse.

HubInvocationContext(HubCallerContext, String, Object[])

Achtung

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

Instanziiert eine neue Instanz der HubInvocationContext-Klasse.

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())

Parameter

context
HubCallerContext

Kontext für die aktive Hubverbindung und den Aufrufer.

hubMethodName
String

Der Name der aufgerufenen Hub-Methode.

hubMethodArguments
Object[]

Die vom Client bereitgestellten Argumente.

Attribute

Gilt für:

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

Instanziiert eine neue Instanz der HubInvocationContext-Klasse.

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))

Parameter

context
HubCallerContext

Kontext für die aktive Hubverbindung und den Aufrufer.

serviceProvider
IServiceProvider

Die IServiceProvider spezifische für den Bereich dieses Hub-Methodenaufrufs.

hub
Hub

Die instance des Hubs.

hubMethod
MethodInfo

Der MethodInfo für die Hub-Methode, die aufgerufen wird.

hubMethodArguments
IReadOnlyList<Object>

Die vom Client bereitgestellten Argumente.

Gilt für: