HubInvocationContext Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
HubInvocationContext(HubCallerContext, String, Object[]) |
Kedaluwarsa.
Membuat instans baru kelas HubInvocationContext . |
HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>) |
Membuat instans baru kelas HubInvocationContext . |
HubInvocationContext(HubCallerContext, String, Object[])
Perhatian
This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.
Membuat instans baru kelas 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())
Parameter
- context
- HubCallerContext
Konteks untuk koneksi dan pemanggil Hub aktif.
- hubMethodName
- String
Nama metode Hub yang sedang dipanggil.
- hubMethodArguments
- Object[]
Argumen yang disediakan oleh klien.
- Atribut
Berlaku untuk
HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>)
- Sumber:
- HubInvocationContext.cs
Membuat instans baru kelas 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))
Parameter
- context
- HubCallerContext
Konteks untuk koneksi dan pemanggil Hub aktif.
- serviceProvider
- IServiceProvider
Khusus IServiceProvider untuk cakupan pemanggilan metode Hub ini.
- hub
- Hub
Instans Hub.
- hubMethod
- MethodInfo
MethodInfo untuk metode Hub yang dipanggil.
- hubMethodArguments
- IReadOnlyList<Object>
Argumen yang disediakan oleh klien.