42 references to InvokeAsync
ClientSample (1)
UploadSample.cs (1)
45
var invokeTask = connection.
InvokeAsync
<string>("UploadWord", channel.Reader);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (32)
HubConnectionTests.cs (30)
200
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
228
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), null).DefaultTimeout();
257
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
261
result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
348
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
358
result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
387
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo).ToLowerInvariant(), originalMessage).DefaultTimeout();
1463
var hubException = await Assert.ThrowsAsync<HubException>(() => connection.
InvokeAsync
<int>("StreamEcho", new List<string> { "1", "2" }).DefaultTimeout());
1493
var message = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.Echo), "Hello, World!").DefaultTimeout();
1548
var message = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.Echo), "Hello, World!").DefaultTimeout();
1580
var headerValues = await hubConnection.
InvokeAsync
<string[]>(nameof(TestHub.GetHeaderValues), new[] { "X-test", "X-42" }).DefaultTimeout();
1611
var headerValues = await hubConnection.
InvokeAsync
<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout();
1652
var headerValues = await hubConnection.
InvokeAsync
<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout();
1687
var headerValues = await hubConnection.
InvokeAsync
<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout();
1727
var cookieValue = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetCookieValue), "Foo").DefaultTimeout();
1778
var echoResponse = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.Echo), "Foo").DefaultTimeout();
1837
var echoResponse = await hubConnection.
InvokeAsync
<string>(nameof(HubWithAuthorization2.Echo), "Foo").DefaultTimeout();
1944
var headerResponse = await hubConnection.
InvokeAsync
<string[]>(nameof(TestHub.GetHeaderValues), new string[] { "Authorization" }).DefaultTimeout();
1980
var cookieValue = await hubConnection.
InvokeAsync
<string>(nameof(TestHub.GetCookieValue), "fromNegotiate").DefaultTimeout();
2180
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout();
2240
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout();
2306
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout();
2582
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2590
var resultTask = connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2650
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2660
result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2823
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), new string('x', 500)).DefaultTimeout();
2825
var resultTask = connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2893
var result = await connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
2901
var resultTask = connection.
InvokeAsync
<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
HubProtocolVersionTests.cs (2)
51
var result = await connection.
InvokeAsync
<string>(nameof(VersionHub.Echo), "Hello World!").DefaultTimeout();
84
var result = await connection.
InvokeAsync
<string>(nameof(VersionHub.Echo), "Hello World!").DefaultTimeout();
Microsoft.AspNetCore.SignalR.Client.Tests (8)
HubConnectionTests.cs (8)
439
var invokeTask = hubConnection.
InvokeAsync
<int>("SomeMethod", channel.Reader);
510
var invokeTask = hubConnection.
InvokeAsync
<SampleObject>("UploadMethod", channel.Reader);
555
var invokeTask = hubConnection.
InvokeAsync
<object>("UploadMethod", channel.Reader, cts.Token);
587
var invokeTask = hubConnection.
InvokeAsync
<object>("UploadMethod", channel.Reader, cts.Token);
612
var invokeTask = hubConnection.
InvokeAsync
<object>("UploadMethod", channel.Reader);
646
var invokeTask = hubConnection.
InvokeAsync
<long>("UploadMethod", channel.Reader);
679
var invokeTask = hubConnection.
InvokeAsync
<int>("SumInts", channel.Reader);
716
await hubConnection.
InvokeAsync
<string>("Echo", msg).DefaultTimeout();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
49
var str = await connection.
InvokeAsync
<string>("Echo", "Hello, World!").DefaultTimeout();