20 references to HubProtocolHelpers
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (6)
RedisEndToEnd.cs (6)
44var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 64var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 96var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 128var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 154var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 190var protocol = HubProtocolHelpers.GetHubProtocol(protocolName);
Microsoft.AspNetCore.SignalR.Tests (14)
HubConnectionHandlerTests.cs (2)
2007var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 2180foreach (var protocolName in HubProtocolHelpers.AllProtocolNames)
Internal\DefaultHubProtocolResolverTests.cs (12)
21var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 23var resolver = new DefaultHubProtocolResolver(HubProtocolHelpers.AllProtocols, NullLogger<DefaultHubProtocolResolver>.Instance); 26resolver.GetProtocol(protocol.Name, HubProtocolHelpers.AllProtocolNames)); 33var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 36var resolver = new DefaultHubProtocolResolver(HubProtocolHelpers.AllProtocols, NullLogger<DefaultHubProtocolResolver>.Instance); 46var protocol = HubProtocolHelpers.GetHubProtocol(protocolName); 49var resolver = new DefaultHubProtocolResolver(HubProtocolHelpers.AllProtocols, NullLogger<DefaultHubProtocolResolver>.Instance); 58var resolver = new DefaultHubProtocolResolver(HubProtocolHelpers.AllProtocols, NullLogger<DefaultHubProtocolResolver>.Instance); 60() => resolver.GetProtocol(null, HubProtocolHelpers.AllProtocolNames)); 68var resolver = new DefaultHubProtocolResolver(HubProtocolHelpers.AllProtocols, NullLogger<DefaultHubProtocolResolver>.Instance); 69Assert.Null(resolver.GetProtocol("notARealProtocol", HubProtocolHelpers.AllProtocolNames)); 103public static IEnumerable<object[]> HubProtocolNames => HubProtocolHelpers.AllProtocols.Select(p => new object[] { p.Name });