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