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