2 instantiations of HubLifetimeContext
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (2)
99
var context = new
HubLifetimeContext
(connection.HubCallerContext, scope.ServiceProvider, hub);
134
var context = new
HubLifetimeContext
(connection.HubCallerContext, scope.ServiceProvider, hub);
13 references to HubLifetimeContext
Microsoft.AspNetCore.SignalR.Core (13)
HubLifetimeContext.cs (1)
12
/// Instantiates a new instance of the <see cref="
HubLifetimeContext
"/> class.
IHubFilter.cs (4)
25
Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next) => next(context);
34
Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception? exception, Func<
HubLifetimeContext
, Exception?, Task> next) => next(context, exception);
Internal\DefaultHubDispatcher.cs (4)
32
private readonly Func<
HubLifetimeContext
, Task>? _onConnectedMiddleware;
33
private readonly Func<
HubLifetimeContext
, Exception?, Task>? _onDisconnectedMiddleware;
99
var
context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub);
134
var
context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub);
Internal\HubFilterFactory.cs (4)
39
public async Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
56
public async Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception? exception, Func<
HubLifetimeContext
, Exception?, Task> next)