28 references to InvokeAsync
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (17)
HubConnectionTests.cs (14)
106
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.HelloWorld)).DefaultTimeout();
290
var connectionIdFromServer = await connection.
InvokeAsync
<string>(nameof(TestHub.GetCallerConnectionId)).DefaultTimeout();
295
connectionIdFromServer = await connection.
InvokeAsync
<string>(nameof(TestHub.GetCallerConnectionId)).DefaultTimeout();
423
helloWorldTcs.SetResult(await connection.
InvokeAsync
<string>(nameof(TestHub.HelloWorld)).DefaultTimeout());
1369
var result = connection.
InvokeAsync
<string>(nameof(TestHub.CallWithUnserializableObject));
1423
var result = connection.
InvokeAsync
<string>(nameof(TestHub.GetUnserializableObject)).DefaultTimeout();
2008
var features = await hubConnection.
InvokeAsync
<JsonElement[]>(nameof(TestHub.GetIHttpConnectionFeatureProperties)).DefaultTimeout();
2047
var userIdentifier = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetUserIdentifier)).DefaultTimeout();
2077
var transport = await hubConnection.
InvokeAsync
<HttpTransportType>(nameof(TestHub.GetActiveTransportName)).DefaultTimeout();
2342
var invokeTask = connection.
InvokeAsync
<string>(nameof(TestHub.HelloWorld));
2388
var httpProtocol = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout();
2441
var httpProtocol = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout();
2484
var httpProtocol = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout();
2534
var httpProtocol = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout();
HubConnectionTests.Tracing.cs (3)
81
var resultTask = connection.
InvokeAsync
<string>(nameof(TestHub.HelloWorld)).DefaultTimeout();
103
var resultTask = connection.
InvokeAsync
<string>(nameof(TestHub.HelloWorld));
609
async () => await connection.
InvokeAsync
<string>(nameof(TestHub.InvokeException))).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Client.Tests (8)
HubConnectionTests.cs (5)
40
await Assert.ThrowsAsync<InvalidOperationException>(async () => await hubConnection.
InvokeAsync
<int>("test").DefaultTimeout());
134
var invokeTask = hubConnection.
InvokeAsync
<int>("testMethod").DefaultTimeout();
156
var invokeTask = hubConnection.
InvokeAsync
<int>("testMethod").DefaultTimeout();
175
var invokeTask = hubConnection.
InvokeAsync
<int>("testMethod", cancellationToken: cts.Token).DefaultTimeout();
192
hubConnection.
InvokeAsync
<int>("testMethod", cancellationToken: new CancellationToken(canceled: true)).DefaultTimeout());
HubConnectionTests.Protocol.cs (3)
280
var invokeTask = hubConnection.
InvokeAsync
<int>("Foo");
302
var invokeTask = hubConnection.
InvokeAsync
<int>("Foo");
371
var invokeTask = hubConnection.
InvokeAsync
<int>("Foo");
Microsoft.AspNetCore.SignalR.Tests (3)
NativeAotTests.cs (3)
47
var result = await connection.
InvokeAsync
<int>(nameof(AsyncMethodHub.TaskValueMethod)).DefaultTimeout();
50
result = await connection.
InvokeAsync
<int>(nameof(AsyncMethodHub.ValueTaskValueMethod)).DefaultTimeout();
53
result = await connection.
InvokeAsync
<int>(nameof(AsyncMethodHub.CustomTaskValueMethod)).DefaultTimeout();