19 instantiations of MessagePackHubProtocol
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
3040{ "messagepack", new MessagePackHubProtocol() },
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MessagePackHubProtocolTests.cs (1)
14protected override IHubProtocol HubProtocol => new MessagePackHubProtocol();
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
BroadcastBenchmark.cs (1)
38protocol = new MessagePackHubProtocol();
HubConnectionReceiveBenchmark.cs (1)
69hubProtocol = new MessagePackHubProtocol();
HubProtocolBenchmark.cs (1)
29_hubProtocol = new MessagePackHubProtocol();
RedisHubLifetimeManagerBenchmark.cs (1)
99: new WrappedHubProtocol($"messagepack_{i}", new MessagePackHubProtocol());
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (6)
DefaultHubMessageSerializerTests.cs (5)
24var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 44var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 71new List<IHubProtocol>() { new MessagePackHubProtocol() }, 83new List<IHubProtocol>() { new MessagePackHubProtocol(), new JsonHubProtocol() }, 100new List<IHubProtocol>() { new MessagePackHubProtocol(), new TestHubProtocol() },
RedisHubLifetimeManagerTests.cs (1)
41new MessagePackHubProtocol(Options.Create(messagePackOptions)),
Microsoft.AspNetCore.SignalR.Tests (6)
HubConnectionHandlerTests.ClientResult.cs (1)
347hubProtocol = new MessagePackHubProtocol();
HubConnectionHandlerTests.cs (5)
283using (var client = new TestClient(protocol: new MessagePackHubProtocol())) 2132using (var client2 = new TestClient(protocol: new MessagePackHubProtocol())) 2458using (var client = new TestClient(protocol: new MessagePackHubProtocol(msgPackOptions))) 2496using (var client = new TestClient(protocol: new MessagePackHubProtocol(msgPackOptions))) 2520using (var client = new TestClient(protocol: new MessagePackHubProtocol(msgPackOptions)))
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
HubProtocolHelpers.cs (1)
12private static readonly IHubProtocol MessagePackHubProtocol = new MessagePackHubProtocol();
9 references to MessagePackHubProtocol
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
3000if (!(protocol.Value is MessagePackHubProtocol) || transport != HttpTransportType.ServerSentEvents)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionBuilderExtensionsTests.cs (1)
123Assert.IsType<MessagePackHubProtocol>(resolvedHubProtocol);
HubConnectionBuilderTests.cs (1)
78Assert.IsType<MessagePackHubProtocol>(serviceProvider.GetService<IHubProtocol>());
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (5)
MessagePackHubProtocolOptions.cs (2)
10/// The <see cref="MessagePackHubProtocol"/> options. 31_messagePackSerializerOptions = MessagePackHubProtocol.CreateDefaultMessagePackSerializerOptions();
MessagePackProtocolDependencyInjectionExtensions.cs (1)
41builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, MessagePackHubProtocol>());
Protocol\MessagePackHubProtocol.cs (2)
36/// Initializes a new instance of the <see cref="MessagePackHubProtocol"/> class. 43/// Initializes a new instance of the <see cref="MessagePackHubProtocol"/> class.
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
179serviceCollection.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, MessagePackHubProtocol>());