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