HubLifetimeContext(HubCallerContext, IServiceProvider, Hub) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates a new instance of the HubLifetimeContext class.
public:
HubLifetimeContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, IServiceProvider ^ serviceProvider, Microsoft::AspNetCore::SignalR::Hub ^ hub);
public HubLifetimeContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub);
new Microsoft.AspNetCore.SignalR.HubLifetimeContext : Microsoft.AspNetCore.SignalR.HubCallerContext * IServiceProvider * Microsoft.AspNetCore.SignalR.Hub -> Microsoft.AspNetCore.SignalR.HubLifetimeContext
Public Sub New (context As HubCallerContext, serviceProvider As IServiceProvider, hub As Hub)
Parameters
- context
- HubCallerContext
Context for the active Hub connection and caller.
- serviceProvider
- IServiceProvider
The IServiceProvider specific to the scope of this Hub method invocation.
- hub
- Hub
The instance of the Hub.