6 implementations of IUserIdProvider
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HeaderUserIdProvider.cs (1)
6internal class HeaderUserIdProvider : IUserIdProvider
Microsoft.AspNetCore.SignalR.Core (1)
DefaultUserIdProvider.cs (1)
12public class DefaultUserIdProvider : IUserIdProvider
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
HubConnectionContextBenchmark.cs (1)
73public class TestUserIdProvider : IUserIdProvider
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Startup.cs (1)
39private class UserNameIdProvider : IUserIdProvider
Microsoft.AspNetCore.SignalR.Tests (2)
AddSignalRTests.cs (1)
212public class CustomIdProvider : IUserIdProvider
HubConnectionHandlerTests.cs (1)
5402private class TestUserIdProvider : IUserIdProvider
12 references to IUserIdProvider
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
35services.AddSingleton<IUserIdProvider, HeaderUserIdProvider>();
Microsoft.AspNetCore.SignalR.Core (5)
HubConnectionContext.cs (1)
494IUserIdProvider userIdProvider, bool enableDetailedErrors)
HubConnectionHandler.cs (2)
28private readonly IUserIdProvider _userIdProvider; 54IUserIdProvider userIdProvider,
IUserIdProvider.cs (1)
9/// <remarks><see cref="IUserIdProvider"/> is used by <see cref="IHubClients{T}.User(string)"/> to invoke connections associated with a user.</remarks>
SignalRDependencyInjectionExtensions.cs (1)
30services.TryAddSingleton(typeof(IUserIdProvider), typeof(DefaultUserIdProvider));
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Startup.cs (1)
27services.AddSingleton<IUserIdProvider, UserNameIdProvider>();
Microsoft.AspNetCore.SignalR.Tests (5)
AddSignalRTests.cs (4)
29serviceCollection.AddSingleton<IUserIdProvider, CustomIdProvider>(); 40Assert.IsType<CustomIdProvider>(serviceProvider.GetRequiredService<IUserIdProvider>()); 57serviceCollection.AddSingleton<IUserIdProvider, CustomIdProvider>(); 65Assert.IsType<CustomIdProvider>(serviceProvider.GetRequiredService<IUserIdProvider>());
HubConnectionHandlerTests.cs (1)
2548services.AddSingleton<IUserIdProvider>(userIdProvider);