HubLifetimeContext 類別

定義

中樞存留期事件 OnConnectedAsync()OnDisconnectedAsync(Exception) 的內容。

public ref class HubLifetimeContext sealed
public sealed class HubLifetimeContext
type HubLifetimeContext = class
Public NotInheritable Class HubLifetimeContext
繼承
HubLifetimeContext

建構函式

HubLifetimeContext(HubCallerContext, IServiceProvider, Hub)

執行個體化 HubLifetimeContext 類別的新執行個體。

屬性

Context

取得使用中樞連線和呼叫端的內容。

Hub

取得中樞實例。

ServiceProvider

這個 IServiceProvider 中樞方法調用範圍的特定 。

適用於