3 implementations of IHubProtocolResolver
Microsoft.AspNetCore.SignalR.Core (1)
Internal\DefaultHubProtocolResolver.cs (1)
11internal sealed partial class DefaultHubProtocolResolver : IHubProtocolResolver
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
HubConnectionContextBenchmark.cs (1)
81public class TestHubProtocolResolver : IHubProtocolResolver
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
220public class CustomHubProtocolResolver : IHubProtocolResolver
17 references to IHubProtocolResolver
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionContext.cs (1)
493internal async Task<bool> HandshakeAsync(TimeSpan timeout, IReadOnlyList<string>? supportedProtocols, IHubProtocolResolver protocolResolver,
HubConnectionHandler.cs (2)
25private readonly IHubProtocolResolver _protocolResolver; 50IHubProtocolResolver protocolResolver,
SignalRDependencyInjectionExtensions.cs (1)
26services.TryAddSingleton(typeof(IHubProtocolResolver), typeof(DefaultHubProtocolResolver));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (6)
Internal\DefaultHubMessageSerializer.cs (1)
13public DefaultHubMessageSerializer(IHubProtocolResolver hubProtocolResolver, IList<string>? globalSupportedProtocols, IList<string>? hubSupportedProtocols)
RedisHubLifetimeManager.cs (5)
37private readonly IHubProtocolResolver _hubProtocolResolver; 49/// <param name="hubProtocolResolver">The <see cref="IHubProtocolResolver"/> to get an <see cref="IHubProtocol"/> instance when writing to connections.</param> 52IHubProtocolResolver hubProtocolResolver) 62/// <param name="hubProtocolResolver">The <see cref="IHubProtocolResolver"/> to get an <see cref="IHubProtocol"/> instance when writing to connections.</param> 67IHubProtocolResolver hubProtocolResolver,
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (3)
DefaultHubMessageSerializerTests.cs (3)
24var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 44var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 62private IHubProtocolResolver CreateHubProtocolResolver(List<IHubProtocol> hubProtocols)
Microsoft.AspNetCore.SignalR.Tests (4)
AddSignalRTests.cs (4)
31serviceCollection.AddSingleton<IHubProtocolResolver, CustomHubProtocolResolver>(); 42Assert.IsType<CustomHubProtocolResolver>(serviceProvider.GetRequiredService<IHubProtocolResolver>()); 59serviceCollection.AddSingleton<IHubProtocolResolver, CustomHubProtocolResolver>(); 67Assert.IsType<CustomHubProtocolResolver>(serviceProvider.GetRequiredService<IHubProtocolResolver>());