25 instantiations of JsonHubProtocol
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
47protocol ??= new JsonHubProtocol(); 3038{ "json", new JsonHubProtocol() },
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\JsonHubProtocolTests.cs (2)
24protected override IHubProtocol JsonHubProtocol => new JsonHubProtocol(); 38return new JsonHubProtocol(Options.Create(protocolOptions));
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
HubProtocolBenchmark.cs (1)
32_hubProtocol = new JsonHubProtocol();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\HubConnectionContextUtils.cs (1)
26Protocol = protocol ?? new JsonHubProtocol(),
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (3)
DefaultHubMessageSerializerTests.cs (3)
24var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 44var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 83new List<IHubProtocol>() { new MessagePackHubProtocol(), new JsonHubProtocol() },
Microsoft.AspNetCore.SignalR.Tests (15)
HubConnectionHandlerTests.ClientResult.cs (1)
351hubProtocol = new JsonHubProtocol();
HubConnectionHandlerTests.cs (2)
3021using (var client = new TestClient(new JsonHubProtocol())) 3080using (var client = new TestClient(new JsonHubProtocol()))
Internal\MessageBufferTests.cs (12)
20var protocol = new JsonHubProtocol(); 48var protocol = new JsonHubProtocol(); 85var protocol = new JsonHubProtocol(); 126var protocol = new JsonHubProtocol(); 175var protocol = new JsonHubProtocol(); 219var protocol = new JsonHubProtocol(); 243var protocol = new JsonHubProtocol(); 286var protocol = new JsonHubProtocol(); 323var protocol = new JsonHubProtocol(); 365var protocol = new JsonHubProtocol(); 402var protocol = new JsonHubProtocol(); 444var protocol = new JsonHubProtocol();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
HubConnectionContextUtils.cs (1)
26Protocol = protocol ?? new JsonHubProtocol(),
17 references to JsonHubProtocol
Microsoft.AspNetCore.SignalR.Protocols.Json (5)
JsonHubProtocolOptions.cs (2)
10/// Options used to configure a <see cref="JsonHubProtocol"/> instance. 17public JsonSerializerOptions PayloadSerializerOptions { get; set; } = JsonHubProtocol.CreateDefaultSerializerSettings();
JsonProtocolDependencyInjectionExtensions.cs (1)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, JsonHubProtocol>());
Protocol\JsonHubProtocol.cs (2)
58/// Initializes a new instance of the <see cref="JsonHubProtocol"/> class. 65/// Initializes a new instance of the <see cref="JsonHubProtocol"/> class.
Microsoft.AspNetCore.SignalR.Tests (12)
Internal\MessageBufferTests.cs (12)
20var protocol = new JsonHubProtocol(); 48var protocol = new JsonHubProtocol(); 85var protocol = new JsonHubProtocol(); 126var protocol = new JsonHubProtocol(); 175var protocol = new JsonHubProtocol(); 219var protocol = new JsonHubProtocol(); 243var protocol = new JsonHubProtocol(); 286var protocol = new JsonHubProtocol(); 323var protocol = new JsonHubProtocol(); 365var protocol = new JsonHubProtocol(); 402var protocol = new JsonHubProtocol(); 444var protocol = new JsonHubProtocol();