2 overrides of JsonHubProtocol
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\JsonHubProtocolTests.cs (1)
24protected override IHubProtocol JsonHubProtocol => new JsonHubProtocol();
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (1)
23protected override IHubProtocol JsonHubProtocol => new NewtonsoftJsonHubProtocol();
16 references to JsonHubProtocol
Microsoft.AspNetCore.SignalR.Common.Tests (16)
Internal\Protocol\JsonHubProtocolTestsBase.cs (16)
196var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var _)); 207JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 236Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 256JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 269var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 280JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 295JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 307JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 320JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 349JsonHubProtocol.WriteMessage(new InvocationMessage("123", "Target", new object[] { obj }), writer); 396JsonHubProtocol.WriteMessage(testData.Message, writer); 442Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 449JsonHubProtocol.WriteMessage(completion, writer); 455Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out message)); 474Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var hubMessage)); 490Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var hubMessage));