Share via


HubLifetimeContext Class

Definition

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

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

Constructors

HubLifetimeContext(HubCallerContext, IServiceProvider, Hub)

Instantiates a new instance of the HubLifetimeContext class.

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