2 instantiations of HubLifetimeContext
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (2)
99var context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub); 134var context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub);
33 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)
25Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) => next(context); 34Task OnDisconnectedAsync(HubLifetimeContext context, Exception? exception, Func<HubLifetimeContext, Exception?, Task> next) => next(context, exception);
Internal\DefaultHubDispatcher.cs (4)
32private readonly Func<HubLifetimeContext, Task>? _onConnectedMiddleware; 33private readonly Func<HubLifetimeContext, Exception?, Task>? _onDisconnectedMiddleware; 99var context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub); 134var context = new HubLifetimeContext(connection.HubCallerContext, scope.ServiceProvider, hub);
Internal\HubFilterFactory.cs (4)
39public async Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 56public async Task OnDisconnectedAsync(HubLifetimeContext context, Exception? exception, Func<HubLifetimeContext, Exception?, Task> next)
Microsoft.AspNetCore.SignalR.Tests (20)
TestFilters.cs (20)
19public async Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 35public async Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next) 52public async Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 66public async Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next) 91public Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 97public Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next) 112public async Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 121public async Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next) 155public Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next) 165public Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next)