HubLifetimeContext Class

Definition

Context for the hub lifetime events OnConnectedAsync() and OnDisconnectedAsync(Exception).

C#
public sealed class HubLifetimeContext
Inheritance
HubLifetimeContext

Constructors

Properties

Context

Gets the context for the active Hub connection and caller.

Hub

Gets the Hub instance.

ServiceProvider

The IServiceProvider specific to the scope of this Hub method invocation.

Applies to

Product Versions
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0