1 instantiation of InProcessTestServer
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
63var server = new InProcessTestServer<TStartup>(loggerFactory, configureKestrelServerOptions, disposable);
118 references to InProcessTestServer
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (82)
HubConnectionTests.cs (71)
24public class HubConnectionTestsCollection : ICollectionFixture<InProcessTestServer<Startup>> 93await using (var server = await StartServer<Startup>()) 132await using (var server = await StartServer<Startup>(ExpectedError)) 162await using (var server = await StartServer<Startup>()) 192await using (var server = await StartServer<Startup>()) 221await using (var server = await StartServer<Startup>()) 250await using (var server = await StartServer<Startup>()) 282await using (var server = await StartServer<Startup>()) 317await using (var server = await StartServer<Startup>()) 379await using (var server = await StartServer<Startup>()) 409await using (var server = await StartServer<Startup>()) 449await using (var server = await StartServer<Startup>()) 484await using (var server = await StartServer<Startup>()) 530await using (var server = await StartServer<Startup>()) 565await using (var server = await StartServer<Startup>()) 602await using (var server = await StartServer<Startup>()) 650await using (var server = await StartServer<Startup>(ExpectedErrors)) 686await using (var server = await StartServer<Startup>()) 720await using (var server = await StartServer<Startup>()) 762await using (var server = await StartServer<Startup>()) 792await using (var server = await StartServer<Startup>()) 829await using (var server = await StartServer<Startup>()) 876await using (var server = await StartServer<Startup>()) 929await using (var server = await StartServer<Startup>()) 970await using (var server = await StartServer<Startup>()) 1011await using (var server = await StartServer<Startup>()) 1046await using (var server = await StartServer<Startup>(ExpectedErrors)) 1074await using (var server = await StartServer<Startup>()) 1101await using (var server = await StartServer<Startup>()) 1128await using (var server = await StartServer<Startup>()) 1155await using (var server = await StartServer<Startup>()) 1182await using (var server = await StartServer<Startup>()) 1210await using (var server = await StartServer<Startup>()) 1238await using (var server = await StartServer<Startup>()) 1266await using (var server = await StartServer<Startup>()) 1293await using (var server = await StartServer<Startup>()) 1320await using (var server = await StartServer<Startup>()) 1356await using (var server = await StartServer<Startup>(write => 1410await using (var server = await StartServer<Startup>(write => 1457await using (var server = await StartServer<Startup>()) 1474await using (var server = await StartServer<Startup>()) 1517await using (var server = await StartServer<Startup>(ExpectedErrors)) 1539await using (var server = await StartServer<Startup>()) 1567await using (var server = await StartServer<Startup>()) 1598await using (var server = await StartServer<Startup>()) 1640await using (var server = await StartServer<Startup>()) 1675await using (var server = await StartServer<Startup>()) 1711await using (var server = await StartServer<Startup>()) 1746await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 1804await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 1863await using (var server = await StartServer<Startup>(context => context.EventId.Name == "ErrorStartingTransport", 1907await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 1971await using (var server = await StartServer<Startup>()) 1998await using (var server = await StartServer<Startup>()) 2034await using (var server = await StartServer<Startup>()) 2065await using (var server = await StartServer<Startup>()) 2095await using (var server = await StartServer<Startup>()) 2143await using (var server = await StartServer<Startup>(ExpectedErrors)) 2204await using (var server = await StartServer<Startup>(ExpectedErrors)) 2264await using (var server = await StartServer<Startup>(ExpectedErrors)) 2327await using var server = await StartServer<Startup>(); 2364await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 2417await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 2460await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 2510await using (var server = await StartServer<Startup>(configureKestrelServerOptions: o => 2554await using (var server = await StartServer<Startup>(w => w.EventId.Name == "ReceivedUnexpectedResponse")) 2613await using (var server = await StartServer<Startup>(w => w.EventId.Name == "ReceivedUnexpectedResponse")) 2683await using (var server = await StartServer<Startup>()) 2755await using (var server = await StartServer<Startup>()) 2807await using (var server = await StartServer<Startup>()) 2857await using (var server = await StartServer<Startup>(ExpectedErrors))
HubConnectionTests.Tracing.cs (6)
33await using (var server = await StartServer<Startup>()) 227await using (var server = await StartServer<Startup>()) 372await using (var server = await StartServer<Startup>()) 475await using (var server = await StartServer<Startup>(ExpectedErrors)) 571await using (var server = await StartServer<Startup>(ExpectedErrors)) 661await using (var server = await StartServer<Startup>())
HubProtocolVersionTests.cs (5)
27public class HubProtocolVersionTestsCollection : ICollectionFixture<InProcessTestServer<VersionStartup>> 39await using (var server = await StartServer<VersionStartup>()) 71await using (var server = await StartServer<VersionStartup>()) 104await using (var server = await StartServer<VersionStartup>()) 170await using (var server = await StartServer<VersionStartup>(ExpectedErrors))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
RedisServerFixture.cs (4)
16public InProcessTestServer<TStartup> FirstServer { get; private set; } 17public InProcessTestServer<TStartup> SecondServer { get; private set; } 61private async Task<InProcessTestServer<TStartup>> StartServer() 65return await InProcessTestServer<TStartup>.StartServer(_loggerFactory);
Microsoft.AspNetCore.SignalR.Tests (26)
EndToEndTests.cs (17)
28public class EndToEndTestsCollection : ICollectionFixture<InProcessTestServer<Startup>> 39await using (var server = await StartServer<Startup>()) 59await using (var server = await StartServer<Startup>(expectedErrorsFilter: ExpectedErrors)) 77await using (var server = await StartServer<Startup>()) 90await using (var server = await StartServer<Startup>()) 128await using (var server = await StartServer<Startup>()) 167await using (var server = await StartServer<Startup>()) 217await using (var server = await StartServer<Startup>()) 260await using (var server = await StartServer<Startup>()) 318await using (var server = await StartServer<Startup>()) 382await using (var server = await StartServer<Startup>(ExpectedErrors)) 406await using (var server = await StartServer<Startup>(ExpectedErrors)) 436await using (var server = await StartServer<Startup>(ExpectedErrors)) 472await using (var server = await StartServer<Startup>(ExpectedErrors)) 542await using (var server = await StartServer<Startup>()) 607await using (var server = await StartServer<Startup>(ExpectedErrors)) 646await using (var server = await StartServer<Startup>(ExpectedErrors))
NativeAotTests.cs (2)
29await using (var server = await InProcessTestServer<Startup<AsyncMethodHub>>.StartServer(loggerFactory))
WebSocketsTransportTests.cs (7)
41await using (var server = await StartServer<Startup>()) 92await using (var server = await StartServer<Startup>()) 106await using (var server = await StartServer<Startup>()) 137await using (var server = await StartServer<Startup>()) 160await using (var server = await StartServer<Startup>()) 176await using (var server = await StartServer<Startup>()) 198await using (var server = await StartServer<Startup>())
Microsoft.AspNetCore.SignalR.Tests.Utils (6)
src\Shared\SignalR\FunctionalTestBase.cs (2)
40public Task<InProcessTestServer<T>> StartServer<T>(Func<WriteContext, bool> expectedErrorsFilter = null, Action<KestrelServerOptions> configureKestrelServerOptions = null) where T : class 43return InProcessTestServer<T>.StartServer(LoggerFactory, configureKestrelServerOptions, disposable);
src\Shared\SignalR\InProcessTestServer.cs (4)
61public static async Task<InProcessTestServer<TStartup>> StartServer(ILoggerFactory loggerFactory, Action<KestrelServerOptions> configureKestrelServerOptions = null, IDisposable disposable = null) 63var server = new InProcessTestServer<TStartup>(loggerFactory, configureKestrelServerOptions, disposable); 81_logToken = testLog.StartTestLog(null, $"{nameof(InProcessTestServer<TStartup>)}_{typeof(TStartup).Name}", 91_logger = _loggerFactory.CreateLogger<InProcessTestServer<TStartup>>();