Condividi tramite


HubInvocationContext Costruttori

Definizione

Overload

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

Crea una nuova istanza della classe HubInvocationContext.

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

Crea una nuova istanza della classe HubInvocationContext.

HubInvocationContext(HubCallerContext, String, Object[])

Attenzione

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

Crea una nuova istanza della 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())

Parametri

context
HubCallerContext

Contesto per la connessione e il chiamante hub attivi.

hubMethodName
String

Nome del metodo Hub richiamato.

hubMethodArguments
Object[]

Argomenti forniti dal client.

Attributi

Si applica a

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

Origine:
HubInvocationContext.cs

Crea una nuova istanza della 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))

Parametri

context
HubCallerContext

Contesto per la connessione e il chiamante hub attivi.

serviceProvider
IServiceProvider

IServiceProvider Specifica dell'ambito della chiamata al metodo hub.

hub
Hub

Istanza dell'hub.

hubMethod
MethodInfo

Oggetto MethodInfo per il metodo Hub richiamato.

hubMethodArguments
IReadOnlyList<Object>

Argomenti forniti dal client.

Si applica a