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