13 implementations of Name
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\BlazorPackHubProtocol.cs (1)
24public string Name => ProtocolName;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubProtocolVersionTests.cs (1)
208public string Name => _protocol.Name;
VersionJsonHubProtocol.cs (1)
25public string Name => _innerProtocol.Name;
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
985public string Name => "MockHubProtocol";
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
DefaultHubDispatcherBenchmark.cs (1)
57public string Name { get; }
RedisHubLifetimeManagerBenchmark.cs (1)
174public string Name => _name;
RedisProtocolBenchmark.cs (1)
126public string Name { get; }
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
74public string Name => ProtocolName;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocol.cs (1)
27public string Name => ProtocolName;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
64public string Name => ProtocolName;
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
DefaultHubMessageSerializerTests.cs (1)
139public string Name => "test";
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
330public string Name => "custom";
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DummyHubProtocol.cs (1)
18public string Name { get; }
33 references to Name
Microsoft.AspNetCore.SignalR.Client.Core (5)
HubConnection.cs (3)
512Log.DisablingReconnect(_logger, _protocol.Name, _protocol.Version); 519Log.HubProtocol(_logger, _protocol.Name, usedProtocolVersion); 1486var handshakeRequest = new HandshakeRequestMessage(_protocol.Name, protocolVersion);
Internal\SerializedHubMessage.cs (2)
60if (!TryGetCachedUnsynchronized(protocol.Name, out var serialized)) 69SetCacheUnsynchronized(protocol.Name, serialized);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
208public string Name => _protocol.Name;
Microsoft.AspNetCore.SignalR.Core (7)
HubConnectionContext.cs (2)
569await WriteHandshakeResponseAsync(new HandshakeResponseMessage($"Cannot use the '{Protocol.Name}' protocol on the current transport. The transport does not support '{Protocol.TransferFormat}' transfer format.")); 604Log.HandshakeComplete(_logger, Protocol.Name);
HubOptionsSetup.cs (1)
39_defaultProtocols.Add(hubProtocol.Name);
Internal\DefaultHubProtocolResolver.cs (2)
26Log.RegisteredSignalRProtocol(_logger, protocol.Name, protocol.GetType()); 27_availableProtocols[protocol.Name] = protocol;
SerializedHubMessage.cs (2)
55if (!TryGetCachedUnsynchronized(protocol.Name, out var serialized)) 64SetCacheUnsynchronized(protocol.Name, serialized);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
355HandshakeProtocol.WriteRequestMessage(new HandshakeRequestMessage(_protocol.Name, _protocol.Version), memoryBufferWriter);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
Internal\DefaultHubMessageSerializer.cs (1)
32list.Add(new SerializedMessage(protocol.Name, protocol.GetMessageBytes(message)));
RedisHubLifetimeManager.cs (3)
82var supportedProtocols = hubProtocolResolver.AllProtocols.Select(p => p.Name).ToList(); 545var protocolName = connection.Protocol.Name; 652if (hubProtocol.Name.Equals(completion.ProtocolName))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
DefaultHubMessageSerializerTests.cs (1)
25var protocolNames = testData.SupportedHubProtocols.ConvertAll(p => p.Name);
RedisProtocolTests.cs (1)
299return new DefaultHubMessageSerializer(protocolResolver, protocols.ConvertAll(p => p.Name), hubSupportedProtocols: null);
Microsoft.AspNetCore.SignalR.Tests (9)
HubConnectionHandlerTests.cs (4)
255hubProtocolMock.Setup(m => m.Name).Returns("CustomProtocol"); 279hubProtocolMock.Setup(m => m.Name).Returns("CustomProtocol"); 639hubProtocolMock.Setup(m => m.Name).Returns("json"); 3894testProtocol.Setup(m => m.Name).Returns("CustomProtocol");
Internal\DefaultHubProtocolResolverTests.cs (5)
26resolver.GetProtocol(protocol.Name, HubProtocolHelpers.AllProtocolNames)); 39resolver.GetProtocol(protocol.Name, supportedProtocols)); 48var supportedProtocols = new List<string> { protocol.Name }; 52resolver.GetProtocol(protocol.Name, supportedProtocols)); 103public static IEnumerable<object[]> HubProtocolNames => HubProtocolHelpers.AllProtocols.Select(p => new object[] { p.Name });
Microsoft.AspNetCore.SignalR.Tests.Utils (4)
HubProtocolHelpers.cs (3)
16NewtonsoftJsonHubProtocol.Name, 17MessagePackHubProtocol.Name 28var protocol = AllProtocols.SingleOrDefault(p => p.Name == name);
TestClient.cs (1)
355HandshakeProtocol.WriteRequestMessage(new HandshakeRequestMessage(_protocol.Name, _protocol.Version), memoryBufferWriter);