57 references to TestHub
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (57)
HubConnectionTests.cs (43)
106var result = await connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).DefaultTimeout(); 200var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 228var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), null).DefaultTimeout(); 257var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 261result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 290var connectionIdFromServer = await connection.InvokeAsync<string>(nameof(TestHub.GetCallerConnectionId)).DefaultTimeout(); 295connectionIdFromServer = await connection.InvokeAsync<string>(nameof(TestHub.GetCallerConnectionId)).DefaultTimeout(); 348var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 358result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 387var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo).ToLowerInvariant(), originalMessage).DefaultTimeout(); 423helloWorldTcs.SetResult(await connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).DefaultTimeout()); 1369var result = connection.InvokeAsync<string>(nameof(TestHub.CallWithUnserializableObject)); 1423var result = connection.InvokeAsync<string>(nameof(TestHub.GetUnserializableObject)).DefaultTimeout(); 1493var message = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Hello, World!").DefaultTimeout(); 1548var message = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Hello, World!").DefaultTimeout(); 1580var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "X-test", "X-42" }).DefaultTimeout(); 1611var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout(); 1652var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout(); 1687var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).DefaultTimeout(); 1727var cookieValue = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetCookieValue), "Foo").DefaultTimeout(); 1778var echoResponse = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Foo").DefaultTimeout(); 1944var headerResponse = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new string[] { "Authorization" }).DefaultTimeout(); 1980var cookieValue = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetCookieValue), "fromNegotiate").DefaultTimeout(); 2008var features = await hubConnection.InvokeAsync<JsonElement[]>(nameof(TestHub.GetIHttpConnectionFeatureProperties)).DefaultTimeout(); 2047var userIdentifier = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetUserIdentifier)).DefaultTimeout(); 2077var transport = await hubConnection.InvokeAsync<HttpTransportType>(nameof(TestHub.GetActiveTransportName)).DefaultTimeout(); 2180var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout(); 2240var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout(); 2306var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).DefaultTimeout(); 2342var invokeTask = connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)); 2388var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout(); 2441var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout(); 2484var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout(); 2534var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).DefaultTimeout(); 2582var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2590var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2650var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2660result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2785await connection.SendAsync(nameof(TestHub.Abort)).DefaultTimeout(); 2823var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), new string('x', 500)).DefaultTimeout(); 2825var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2893var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout(); 2901var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).DefaultTimeout();
HubConnectionTests.Tracing.cs (10)
81var resultTask = connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).DefaultTimeout(); 103var 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, 609async () => await connection.InvokeAsync<string>(nameof(TestHub.InvokeException))).DefaultTimeout(); 624"/default" => typeof(TestHub).FullName, 701await connection.SendAsync(nameof(TestHub.CallEcho), "Hi"); 723"/default" => typeof(TestHub).FullName,
Startup.cs (4)
96endpoints.MapHub<TestHub>("/default", o => o.AllowStatefulReconnects = true); 105endpoints.MapHub<TestHub>("/default-nowebsockets", options => options.Transports = HttpTransportType.LongPolling | HttpTransportType.ServerSentEvents); 107endpoints.MapHub<TestHub>("/negotiateProtocolVersion12", options => 112endpoints.MapHub<TestHub>("/negotiateProtocolVersionNegative", options =>