45 references to ReceiveJsonMessage
Microsoft.AspNetCore.SignalR.Client.Tests (45)
HubConnectionTests.ConnectionLifecycle.cs (1)
638
await testConnection.
ReceiveJsonMessage
(new
HubConnectionTests.cs (11)
97
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.InvocationMessageType, target = "method", arguments = new object[] { } }).DefaultTimeout();
118
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.InvocationMessageType, target = "method", arguments = new object[] { } }).DefaultTimeout();
297
await connection.
ReceiveJsonMessage
(
329
await connection.
ReceiveJsonMessage
(
460
await connection.
ReceiveJsonMessage
(
533
await connection.
ReceiveJsonMessage
(
651
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.CompletionMessageType, invocationId = id, result = 10 });
688
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.CompletionMessageType, invocationId = id, result = "humbug" });
735
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.InvocationMessageType, target = "Echo", arguments = new object[] { "42" } }).DefaultTimeout();
739
await connection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.CloseMessageType }).DefaultTimeout();
906
await innerConnection.
ReceiveJsonMessage
(new { type = HubProtocolConstants.CloseMessageType });
HubConnectionTests.Extensions.cs (10)
224
await connection.
ReceiveJsonMessage
(
253
await connection.
ReceiveJsonMessage
(
262
await connection.
ReceiveJsonMessage
(
295
await connection.
ReceiveJsonMessage
(
304
await connection.
ReceiveJsonMessage
(
333
await connection.
ReceiveJsonMessage
(
342
await connection.
ReceiveJsonMessage
(
375
await connection.
ReceiveJsonMessage
(
384
await connection.
ReceiveJsonMessage
(
684
await connection.
ReceiveJsonMessage
(
HubConnectionTests.Protocol.cs (20)
81
await connection.
ReceiveJsonMessage
(new { type = "foo" }).DefaultTimeout();
159
await connection.
ReceiveJsonMessage
(new { type = 7 }).DefaultTimeout();
188
await connection.
ReceiveJsonMessage
(new { type = 7, error = "Error!" }).DefaultTimeout();
217
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();
238
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();
260
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();
282
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3, result = 42 }).DefaultTimeout();
304
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3, error = "An error occurred" }).DefaultTimeout();
327
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3, result = "Oops" }).DefaultTimeout();
350
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3, error = "An error occurred" }).DefaultTimeout();
373
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 2, item = 42 }).DefaultTimeout();
396
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 2, item = "1" }).DefaultTimeout();
397
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 2, item = "2" }).DefaultTimeout();
398
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 2, item = "3" }).DefaultTimeout();
399
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();
425
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 1, target = "Foo", arguments = args }).DefaultTimeout();
452
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 1, target = "Foo", arguments = 1 }).DefaultTimeout();
484
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 1, target = "Foo", arguments = 1 }).DefaultTimeout();
516
await connection.
ReceiveJsonMessage
(new { type = 6 }).DefaultTimeout();
519
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();
HubConnectionTests.Reconnect.cs (2)
528
await currentConnection.
ReceiveJsonMessage
(new
603
await currentConnection.
ReceiveJsonMessage
(new
HubConnectionTests.Tracing.cs (1)
86
await connection.
ReceiveJsonMessage
(new { invocationId = "1", type = 3 }).DefaultTimeout();