HubInvocationContext 构造函数

定义

重载

HubInvocationContext(HubCallerContext, String, Object[])
已过时.

实例化 HubInvocationContext 类的新实例。

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

实例化 HubInvocationContext 类的新实例。

HubInvocationContext(HubCallerContext, String, Object[])

注意

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

实例化 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())

参数

context
HubCallerContext

活动中心连接和调用者的上下文。

hubMethodName
String

正在调用的 Hub 方法的名称。

hubMethodArguments
Object[]

客户端提供的参数。

属性

适用于

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

实例化 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))

参数

context
HubCallerContext

活动中心连接和调用者的上下文。

serviceProvider
IServiceProvider

IServiceProvider特定于此 Hub 方法调用范围的 。

hub
Hub

中心的实例。

hubMethod
MethodInfo

MethodInfo要调用的 Hub 方法的 。

hubMethodArguments
IReadOnlyList<Object>

客户端提供的参数。

适用于