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