85 references to InvokeAsync
Microsoft.AspNetCore.SignalR.Tests (85)
HubConnectionHandlerTests.Activity.cs (1)
480_ = await client.InvokeAsync(nameof(MethodHub.MethodThatThrows)).DefaultTimeout();
HubConnectionHandlerTests.ClientResult.cs (6)
297var completionMessage = await client.InvokeAsync(nameof(MethodHub.BackgroundClientResult)).DefaultTimeout(); 315completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).DefaultTimeout(); 392var completion = await client.InvokeAsync(nameof(HubT.Echo), "test").DefaultTimeout(); 437var completion = await client.InvokeAsync("Echo", "test").DefaultTimeout(); 475var completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).DefaultTimeout(); 513completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).DefaultTimeout();
HubConnectionHandlerTests.cs (60)
79var result = (await client.InvokeAsync(nameof(HubWithAsyncDisposable.Test)).DefaultTimeout()); 806var result = (await client.InvokeAsync(nameof(MethodHub.TaskValueMethod)).DefaultTimeout()).Result; 832var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskValueMethod)).DefaultTimeout()).Result; 858var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskMethod)).DefaultTimeout()).Result; 882var result = (await client.InvokeAsync("echo", "hello").DefaultTimeout()).Result; 928var message = await client.InvokeAsync(methodName).DefaultTimeout(); 997var message = await client.InvokeAsync(methodName).DefaultTimeout(); 1051var result = (await client.InvokeAsync(nameof(MethodHub.VoidMethod)).DefaultTimeout()).Result; 1076var result = (await client.InvokeAsync("RenamedMethod").DefaultTimeout()).Result; 1102var result = (await client.InvokeAsync("RenamedVirtualMethod").DefaultTimeout()).Result; 1165var result = (await client.InvokeAsync(nameof(MethodHub.ConcatString), (byte)32, 42, 'm', "string").DefaultTimeout()).Result; 1190var result = (await client.InvokeAsync(nameof(InheritedHub.BaseMethod), "string").DefaultTimeout()).Result; 1215var result = (await client.InvokeAsync(nameof(InheritedHub.VirtualMethod), 10).DefaultTimeout()).Result; 1240var result = await client.InvokeAsync(nameof(MethodHub.OnDisconnectedAsync)).DefaultTimeout(); 1284var result = await client.InvokeAsync(nameof(MethodHub.StaticMethod)).DefaultTimeout(); 1309var result = await client.InvokeAsync(nameof(MethodHub.ToString)).DefaultTimeout(); 1312result = await client.InvokeAsync(nameof(MethodHub.GetHashCode)).DefaultTimeout(); 1315result = await client.InvokeAsync(nameof(MethodHub.Equals)).DefaultTimeout(); 1318result = await client.InvokeAsync(nameof(MethodHub.ReferenceEquals)).DefaultTimeout(); 1342var result = await client.InvokeAsync(nameof(MethodHub.Dispose)).DefaultTimeout(); 1702var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 1710result = (await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").DefaultTimeout()).Result; 1746var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 1754await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").DefaultTimeout(); 1755await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").DefaultTimeout(); 1799var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 1807await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").DefaultTimeout(); 1808await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").DefaultTimeout(); 1850await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "GroupA").DefaultTimeout(); 1851await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "GroupB").DefaultTimeout(); 2213var message = await client.InvokeAsync(nameof(MethodHub.AuthMethod)).DefaultTimeout(); 2250var message = await client.InvokeAsync(nameof(MethodHub.AuthMethod)).DefaultTimeout(); 2358var message = await client.InvokeAsync(nameof(MethodHub.MultiParamAuthMethod), "Hello", "World!").DefaultTimeout(); 2628var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).DefaultTimeout()).Result; 2653var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).DefaultTimeout()).Result; 2680var completion = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).DefaultTimeout(); 3031var hubMethodTask1 = client.InvokeAsync(nameof(LongRunningHub.LongRunningMethod)); 3087var hubMethodTask = client.InvokeAsync(nameof(LongRunningHub.LongRunningMethod)); 3192var completion = await client.InvokeAsync(nameof(StreamingHub.NonStream)).DefaultTimeout(); 3525var completion = await client.InvokeAsync(nameof(LongRunningHub.SimpleMethod)).DefaultTimeout(); 3780var completion = await client.InvokeAsync(nameof(LongRunningHub.SimpleMethod)).DefaultTimeout(); 4661var res = await client.InvokeAsync(nameof(ServicesHub.SingleService)).DefaultTimeout(); 4678var res = await client.InvokeAsync(nameof(ServicesHub.SingleService)).DefaultTimeout(); 4697var res = await client.InvokeAsync(nameof(ServicesHub.MultipleServices)).DefaultTimeout(); 4741var res = await client.InvokeAsync(nameof(ServicesHub.Stream)).DefaultTimeout(); 4763var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).DefaultTimeout(); 4784var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).DefaultTimeout(); 4805var res = await client.InvokeAsync(nameof(ServicesHub.IEnumerableOfServiceWithoutAttribute)).DefaultTimeout(); 4830var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).DefaultTimeout(); 4853var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithAndWithoutAttribute)).DefaultTimeout(); 4875var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithAndWithoutAttribute)).DefaultTimeout(); 4895var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).DefaultTimeout(); 4915var res = await client.InvokeAsync(nameof(ServicesHub.IEnumerableOfServiceWithoutAttribute)).DefaultTimeout(); 4938var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedService)).DefaultTimeout(); 4961var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedServiceWithParam), 91).DefaultTimeout(); 4985var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedServiceNonKeyedService)).DefaultTimeout(); 5008var res = await client.InvokeAsync(nameof(KeyedServicesHub.MultipleKeyedServices)).DefaultTimeout(); 5031var res = await client.InvokeAsync(nameof(KeyedServicesHub.MultipleSameKeyedServices)).DefaultTimeout(); 5183var completionMessage = await client.InvokeAsync(nameof(MethodHub.Echo), new object[] { "test" }); 5209await client.InvokeAsync(nameof(MethodHub.Echo), new object[] { new string('x', 500) }).DefaultTimeout();
HubFilterTests.cs (18)
125var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 161var completion = await client.InvokeAsync(nameof(DynamicTestHub.Echo), "hello"); 202var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 252var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 303var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 352var invokeTask = client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!"); 412var invokeTask = client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!"); 474var invokeTask = client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!"); 551var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 599var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 638var message = await client.InvokeAsync("Method"); 669var message = await client.InvokeAsync("Method"); 700var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").DefaultTimeout(); 739var message = await client.InvokeAsync("Echo", "Hello"); 776var message = await client.InvokeAsync("Echo", "Hello"); 815var message = await client.InvokeAsync("Echo", "Hello"); 852var message = await client.InvokeAsync("Echo", "Hello"); 890var message = await client.InvokeAsync("Echo", "Hello");