18 references to AsyncMethodHub
Microsoft.AspNetCore.SignalR.Tests (18)
NativeAotTests.cs (18)
29
await using (var server = await InProcessTestServer<Startup<
AsyncMethodHub
>>.StartServer(loggerFactory))
38
await connection.InvokeAsync(nameof(
AsyncMethodHub
.TaskMethod)).DefaultTimeout();
41
await connection.InvokeAsync(nameof(
AsyncMethodHub
.ValueTaskMethod)).DefaultTimeout();
44
await connection.InvokeAsync(nameof(
AsyncMethodHub
.CustomTaskMethod)).DefaultTimeout();
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();
57
await foreach (var item in connection.StreamAsync<string>(nameof(
AsyncMethodHub
.CounterAsyncEnumerable), 4))
64
await foreach (var item in connection.StreamAsync<string>(nameof(
AsyncMethodHub
.CounterAsyncEnumerableImpl), 5))
71
var asyncEnumerable = connection.StreamAsync<string>(nameof(
AsyncMethodHub
.StreamEchoAsyncEnumerable), StreamMessages());
80
var echoResponseReader = await connection.StreamAsChannelAsync<string>(nameof(
AsyncMethodHub
.StreamEcho), channel.Reader);
93
await foreach (var item in connection.StreamAsync<int>(nameof(
AsyncMethodHub
.ReturnEnumerableValueType)))
100
var returnChannelValueTypeReader = await connection.StreamAsChannelAsync<char>(nameof(
AsyncMethodHub
.ReturnChannelValueType), "Hello");
109
var stringResult = await connection.InvokeAsync<string>(nameof(
AsyncMethodHub
.EnumerableIntParameter), StreamInts());
118
stringResult = await connection.InvokeAsync<string>(nameof(
AsyncMethodHub
.ChannelShortParameter), channelShorts.Reader);
194
public async Task TaskMethod(ILogger<
AsyncMethodHub
> logger)
200
public async ValueTask ValueTaskMethod(ILogger<
AsyncMethodHub
> logger)
206
public TaskDerivedType CustomTaskMethod(ILogger<
AsyncMethodHub
> logger)