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