Bagikan melalui


HubLifetimeContext Kelas

Definisi

Konteks untuk peristiwa OnConnectedAsync() seumur hidup hub dan OnDisconnectedAsync(Exception).

public ref class HubLifetimeContext sealed
public sealed class HubLifetimeContext
type HubLifetimeContext = class
Public NotInheritable Class HubLifetimeContext
Warisan
HubLifetimeContext

Konstruktor

HubLifetimeContext(HubCallerContext, IServiceProvider, Hub)

Membuat instans baru kelas HubLifetimeContext .

Properti

Context

Mendapatkan konteks untuk koneksi dan pemanggil Hub aktif.

Hub

Mendapatkan instans Hub.

ServiceProvider

Khusus IServiceProvider untuk cakupan pemanggilan metode Hub ini.

Berlaku untuk