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);
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)
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)
Microsoft.AspNetCore.SignalR.Tests (20)
TestFilters.cs (20)
19
public async Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
35
public async Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception exception, Func<
HubLifetimeContext
, Exception, Task> next)
52
public async Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
66
public async Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception exception, Func<
HubLifetimeContext
, Exception, Task> next)
91
public Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
97
public Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception exception, Func<
HubLifetimeContext
, Exception, Task> next)
112
public async Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
121
public async Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception exception, Func<
HubLifetimeContext
, Exception, Task> next)
155
public Task OnConnectedAsync(
HubLifetimeContext
context, Func<
HubLifetimeContext
, Task> next)
165
public Task OnDisconnectedAsync(
HubLifetimeContext
context, Exception exception, Func<
HubLifetimeContext
, Exception, Task> next)