32 instantiations of NewtonsoftJsonHubProtocol
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (1)
3039{ "newtonsoft-json", new NewtonsoftJsonHubProtocol() },
VersionJsonHubProtocol.cs (1)
22_innerProtocol = new NewtonsoftJsonHubProtocol();
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (2)
23protected override IHubProtocol JsonHubProtocol => new NewtonsoftJsonHubProtocol(); 36return new NewtonsoftJsonHubProtocol(Options.Create(protocolOptions));
Microsoft.AspNetCore.SignalR.Microbenchmarks (8)
BroadcastBenchmark.cs (1)
34protocol = new NewtonsoftJsonHubProtocol();
DefaultHubLifetimeManagerBenchmark.cs (1)
31var jsonHubProtocol = new NewtonsoftJsonHubProtocol();
HubConnectionContextBenchmark.cs (1)
48_successHubProtocolResolver = new TestHubProtocolResolver(new NewtonsoftJsonHubProtocol());
HubConnectionReceiveBenchmark.cs (1)
65hubProtocol = new NewtonsoftJsonHubProtocol();
HubProtocolBenchmark.cs (1)
35_hubProtocol = new NewtonsoftJsonHubProtocol();
RedisHubLifetimeManagerBenchmark.cs (1)
98? new WrappedHubProtocol($"json_{i}", new NewtonsoftJsonHubProtocol())
ServerSentEventsBenchmark.cs (2)
30protocol = new NewtonsoftJsonHubProtocol(); 35protocol = new NewtonsoftJsonHubProtocol
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
62_protocol = protocol ?? new NewtonsoftJsonHubProtocol();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
40new NewtonsoftJsonHubProtocol(Options.Create(jsonOptions)),
Microsoft.AspNetCore.SignalR.Tests (16)
HubConnectionHandlerTests.cs (12)
2131using (var client1 = new TestClient(protocol: new NewtonsoftJsonHubProtocol())) 2671using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2700using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2747using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2809using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2845using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2878using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 2908using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 3107using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 3150using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 3185using (var client = new TestClient(new NewtonsoftJsonHubProtocol())) 4482protocol: new NewtonsoftJsonHubProtocol(Options.Create(protocolOptions)),
Internal\DefaultHubProtocolResolverTests.cs (4)
75var jsonProtocol1 = new NewtonsoftJsonHubProtocol(); 76var jsonProtocol2 = new NewtonsoftJsonHubProtocol(); 90var jsonProtocol1 = new NewtonsoftJsonHubProtocol(); 91var jsonProtocol2 = new NewtonsoftJsonHubProtocol();
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
HubProtocolHelpers.cs (1)
10private static readonly IHubProtocol NewtonsoftJsonHubProtocol = new NewtonsoftJsonHubProtocol();
TestClient.cs (1)
62_protocol = protocol ?? new NewtonsoftJsonHubProtocol();
16 references to NewtonsoftJsonHubProtocol
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
VersionJsonHubProtocol.cs (1)
17private readonly NewtonsoftJsonHubProtocol _innerProtocol;
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HubConnectionBuilderExtensionsTests.cs (1)
110Assert.IsType<NewtonsoftJsonHubProtocol>(resolvedHubProtocol);
HubConnectionBuilderTests.cs (4)
41var actualProtocol = Assert.IsType<NewtonsoftJsonHubProtocol>(serviceProvider.GetService<IHubProtocol>()); 56var actualProtocol = Assert.IsType<NewtonsoftJsonHubProtocol>(serviceProvider.GetService<IHubProtocol>());
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubLifetimeManagerBenchmark.cs (1)
31var jsonHubProtocol = new NewtonsoftJsonHubProtocol();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
NewtonsoftJsonHubProtocolOptions.cs (2)
10/// Options used to configure a <see cref="NewtonsoftJsonHubProtocol"/> instance. 17public JsonSerializerSettings PayloadSerializerSettings { get; set; } = NewtonsoftJsonHubProtocol.CreateDefaultSerializerSettings();
NewtonsoftJsonProtocolDependencyInjectionExtensions.cs (1)
41builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, NewtonsoftJsonHubProtocol>());
Protocol\NewtonsoftJsonHubProtocol.cs (2)
48/// Initializes a new instance of the <see cref="NewtonsoftJsonHubProtocol"/> class. 55/// Initializes a new instance of the <see cref="NewtonsoftJsonHubProtocol"/> class.
Microsoft.AspNetCore.SignalR.Tests (4)
Internal\DefaultHubProtocolResolverTests.cs (4)
75var jsonProtocol1 = new NewtonsoftJsonHubProtocol(); 76var jsonProtocol2 = new NewtonsoftJsonHubProtocol(); 90var jsonProtocol1 = new NewtonsoftJsonHubProtocol(); 91var jsonProtocol2 = new NewtonsoftJsonHubProtocol();