57 references to TestHub
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (57)
HubConnectionTests.cs (43)
106
var result = await connection.InvokeAsync<string>(nameof(
TestHub
.HelloWorld)).DefaultTimeout();
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();
290
var connectionIdFromServer = await connection.InvokeAsync<string>(nameof(
TestHub
.GetCallerConnectionId)).DefaultTimeout();
295
connectionIdFromServer = await connection.InvokeAsync<string>(nameof(
TestHub
.GetCallerConnectionId)).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();
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();
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();
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();
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();
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();
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();
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();
2785
await connection.SendAsync(nameof(
TestHub
.Abort)).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();
HubConnectionTests.Tracing.cs (10)
81
var resultTask = connection.InvokeAsync<string>(nameof(
TestHub
.HelloWorld)).DefaultTimeout();
103
var resultTask = connection.InvokeAsync<string>(nameof(
TestHub
.HelloWorld));
131
"/default" => typeof(
TestHub
).FullName,
303
"/default" => typeof(
TestHub
).FullName,
432
"/default" => typeof(
TestHub
).FullName,
529
"/default" => typeof(
TestHub
).FullName,
609
async () => await connection.InvokeAsync<string>(nameof(
TestHub
.InvokeException))).DefaultTimeout();
624
"/default" => typeof(
TestHub
).FullName,
701
await connection.SendAsync(nameof(
TestHub
.CallEcho), "Hi");
723
"/default" => typeof(
TestHub
).FullName,
Startup.cs (4)
96
endpoints.MapHub<
TestHub
>("/default", o => o.AllowStatefulReconnects = true);
105
endpoints.MapHub<
TestHub
>("/default-nowebsockets", options => options.Transports = HttpTransportType.LongPolling | HttpTransportType.ServerSentEvents);
107
endpoints.MapHub<
TestHub
>("/negotiateProtocolVersion12", options =>
112
endpoints.MapHub<
TestHub
>("/negotiateProtocolVersionNegative", options =>