3 writes to LoggerFactory
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
86LoggerFactory = loggerFactory;
Microsoft.AspNetCore.InternalTesting.Tests (1)
LoggedTestXunitTests.cs (1)
111LoggerFactory = loggerFactory;
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\VerifiableLoggedTest.cs (1)
17LoggerFactory = NullLoggerFactory.Instance;
1642 references to LoggerFactory
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
IIS.Tests (30)
ClientDisconnectTests.cs (8)
42}, LoggerFactory)) 84}, LoggerFactory)) 123}, LoggerFactory)) 166}, LoggerFactory)) 206}, LoggerFactory)) 250}, LoggerFactory)) 299}, LoggerFactory)) 332}, LoggerFactory))
ConnectionIdFeatureTests.cs (1)
25}, LoggerFactory))
HttpBodyControlFeatureTests.cs (1)
47}, LoggerFactory))
MaxRequestBodySizeTests.cs (10)
43}, LoggerFactory)) 86}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) 116}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 })) 143}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 })) 169}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 })) 192}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 })) 216}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 })) 254}, LoggerFactory)) 292}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) 329}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = 0 }))
ResponseAbortTests.cs (6)
27}, LoggerFactory)) 48}, LoggerFactory)) 84}, LoggerFactory)) 113}, LoggerFactory)) 135}, LoggerFactory)) 162}, LoggerFactory))
ResponseBodySizeTests.cs (1)
25}, LoggerFactory))
TestServerTest.cs (1)
28}, LoggerFactory))
TlsHandshakeFeatureTests.cs (2)
25}, LoggerFactory)) 71}, LoggerFactory))
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30return IISApplicationDeployerFactory.Create(parameters, LoggerFactory);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88_forwardingProvider.LoggerFactory = test.LoggerFactory; 93if (_forwardingProvider.LoggerFactory != test.LoggerFactory)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
InMemory.FunctionalTests (383)
BadHttpRequestTests.cs (8)
171}, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 218}, new TestServiceContext(LoggerFactory))) 240await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)))) 262await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)))) 346await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 393await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 459await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 534await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
ChunkedRequestTests.cs (17)
73var testContext = new TestServiceContext(LoggerFactory); 102var testContext = new TestServiceContext(LoggerFactory); 131var testContext = new TestServiceContext(LoggerFactory); 172var testContext = new TestServiceContext(LoggerFactory); 298}, new TestServiceContext(LoggerFactory))) 429}, new TestServiceContext(LoggerFactory))) 489var testContext = new TestServiceContext(LoggerFactory); 536var testContext = new TestServiceContext(LoggerFactory); 576var testContext = new TestServiceContext(LoggerFactory); 660var testContext = new TestServiceContext(LoggerFactory); 704var testContext = new TestServiceContext(LoggerFactory); 749var testContext = new TestServiceContext(LoggerFactory); 855var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 909var testContext = new TestServiceContext(LoggerFactory); 965var testContext = new TestServiceContext(LoggerFactory); 1015var testContext = new TestServiceContext(LoggerFactory); 1078var testContext = new TestServiceContext(LoggerFactory);
ChunkedResponseTests.cs (29)
22var testContext = new TestServiceContext(LoggerFactory); 57var testContext = new TestServiceContext(LoggerFactory); 85var testContext = new TestServiceContext(LoggerFactory); 121var testContext = new TestServiceContext(LoggerFactory); 157var testContext = new TestServiceContext(LoggerFactory); 197var testContext = new TestServiceContext(LoggerFactory); 239var testContext = new TestServiceContext(LoggerFactory); 276var testContext = new TestServiceContext(LoggerFactory); 312var testContext = new TestServiceContext(LoggerFactory); 348var testContext = new TestServiceContext(LoggerFactory); 392var testContext = new TestServiceContext(LoggerFactory); 422var testContext = new TestServiceContext(LoggerFactory); 455var testContext = new TestServiceContext(LoggerFactory); 487var testContext = new TestServiceContext(LoggerFactory); 533var testContext = new TestServiceContext(LoggerFactory); 571var testContext = new TestServiceContext(LoggerFactory); 615var testContext = new TestServiceContext(LoggerFactory); 660var testContext = new TestServiceContext(LoggerFactory); 714var testContext = new TestServiceContext(LoggerFactory); 770var testContext = new TestServiceContext(LoggerFactory); 825var testContext = new TestServiceContext(LoggerFactory); 867var testContext = new TestServiceContext(LoggerFactory); 914var testContext = new TestServiceContext(LoggerFactory); 955var testContext = new TestServiceContext(LoggerFactory); 995var testContext = new TestServiceContext(LoggerFactory); 1034var testContext = new TestServiceContext(LoggerFactory); 1071var testContext = new TestServiceContext(LoggerFactory); 1109var testContext = new TestServiceContext(LoggerFactory); 1162}, new TestServiceContext(LoggerFactory)))
ConnectionLimitTests.cs (2)
228var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory())); 235var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory()));
ConnectionMiddlewareTests.cs (10)
46var serviceContext = new TestServiceContext(LoggerFactory); 72var serviceContext = new TestServiceContext(LoggerFactory); 102var serviceContext = new TestServiceContext(LoggerFactory); 138var serviceContext = new TestServiceContext(LoggerFactory); 161var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 187var serviceContext = new TestServiceContext(LoggerFactory); 221var serviceContext = new TestServiceContext(LoggerFactory); 250var serviceContext = new TestServiceContext(LoggerFactory); 274var serviceContext = new TestServiceContext(LoggerFactory); 305var serviceContext = new TestServiceContext(LoggerFactory);
DefaultHeaderTests.cs (1)
16var testContext = new TestServiceContext(LoggerFactory)
EventSourceTests.cs (4)
53new TestServiceContext(LoggerFactory))) 155new TestServiceContext(LoggerFactory), 271await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), 360var serviceContext = new TestServiceContext(LoggerFactory);
Http2\Http2EndToEndTests.cs (2)
29LoggerFactory.AddProvider(mockScopeLoggerProvider); 40new TestServiceContext(LoggerFactory),
Http2\Http2TestBase.cs (1)
397_serviceContext = new TestServiceContext(LoggerFactory)
Http2\TlsTests.cs (1)
49new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
Http3\Http3TestBase.cs (2)
121_serviceContext = new TestServiceContext(LoggerFactory) 126Http3Api = new Http3InMemory(_serviceContext, _serviceContext.FakeTimeProvider, _mockTimeoutHandler.Object, LoggerFactory);
HttpProtocolSelectionTests.cs (2)
61var testContext = new TestServiceContext(LoggerFactory); 80var testContext = new TestServiceContext(LoggerFactory);
HttpsConnectionMiddlewareTests.cs (37)
58await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 92await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 119}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 160}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 198}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 208await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), listenOptions => 240}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 268}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 289await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 319await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 352await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 387await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 422await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 456await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 484await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 521}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 563}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 607}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 650}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 691}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 739}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 781}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 848new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 906}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 933new TestServiceContext(LoggerFactory), ConfigureListenOptions); 966new TestServiceContext(LoggerFactory), ConfigureListenOptions); 999new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1047}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1092}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1122await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1145await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1183await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1210await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1235await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1260await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1294await using (var server = new TestServer(app, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1393await using var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions);
HttpsTests.cs (30)
79LoggerFactory.AddProvider(loggerProvider); 81var testContext = new TestServiceContext(LoggerFactory); 173LoggerFactory.AddProvider(loggerProvider); 176new TestServiceContext(LoggerFactory), 201LoggerFactory.AddProvider(loggerProvider); 204new TestServiceContext(LoggerFactory), 230LoggerFactory.AddProvider(loggerProvider); 248new TestServiceContext(LoggerFactory), 277LoggerFactory.AddProvider(loggerProvider); 292new TestServiceContext(LoggerFactory), 320LoggerFactory.AddProvider(loggerProvider); 323new TestServiceContext(LoggerFactory), 346LoggerFactory.AddProvider(loggerProvider); 349new TestServiceContext(LoggerFactory), 366LoggerFactory.AddProvider(loggerProvider); 368var testContext = new TestServiceContext(LoggerFactory); 396LoggerFactory.AddProvider(loggerProvider); 398var testContext = new TestServiceContext(LoggerFactory); 439var testContext = new TestServiceContext(LoggerFactory); 479var testContext = new TestServiceContext(LoggerFactory); 524var testContext = new TestServiceContext(LoggerFactory); 558var testContext = new TestServiceContext(LoggerFactory); 595var testContext = new TestServiceContext(LoggerFactory); 641var testContext = new TestServiceContext(LoggerFactory); 680LoggerFactory.AddProvider(loggerProvider); 684new TestServiceContext(LoggerFactory), 714LoggerFactory.AddProvider(loggerProvider); 720new TestServiceContext(LoggerFactory), 750LoggerFactory.AddProvider(loggerProvider); 756new TestServiceContext(LoggerFactory),
KeepAliveTimeoutTests.cs (6)
30var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 62var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 95var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 140var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 185var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 210var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
KestrelMetricsTests.cs (14)
65var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 124var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 167var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 209var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 274var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 344var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 398var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 458var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 500var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 543new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 612var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 690new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)), 779new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)), 858new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
LoggingConnectionMiddlewareTests.cs (1)
25new TestServiceContext(LoggerFactory),
MaxRequestBodySizeTests.cs (12)
41new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 88new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 135new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 184new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 228new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 300}, new TestServiceContext(LoggerFactory))) 340}, new TestServiceContext(LoggerFactory))) 384new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 437new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 483new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 546new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 597new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
MaxRequestLineSizeTests.cs (1)
85return new TestServer(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory))
RequestBodyTimeoutTests.cs (3)
26var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 102var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 156var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
RequestHeaderLimitsTests.cs (1)
176return new TestServer(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new TestServiceContext(LoggerFactory, metrics: kestrelMetrics)
RequestHeadersTimeoutTests.cs (4)
29var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 58var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 96var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 123var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
RequestTargetProcessingTests.cs (3)
20var testContext = new TestServiceContext(LoggerFactory); 65var testContext = new TestServiceContext(LoggerFactory); 97var testContext = new TestServiceContext(LoggerFactory);
RequestTests.cs (56)
46}, new TestServiceContext(LoggerFactory))) 70}, new TestServiceContext(LoggerFactory))) 103}, new TestServiceContext(LoggerFactory))) 148}, new TestServiceContext(LoggerFactory))) 190}, new TestServiceContext(LoggerFactory))) 241}, new TestServiceContext(LoggerFactory))) 285var testContext = new TestServiceContext(LoggerFactory); 341var testContext = new TestServiceContext(LoggerFactory); 378var testContext = new TestServiceContext(LoggerFactory); 412var testContext = new TestServiceContext(LoggerFactory); 450var testContext = new TestServiceContext(LoggerFactory); 491var testContext = new TestServiceContext(LoggerFactory); 534var testContext = new TestServiceContext(LoggerFactory); 579}, new TestServiceContext(LoggerFactory))) 597}, new TestServiceContext(LoggerFactory))) 650var testContext = new TestServiceContext(LoggerFactory); 684var testContext = new TestServiceContext(LoggerFactory); 723var testContext = new TestServiceContext(LoggerFactory); 757var testContext = new TestServiceContext(LoggerFactory); 796var testContext = new TestServiceContext(LoggerFactory); 852var testContext = new TestServiceContext(LoggerFactory); 884var testContext = new TestServiceContext(LoggerFactory); 920var testContext = new TestServiceContext(LoggerFactory); 966var testContext = new TestServiceContext(LoggerFactory); 1013var testContext = new TestServiceContext(LoggerFactory); 1045var testContext = new TestServiceContext(LoggerFactory); 1080var testContext = new TestServiceContext(LoggerFactory); 1119var testContext = new TestServiceContext(LoggerFactory); 1159var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 1235var testContext = new TestServiceContext(LoggerFactory); 1269var testContext = new TestServiceContext(LoggerFactory) 1301var testContext = new TestServiceContext(LoggerFactory); 1353var testContext = new TestServiceContext(LoggerFactory); 1387var testContext = new TestServiceContext(LoggerFactory); 1464await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 1482await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 1523await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 1571await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 1604}, new TestServiceContext(LoggerFactory))) 1630var serviceContext = new TestServiceContext(LoggerFactory); 1714}, new TestServiceContext(LoggerFactory))) 1757}, new TestServiceContext(LoggerFactory))) 1780var testContext = new TestServiceContext(LoggerFactory) 1825var testContext = new TestServiceContext(LoggerFactory) 1867var testContext = new TestServiceContext(LoggerFactory); 1901var testContext = new TestServiceContext(LoggerFactory); 1951var testContext = new TestServiceContext(LoggerFactory); 1995var testContext = new TestServiceContext(LoggerFactory); 2036var testContext = new TestServiceContext(LoggerFactory); 2078var testContext = new TestServiceContext(LoggerFactory); 2133var testContext = new TestServiceContext(LoggerFactory); 2195var testContext = new TestServiceContext(LoggerFactory); 2229var testContext = new TestServiceContext(LoggerFactory); 2261var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2288var testContext = new TestServiceContext(LoggerFactory); 2335await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, disableHttp1LineFeedTerminators: false)))
ResponseDrainingTests.cs (1)
25var testContext = new TestServiceContext(LoggerFactory);
ResponseHeaderTests.cs (4)
30}, new TestServiceContext(LoggerFactory)); 49var testContext = new TestServiceContext(LoggerFactory); 84var testContext = new TestServiceContext(LoggerFactory); 123}, new TestServiceContext(LoggerFactory));
ResponseTests.cs (119)
51}, new TestServiceContext(LoggerFactory))) 84}, new TestServiceContext(LoggerFactory))) 118}, new TestServiceContext(LoggerFactory))) 147var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 282LoggerFactory, 296LoggerFactory, 311LoggerFactory, 326LoggerFactory, 341LoggerFactory, 356LoggerFactory, 379}, new TestServiceContext(LoggerFactory))) 414}, new TestServiceContext(LoggerFactory))) 451}, new TestServiceContext(LoggerFactory))) 488}, new TestServiceContext(LoggerFactory))) 522}, new TestServiceContext(LoggerFactory))) 556}, new TestServiceContext(LoggerFactory))) 581}, new TestServiceContext(LoggerFactory))) 693}, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)))) 731}, new TestServiceContext(LoggerFactory))) 771}, new TestServiceContext(LoggerFactory))) 809}, new TestServiceContext(LoggerFactory))) 851}, new TestServiceContext(LoggerFactory))) 880}, new TestServiceContext(LoggerFactory))) 917}, new TestServiceContext(LoggerFactory))) 952var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 996var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 1032var serviceContext = new TestServiceContext(LoggerFactory) 1070var serviceContext = new TestServiceContext(LoggerFactory); 1119}, new TestServiceContext(LoggerFactory))) 1176}, new TestServiceContext(LoggerFactory))) 1230}, new TestServiceContext(LoggerFactory))) 1263var serviceContext = new TestServiceContext(LoggerFactory); 1304var serviceContext = new TestServiceContext(LoggerFactory); 1342var serviceContext = new TestServiceContext(LoggerFactory); 1378var serviceContext = new TestServiceContext(LoggerFactory); 1414}, new TestServiceContext(LoggerFactory))) 1443}, new TestServiceContext(LoggerFactory))) 1469var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1508}, new TestServiceContext(LoggerFactory))) 1551}, new TestServiceContext(LoggerFactory))) 1581}, new TestServiceContext(LoggerFactory))) 1627}, new TestServiceContext(LoggerFactory))) 1674}, new TestServiceContext(LoggerFactory))) 1709var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1751var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1793var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1838var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1897}, new TestServiceContext(LoggerFactory))) 1938}, new TestServiceContext(LoggerFactory))) 1969}, new TestServiceContext(LoggerFactory))) 2004new TestServiceContext(LoggerFactory))) 2040}, new TestServiceContext(LoggerFactory))) 2110}, new TestServiceContext(LoggerFactory))) 2157}, new TestServiceContext(LoggerFactory))) 2200var serviceContext = new TestServiceContext(LoggerFactory); 2224var testContext = new TestServiceContext(LoggerFactory); 2256var testContext = new TestServiceContext(LoggerFactory); 2300var testContext = new TestServiceContext(LoggerFactory); 2323var testContext = new TestServiceContext(LoggerFactory); 2372var testContext = new TestServiceContext(LoggerFactory); 2420var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2475var testContext = new TestServiceContext(LoggerFactory); 2530var testContext = new TestServiceContext(LoggerFactory); 2575var testContext = new TestServiceContext(LoggerFactory); 2623var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2676var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2721var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2764var testContext = new TestServiceContext(LoggerFactory); 2795var testContext = new TestServiceContext(LoggerFactory); 2820var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 2847var testContext = new TestServiceContext(LoggerFactory); 2880var testContext = new TestServiceContext(LoggerFactory); 2930var testContext = new TestServiceContext(LoggerFactory); 2959var testContext = new TestServiceContext(LoggerFactory); 2987var testContext = new TestServiceContext(LoggerFactory); 3017var testContext = new TestServiceContext(LoggerFactory); 3049var testContext = new TestServiceContext(LoggerFactory); 3079var testContext = new TestServiceContext(LoggerFactory); 3107var testContext = new TestServiceContext(LoggerFactory); 3136var testContext = new TestServiceContext(LoggerFactory); 3174var testContext = new TestServiceContext(LoggerFactory); 3204var testContext = new TestServiceContext(LoggerFactory); 3234var testContext = new TestServiceContext(LoggerFactory); 3283var testContext = new TestServiceContext(LoggerFactory); 3316var testContext = new TestServiceContext(LoggerFactory); 3367var testContext = new TestServiceContext(LoggerFactory); 3428}, new TestServiceContext(LoggerFactory))) 3454}, new TestServiceContext(LoggerFactory))) 3472var testContext = new TestServiceContext(LoggerFactory) 3507var testContext = new TestServiceContext(LoggerFactory) 3553}, new TestServiceContext(LoggerFactory))) 3575var testContext = new TestServiceContext(LoggerFactory); 3608var testContext = new TestServiceContext(LoggerFactory); 3638var testContext = new TestServiceContext(LoggerFactory); 3670var testContext = new TestServiceContext(LoggerFactory); 3708var testContext = new TestServiceContext(LoggerFactory); 3751}, new TestServiceContext(LoggerFactory))) 3790}, new TestServiceContext(LoggerFactory))) 3819}, new TestServiceContext(LoggerFactory))) 3847}, new TestServiceContext(LoggerFactory))) 3879}, new TestServiceContext(LoggerFactory)); 3920}, new TestServiceContext(LoggerFactory))) 3965}, new TestServiceContext(LoggerFactory))) 4027}, new TestServiceContext(LoggerFactory))) 4079}, new TestServiceContext(LoggerFactory))) 4118}, new TestServiceContext(LoggerFactory))) 4150}, new TestServiceContext(LoggerFactory))) 4181}, new TestServiceContext(LoggerFactory))) 4214}, new TestServiceContext(LoggerFactory))) 4246}, new TestServiceContext(LoggerFactory))) 4279}, new TestServiceContext(LoggerFactory))) 4313}, new TestServiceContext(LoggerFactory))) 4346}, new TestServiceContext(LoggerFactory))) 4374new TestServiceContext(LoggerFactory), 4407new TestServiceContext(LoggerFactory), 4444new TestServiceContext(LoggerFactory), 4477new TestServiceContext(LoggerFactory), 4502new TestServiceContext(LoggerFactory), 4542new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
UpgradeTests.cs (11)
45}, new TestServiceContext(LoggerFactory))) 97}, new TestServiceContext(LoggerFactory))) 140}, new TestServiceContext(LoggerFactory))) 176new TestServiceContext(LoggerFactory))) 206new TestServiceContext(LoggerFactory))) 249new TestServiceContext(LoggerFactory))) 287}, new TestServiceContext(LoggerFactory))) 305var serviceContext = new TestServiceContext(LoggerFactory); 372}, new TestServiceContext(LoggerFactory))) 418new TestServiceContext(LoggerFactory)); 444}, new TestServiceContext(LoggerFactory)))
Interop.FunctionalTests (4)
Http2\Http2RequestTests.cs (1)
229using var httpEventSource = new HttpEventSourceListener(LoggerFactory);
Http3\Http3RequestTests.cs (3)
131LoggerFactory.AddProvider(mockScopeLoggerProvider); 279using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 972using var httpEventSource = new HttpEventSourceListener(LoggerFactory);
Microsoft.AspNetCore.BrowserTesting (2)
BrowserTestBase.cs (2)
30BrowserManager = await BrowserManager.CreateAsync(_config, LoggerFactory); 31BrowserContextInfo = new ContextInformation(LoggerFactory);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
ConcurrencyLimiterEventSourceTests.cs (2)
51using var eventListener = new TestCounterListener(LoggerFactory, eventSource.Name, [ 92using var eventListener = new TestCounterListener(LoggerFactory, eventSource.Name, [
Microsoft.AspNetCore.Diagnostics.Tests (3)
DeveloperExceptionPageMiddlewareTest.cs (1)
585s.AddSingleton(LoggerFactory);
ExceptionHandlerMiddlewareTest.cs (2)
312s.AddSingleton(LoggerFactory); 375s.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
162using (var deployer = IISApplicationDeployerFactory.Create(deploymentParameters, LoggerFactory)) 219using (var deployer = IISApplicationDeployerFactory.Create(deploymentParameters, LoggerFactory))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ServerStreamingServerCallHandlerTests.cs (1)
354LoggerFactory,
UnaryServerCallHandlerTests.cs (1)
1858LoggerFactory,
Microsoft.AspNetCore.Hosting.Tests (4)
HostingApplicationDiagnosticsTests.cs (3)
32using var eventListener = new TestCounterListener(LoggerFactory, hostingEventSource.Name, 56var logger = LoggerFactory.CreateLogger<HostingApplication>(); 148using var eventListener = new TestCounterListener(LoggerFactory, hostingEventSource.Name,
Internal\HostingEventSourceTests.cs (1)
186using var eventListener = new TestCounterListener(LoggerFactory, hostingEventSource.Name,
Microsoft.AspNetCore.Http.Connections.Tests (186)
HttpConnectionDispatcherTests.cs (152)
59var manager = CreateConnectionManager(LoggerFactory); 60var dispatcher = CreateDispatcher(manager, LoggerFactory); 83var manager = CreateConnectionManager(LoggerFactory); 84var dispatcher = CreateDispatcher(manager, LoggerFactory); 109var manager = CreateConnectionManager(LoggerFactory); 110var dispatcher = CreateDispatcher(manager, LoggerFactory); 146var manager = CreateConnectionManager(LoggerFactory); 147var dispatcher = CreateDispatcher(manager, LoggerFactory); 174var manager = CreateConnectionManager(LoggerFactory); 175var dispatcher = CreateDispatcher(manager, LoggerFactory); 204var manager = CreateConnectionManager(LoggerFactory); 205var dispatcher = CreateDispatcher(manager, LoggerFactory); 259var manager = CreateConnectionManager(LoggerFactory); 260var dispatcher = CreateDispatcher(manager, LoggerFactory); 294var manager = CreateConnectionManager(LoggerFactory); 295var dispatcher = CreateDispatcher(manager, LoggerFactory); 337var manager = CreateConnectionManager(LoggerFactory); 338var dispatcher = CreateDispatcher(manager, LoggerFactory); 373var manager = CreateConnectionManager(LoggerFactory); 374var dispatcher = CreateDispatcher(manager, LoggerFactory); 411var manager = CreateConnectionManager(LoggerFactory); 412var dispatcher = CreateDispatcher(manager, LoggerFactory); 450var manager = CreateConnectionManager(LoggerFactory); 451var dispatcher = CreateDispatcher(manager, LoggerFactory); 512var manager = CreateConnectionManager(LoggerFactory, disconnectTimeout); 513var dispatcher = CreateDispatcher(manager, LoggerFactory); 577var manager = CreateConnectionManager(LoggerFactory); 578var dispatcher = CreateDispatcher(manager, LoggerFactory); 627var manager = CreateConnectionManager(LoggerFactory); 628var dispatcher = CreateDispatcher(manager, LoggerFactory); 713var manager = CreateConnectionManager(LoggerFactory); 717var dispatcher = CreateDispatcher(manager, LoggerFactory); 746var manager = CreateConnectionManager(LoggerFactory); 747var dispatcher = CreateDispatcher(manager, LoggerFactory); 848var manager = CreateConnectionManager(LoggerFactory); 849var dispatcher = CreateDispatcher(manager, LoggerFactory); 888var manager = CreateConnectionManager(LoggerFactory); 889var dispatcher = CreateDispatcher(manager, LoggerFactory); 925var manager = CreateConnectionManager(LoggerFactory); 926var dispatcher = CreateDispatcher(manager, LoggerFactory); 958await CheckTransportSupported(HttpTransportType.LongPolling, transportType, status, LoggerFactory); 970await CheckTransportSupported(HttpTransportType.ServerSentEvents, transportType, status, LoggerFactory); 982await CheckTransportSupported(HttpTransportType.WebSockets, transportType, status, LoggerFactory); 992await CheckTransportSupported(HttpTransportType.WebSockets | HttpTransportType.ServerSentEvents, transportType, status, LoggerFactory); 1001var manager = CreateConnectionManager(LoggerFactory); 1004var dispatcher = CreateDispatcher(manager, LoggerFactory); 1035var manager = CreateConnectionManager(LoggerFactory); 1038var dispatcher = CreateDispatcher(manager, LoggerFactory); 1061var manager = CreateConnectionManager(LoggerFactory); 1065var dispatcher = CreateDispatcher(manager, LoggerFactory); 1098var manager = CreateConnectionManager(LoggerFactory, metrics); 1101var dispatcher = CreateDispatcher(manager, LoggerFactory, metrics); 1134var manager = CreateConnectionManager(LoggerFactory, metrics); 1137var dispatcher = CreateDispatcher(manager, LoggerFactory, metrics); 1184var manager = CreateConnectionManager(LoggerFactory); 1188var dispatcher = CreateDispatcher(manager, LoggerFactory); 1281var manager = CreateConnectionManager(LoggerFactory); 1284var dispatcher = CreateDispatcher(manager, LoggerFactory); 1322var manager = CreateConnectionManager(LoggerFactory); 1324var dispatcher = CreateDispatcher(manager, LoggerFactory); 1366var manager = CreateConnectionManager(LoggerFactory); 1368var dispatcher = CreateDispatcher(manager, LoggerFactory); 1404var manager = CreateConnectionManager(LoggerFactory); 1408var dispatcher = CreateDispatcher(manager, LoggerFactory); 1434var manager = CreateConnectionManager(LoggerFactory); 1437var dispatcher = CreateDispatcher(manager, LoggerFactory); 1479var manager = CreateConnectionManager(LoggerFactory); 1483var dispatcher = CreateDispatcher(manager, LoggerFactory); 1544var manager = CreateConnectionManager(LoggerFactory); 1548var dispatcher = CreateDispatcher(manager, LoggerFactory); 1608var manager = CreateConnectionManager(LoggerFactory); 1612var dispatcher = CreateDispatcher(manager, LoggerFactory); 1639var manager = CreateConnectionManager(LoggerFactory); 1643var dispatcher = CreateDispatcher(manager, LoggerFactory); 1674var manager = CreateConnectionManager(LoggerFactory); 1677var dispatcher = CreateDispatcher(manager, LoggerFactory); 1708var manager = CreateConnectionManager(LoggerFactory); 1712var dispatcher = CreateDispatcher(manager, LoggerFactory); 1750var manager = CreateConnectionManager(LoggerFactory); 1754var dispatcher = CreateDispatcher(manager, LoggerFactory); 1797var manager = CreateConnectionManager(LoggerFactory); 1800var dispatcher = CreateDispatcher(manager, LoggerFactory); 1829var manager = CreateConnectionManager(LoggerFactory); 1832var dispatcher = CreateDispatcher(manager, LoggerFactory); 1881var manager = CreateConnectionManager(LoggerFactory); 1884var dispatcher = CreateDispatcher(manager, LoggerFactory); 1936var manager = CreateConnectionManager(LoggerFactory); 1939var dispatcher = CreateDispatcher(manager, LoggerFactory); 1981var manager = CreateConnectionManager(LoggerFactory); 1985var dispatcher = CreateDispatcher(manager, LoggerFactory); 2013var manager = CreateConnectionManager(LoggerFactory); 2017var dispatcher = CreateDispatcher(manager, LoggerFactory); 2054var manager = CreateConnectionManager(LoggerFactory); 2058var dispatcher = CreateDispatcher(manager, LoggerFactory); 2107var manager = CreateConnectionManager(LoggerFactory); 2111var dispatcher = CreateDispatcher(manager, LoggerFactory); 2155var manager = CreateConnectionManager(LoggerFactory); 2164var dispatcher = CreateDispatcher(manager, LoggerFactory); 2211var manager = CreateConnectionManager(LoggerFactory); 2212var dispatcher = CreateDispatcher(manager, LoggerFactory); 2262var manager = CreateConnectionManager(LoggerFactory); 2263var dispatcher = CreateDispatcher(manager, LoggerFactory); 2288var manager = CreateConnectionManager(LoggerFactory); 2289var dispatcher = CreateDispatcher(manager, LoggerFactory); 2317var manager = CreateConnectionManager(LoggerFactory); 2318var dispatcher = CreateDispatcher(manager, LoggerFactory); 2346var manager = CreateConnectionManager(LoggerFactory); 2347var dispatcher = CreateDispatcher(manager, LoggerFactory); 2375var manager = CreateConnectionManager(LoggerFactory); 2382var dispatcher = CreateDispatcher(manager, LoggerFactory); 2450var manager = CreateConnectionManager(LoggerFactory); 2456var dispatcher = CreateDispatcher(manager, LoggerFactory); 2542var manager = CreateConnectionManager(LoggerFactory); 2552var dispatcher = CreateDispatcher(manager, LoggerFactory); 2605var manager = CreateConnectionManager(LoggerFactory); 2614var dispatcher = CreateDispatcher(manager, LoggerFactory); 2662var manager = CreateConnectionManager(LoggerFactory); 2671var dispatcher = CreateDispatcher(manager, LoggerFactory); 2726var manager = CreateConnectionManager(LoggerFactory); 2730var dispatcher = CreateDispatcher(manager, LoggerFactory); 2761var manager = CreateConnectionManager(LoggerFactory); 2770var dispatcher = CreateDispatcher(manager, LoggerFactory); 2818var manager = CreateConnectionManager(LoggerFactory); 2820var dispatcher = CreateDispatcher(manager, LoggerFactory); 2844var manager = CreateConnectionManager(LoggerFactory); 2847var dispatcher = CreateDispatcher(manager, LoggerFactory); 2874var manager = CreateConnectionManager(LoggerFactory); 2877var dispatcher = CreateDispatcher(manager, LoggerFactory); 2922var manager = CreateConnectionManager(LoggerFactory); 2924var dispatcher = CreateDispatcher(manager, LoggerFactory); 2955var manager = CreateConnectionManager(LoggerFactory); 2959var dispatcher = CreateDispatcher(manager, LoggerFactory); 3006var manager = CreateConnectionManager(LoggerFactory); 3010var dispatcher = CreateDispatcher(manager, LoggerFactory); 3061var manager = CreateConnectionManager(LoggerFactory); 3065var dispatcher = CreateDispatcher(manager, LoggerFactory); 3108var manager = CreateConnectionManager(LoggerFactory); 3111var dispatcher = CreateDispatcher(manager, LoggerFactory); 3144var manager = CreateConnectionManager(LoggerFactory, TimeSpan.FromSeconds(5)); 3145var dispatcher = CreateDispatcher(manager, LoggerFactory); 3247}, LoggerFactory); 3274LoggerFactory); 3310}, LoggerFactory); 3336LoggerFactory); 3409}, LoggerFactory); 3436LoggerFactory); 3459}, LoggerFactory); 3475LoggerFactory); 3502o.AddProvider(new ForwardingLoggerProvider(LoggerFactory)); 3549LoggerFactory); 3572var manager = CreateConnectionManager(LoggerFactory, TimeSpan.FromSeconds(5)); 3573var dispatcher = CreateDispatcher(manager, LoggerFactory);
HttpConnectionManagerTests.cs (15)
47var connectionManager = CreateConnectionManager(LoggerFactory); 79var connectionManager = CreateConnectionManager(LoggerFactory); 147var connectionManager = CreateConnectionManager(LoggerFactory); 162var connectionManager = CreateConnectionManager(LoggerFactory); 181var connectionManager = CreateConnectionManager(LoggerFactory); 203var connectionManager = CreateConnectionManager(LoggerFactory); 224var connectionManager = CreateConnectionManager(LoggerFactory); 246var connectionManager = CreateConnectionManager(LoggerFactory); 288var connectionManager = CreateConnectionManager(LoggerFactory); 311var connectionManager = CreateConnectionManager(LoggerFactory); 338var connectionManager = CreateConnectionManager(LoggerFactory); 362var connectionManager = CreateConnectionManager(LoggerFactory); 378var connectionManager = CreateConnectionManager(LoggerFactory); 396var connectionManager = CreateConnectionManager(LoggerFactory, appLifetime); 417var connectionManager = CreateConnectionManager(LoggerFactory, appLifetime);
LongPollingTests.cs (4)
30var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input, LoggerFactory); 50var poll = new LongPollingServerTransport(timeoutToken, connection.Application.Input, LoggerFactory); 71var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input, LoggerFactory); 94var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input, LoggerFactory);
ServerSentEventsTests.cs (5)
28var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 51var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: connection.ConnectionId, LoggerFactory); 72var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 94var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 120var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory);
WebSocketsTests.cs (10)
38var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection, LoggerFactory); 86var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection, LoggerFactory); 113return new HttpConnectionContext("foo", connectionToken: null, LoggerFactory.CreateLogger(loggerName ?? nameof(HttpConnectionContext)), 146var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection, LoggerFactory); 179var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection, LoggerFactory); 215var ws = new WebSocketsServerTransport(options, connection.Application, connection, LoggerFactory); 249var ws = new WebSocketsServerTransport(options, connection.Application, connection, LoggerFactory); 284var ws = new WebSocketsServerTransport(options, connection.Application, connection, LoggerFactory); 323var ws = new WebSocketsServerTransport(options, connection.Application, connection, LoggerFactory); 370var ws = new WebSocketsServerTransport(options, connection.Application, connection, LoggerFactory);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateFactoryTests.cs (5)
1173serviceCollection.AddSingleton(LoggerFactory); 1343.AddSingleton(LoggerFactory) 1375.AddSingleton(LoggerFactory) 1404.AddSingleton(LoggerFactory) 1737serviceCollection.AddSingleton(LoggerFactory);
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
211serviceCollection.AddSingleton(LoggerFactory);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (3)
647.AddSingleton(LoggerFactory) 670.AddSingleton(LoggerFactory) 758.AddSingleton(LoggerFactory)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
211serviceCollection.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.Http.Tests (2)
ApplicationBuilderTests.cs (2)
83services.AddSingleton(LoggerFactory); 109services.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.HttpLogging.Tests (8)
HttpLoggingMiddlewareTests.cs (8)
44LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 54LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 74LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 84LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 94LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 1917services.AddSingleton(LoggerFactory); 1982LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 2023services.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1286builder.Services.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.InternalTesting (2)
LoggedTest\LoggedTest.cs (1)
22LoggerFactory.AddProvider(new TestLoggerProvider(TestSink));
LoggedTest\LoggedTestBase.cs (1)
45public void AddTestLogging(IServiceCollection services) => services.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.InternalTesting.Tests (11)
AssemblyTestLogTests.cs (6)
41var logger = LoggerFactory.CreateLogger("Test"); 124var logger = LoggerFactory.CreateLogger("Test"); 183var logger = LoggerFactory.CreateLogger("Test"); 229var logger = LoggerFactory.CreateLogger("Test"); 276var logger = LoggerFactory.CreateLogger("Test"); 318var logger = LoggerFactory.CreateLogger("Test");
LoggedTestXunitTests.cs (5)
28Assert.NotNull(LoggerFactory); 38Assert.NotNull(LoggerFactory); 49Assert.NotNull(LoggerFactory); 59Assert.NotNull(LoggerFactory); 122Assert.NotNull(LoggerFactory);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonInputFormatterTest.cs (1)
191LoggerFactory.CreateLogger<SystemTextJsonInputFormatter>());
Microsoft.AspNetCore.Mvc.FunctionalTests (99)
AntiforgeryAuthTests.cs (1)
18Factory = new MvcTestFixture<Startup>(LoggerFactory);
AntiforgeryTests.cs (1)
17Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
ApiBehaviorTest.cs (2)
26Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder); 428await using var factory = new MvcTestFixture<BasicWebSite.StartupWithCustomInvalidModelStateFactory>(LoggerFactory)
ApiExplorerTest.cs (1)
22Factory = new MvcTestFixture<ApiExplorerWebSite.Startup>(LoggerFactory);
ApplicationModelTest.cs (1)
17Factory = new MvcTestFixture<ApplicationModelWebSite.Startup>(LoggerFactory);
AsyncActionsTests.cs (1)
17Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
AsyncDisposalTest.cs (1)
22Factory = new MvcTestFixture<BasicWebSite.Startup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
AsyncEnumerableTestBase.cs (1)
20Factory = new MvcTestFixture<StartupWithJsonFormatter>(LoggerFactory);
AuthMiddlewareAndFilterTestBase.cs (1)
20Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
AuthMiddlewareUsingRequireAuthTest.cs (1)
19Factory = new MvcTestFixture<SecurityWebSite.StartupWithRequireAuth>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
BasicTests.cs (1)
28Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
ClientValidationOptionsTests.cs (1)
16Factory = new MvcTestFixture<RazorPagesWebSite.Startup>(LoggerFactory);
CompilationOptionsTests.cs (1)
18Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
ComponentRenderingFunctionalTests.cs (1)
22Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
ConsumesAttributeTestsBase.cs (1)
24Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
ContentNegotiationTest.cs (1)
24Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
ControllerEndpointFiltersTest.cs (1)
23Factory = new MvcTestFixture<StartupForEndpointFilters>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
ControllerFromServicesTests.cs (1)
17Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(LoggerFactory);
CorsTestsBase.cs (1)
20Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
CustomValueProviderTest.cs (1)
23Factory = new MvcTestFixture<BasicWebSite.StartupWithCustomValueProvider>(LoggerFactory)
DataAnnotationTests.cs (1)
20Factory = new MvcTestFixture<StartupDataAnnotations>(LoggerFactory)
DefaultValuesTest.cs (1)
16Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
DirectivesTest.cs (1)
16Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
DoNotRespectBrowserAcceptHeaderTests.cs (1)
25Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
ErrorPageTests.cs (1)
32Factory = new MvcTestFixture<ErrorPageMiddlewareWebSite.Startup>(LoggerFactory)
FileResultTests.cs (1)
20Factory = new MvcTestFixture<FilesWebSite.Startup>(LoggerFactory);
FiltersTest.cs (1)
18Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
FlushPointTest.cs (1)
16Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
FormFileUploadTest.cs (1)
17Factory = new MvcTestFixture<FilesWebSite.Startup>(LoggerFactory);
GlobalAuthorizationFilterTestBase.cs (1)
19Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
HtmlGenerationTest.cs (2)
25Factory = new MvcTestFixture<HtmlGenerationWebSite.Startup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder); 26EncodedFactory = new MvcEncodedTestFixture<HtmlGenerationWebSite.Startup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
HtmlGenerationWithCultureTest.cs (2)
27Factory = new MvcTestFixture<StartupWithCultureReplace>(LoggerFactory) 142.ConfigureTestServices(services => services.AddSingleton(LoggerFactory)))
HtmlHelperOptionsTest.cs (1)
19Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
HttpActionResultTests.cs (1)
19Factory = new MvcTestFixture<BasicWebSite.StartupWithSystemTextJson>(LoggerFactory);
InputFormatterTests.cs (1)
24Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
InputObjectValidationTests.cs (1)
24Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
InputParentValidationTests.cs (1)
28Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(builder => builder.UseStartup<TStartup>());
InputValidationTests.cs (1)
19Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
JsonInputFormatterTestBase.cs (1)
26Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
JsonOutputFormatterTestBase.cs (1)
27Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
JsonPatchInputFormatterTest.cs (1)
20Factory = new MvcTestFixture<Startup>(LoggerFactory);
JsonResultWithNewtonsoftJsonTest.cs (1)
23Factory = new MvcTestFixture<BasicWebSite.StartupWithNewtonsoftJson>(LoggerFactory)
JsonResultWithSystemTextJsonTest.cs (1)
23Factory = new MvcTestFixture<BasicWebSite.StartupWithSystemTextJson>(LoggerFactory)
KeyedServicesTests.cs (1)
16Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
LinkGenerationTests.cs (1)
27Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
LinkGeneratorTest.cs (1)
23Factory = new MvcTestFixture<RoutingWebSite.StartupForLinkGenerator>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder)
LinkParserTest.cs (1)
24Factory = new MvcTestFixture<RoutingWebSite.StartupForLinkGenerator>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
MvcSandboxTest.cs (1)
17Factory = new MvcTestFixture<MvcSandbox.Startup>(LoggerFactory);
NonNullableReferenceTypesTest.cs (1)
18Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
OutputFormatterTest.cs (1)
18Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
PageAsyncDisposalTest.cs (1)
25Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorBuildTest.cs (1)
27Factory = new MvcTestFixture<RazorBuildWebSite.Startup>(LoggerFactory)
RazorPageModelTest.cs (1)
22Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesNamespaceTest.cs (1)
21Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesTest.cs (1)
29Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesViewSearchTest.cs (1)
21Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesWithBasePathTest.cs (1)
18Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithBasePath>(LoggerFactory);
RazorPagesWithEndpointRoutingTest.cs (1)
17Factory = new MvcTestFixture<RazorPagesWebSite.Startup>(LoggerFactory);
RazorRuntimeCompilationHostingStartupTest.cs (1)
24Factory = new MvcTestFixture<RazorBuildWebSite.StartupWithHostingStartup>(LoggerFactory)
RazorViewLocationSpecificationTest.cs (1)
19Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
ReadFromDisconnectedClientTest.cs (1)
25Factory = new MvcTestFixture<BasicWebSite.StartupWhereReadingRequestBodyThrows>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RemoteAttributeValidationTest.cs (1)
20Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
RequestFormLimitsTest.cs (1)
22Factory = new MvcTestFixture<BasicWebSite.StartupRequestLimitSize>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RequestServicesTestBase.cs (1)
25Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RequestSizeLimitTest.cs (1)
23Factory = new MvcTestFixture<BasicWebSite.StartupRequestLimitSize>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RespectBrowserAcceptHeaderTests.cs (1)
26Factory = new MvcTestFixture<FormatterWebSite.StartupWithRespectBrowserAcceptHeader>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingAcrossPipelineBranchesTest.cs (1)
23Factory = new MvcTestFixture<RoutingWebSite.StartupRoutingDifferentBranches>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingDynamicOrderTest.cs (1)
23Factory = new MvcTestFixture<RoutingWebSite.StartupForDynamic>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingDynamicTest.cs (1)
22Factory = new MvcTestFixture<RoutingWebSite.StartupForDynamic>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingFallbackTest.cs (1)
23Factory = new MvcTestFixture<RoutingWebSite.StartupForFallback>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingGroupsTest.cs (1)
24Factory = new MvcTestFixture<StartupForGroups>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingGroupsWithMetadataTest.cs (1)
23Factory = new MvcTestFixture<StartupForRouteGroupsWithMetadata>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingTestsBase.cs (1)
23Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingWithoutRazorPagesTestsBase.cs (1)
23Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
SerializableErrorTests.cs (1)
20Factory = new MvcTestFixture<XmlFormattersWebSite.Startup>(LoggerFactory);
SimpleTests.cs (1)
16Factory = new MvcTestFixture<SimpleWebSite.Startup>(LoggerFactory);
SimpleWithWebApplicationBuilderExceptionTests.cs (1)
15Factory = new MvcTestFixture<SimpleWebSiteWithWebApplicationBuilderException.Program>(LoggerFactory);
SimpleWithWebApplicationBuilderTests.cs (1)
26Factory = new MvcTestFixture<SimpleWebSiteWithWebApplicationBuilder.Program>(LoggerFactory);
StreamOutputFormatterTest.cs (1)
16Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
TagHelperComponentTagHelperTest.cs (1)
19Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
TagHelpersFromServicesTest.cs (1)
16Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(LoggerFactory);
TagHelpersTest.cs (2)
25Factory = new MvcTestFixture<TagHelpersWebSite.Startup>(LoggerFactory); 26EncodedFactory = new MvcEncodedTestFixture<TagHelpersWebSite.Startup>(LoggerFactory);
TempDataInCookiesUsingCookieConsentTest.cs (1)
20Factory = new MvcTestFixture<BasicWebSite.StartupWithCookieTempDataProviderAndCookieConsent>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
TempDataPropertyTest.cs (1)
18Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(LoggerFactory);
TempDataTestBase.cs (1)
20Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
UrlResolutionTest.cs (2)
19Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory); 20EncodedFactory = new MvcEncodedTestFixture<RazorWebSite.Startup>(LoggerFactory);
VersioningTestsBase.cs (1)
23Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(ConfigureWebHostBuilder);
ViewComponentFromServicesTests.cs (1)
17Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(LoggerFactory);
ViewEngineTests.cs (1)
22Factory = new MvcTestFixture<RazorWebSite.Startup>(LoggerFactory);
XmlDataContractSerializerFormattersWrappingTest.cs (1)
23Factory = new MvcTestFixture<Startup>(LoggerFactory);
XmlDataContractSerializerInputFormatterTest.cs (1)
21Factory = new MvcTestFixture<Startup>(LoggerFactory);
XmlOutputFormatterTests.cs (1)
20Factory = new MvcTestFixture<FormatterWebSite.Startup>(LoggerFactory);
XmlSerializerFormattersWrappingTest.cs (1)
24Factory = new MvcTestFixture<Startup>(LoggerFactory);
XmlSerializerInputFormatterTests.cs (1)
20Factory = new MvcTestFixture<XmlFormattersWebSite.Startup>(LoggerFactory);
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
973serviceCollection.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (260)
AuthenticationTests.cs (18)
36}, LoggerFactory)) 54}, LoggerFactory)) 76}, LoggerFactory)) 102}, LoggerFactory)) 138}, LoggerFactory)) 159}, LoggerFactory)) 185}, LoggerFactory)) 211}, LoggerFactory)) 234}, LoggerFactory)) 256}, LoggerFactory)) 279}, LoggerFactory)) 297}, LoggerFactory)) 323}, LoggerFactory)) 341}, LoggerFactory)) 362}, LoggerFactory)) 396}, LoggerFactory)) 423}, LoggerFactory)) 450}, LoggerFactory))
DelegateTests.cs (14)
47}, LoggerFactory); 56}, LoggerFactory); 79}, LoggerFactory); 89}, LoggerFactory); 111}, LoggerFactory); 122}, LoggerFactory); 145}, LoggerFactory); 155}, LoggerFactory); 176}, LoggerFactory); 196}, LoggerFactory); 205}, LoggerFactory); 230}, LoggerFactory); 238}, LoggerFactory); 260}, LoggerFactory);
Http2Tests.cs (22)
40}, LoggerFactory); 73}, LoggerFactory); 123}, LoggerFactory); 173}, LoggerFactory); 238}, LoggerFactory); 290}, LoggerFactory); 326}, LoggerFactory); 370}, LoggerFactory); 409}, LoggerFactory); 448}, LoggerFactory); 521}, LoggerFactory); 555}, LoggerFactory); 587}, LoggerFactory); 620}, LoggerFactory); 642}, LoggerFactory); 672}, LoggerFactory); 714}, LoggerFactory); 761}, LoggerFactory); 813}, LoggerFactory); 867}, LoggerFactory); 915}, LoggerFactory); 965}, LoggerFactory);
Http3Tests.cs (8)
37}, LoggerFactory); 65}, LoggerFactory); 105}, LoggerFactory); 141}, LoggerFactory); 169}, LoggerFactory); 199}, LoggerFactory); 224}, LoggerFactory); 248}, LoggerFactory);
HttpsTests.cs (7)
30}, LoggerFactory)) 45}, LoggerFactory)) 62}, LoggerFactory)) 143}, LoggerFactory)) 159}, LoggerFactory)) 235}, LoggerFactory)) 265}, LoggerFactory))
MessagePumpTests.cs (6)
24using (var server = Utilities.CreatePump(LoggerFactory)) 46using (var server = Utilities.CreatePump(LoggerFactory)) 63using (var server = Utilities.CreatePump(LoggerFactory)) 84using (var server = Utilities.CreatePump(LoggerFactory)) 101using (var server = Utilities.CreatePump(LoggerFactory)) 115using (var server = Utilities.CreatePump(LoggerFactory))
OpaqueUpgradeTests.cs (10)
37}, LoggerFactory)) 65}, LoggerFactory)) 96}, LoggerFactory)) 118}, LoggerFactory)) 149}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 178}, LoggerFactory)) 234}, LoggerFactory)) 270}, LoggerFactory)) 293}, LoggerFactory)) 325}, LoggerFactory))
RequestBodyLimitTests.cs (16)
35}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 57}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 79}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 102}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 124}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 146}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 172}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 197}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 222}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 248}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 272}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 298}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 325}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 350}, options => options.MaxRequestBodySize = 10, LoggerFactory)) 374}, options => options.MaxRequestBodySize = 11, LoggerFactory)) 398}, options => options.MaxRequestBodySize = 11, LoggerFactory))
RequestBodyTests.cs (11)
36}, LoggerFactory)) 58}, LoggerFactory)) 76}, LoggerFactory)) 96}, LoggerFactory)) 114}, LoggerFactory)) 136}, LoggerFactory)) 158}, LoggerFactory)) 178}, LoggerFactory)) 198}, LoggerFactory)) 232}, LoggerFactory)) 287}, LoggerFactory))
RequestHeaderTests.cs (8)
31}, LoggerFactory)) 53}, LoggerFactory); 95}, LoggerFactory)) 114}, LoggerFactory)) 137}, LoggerFactory)) 168}, LoggerFactory)) 194}, LoggerFactory); 222}, LoggerFactory);
RequestTests.cs (18)
62}, LoggerFactory)) 126}, LoggerFactory)) 189}, LoggerFactory)) 233}, LoggerFactory)) 250}, LoggerFactory)) 267}, LoggerFactory)) 283}, LoggerFactory)) 356}, LoggerFactory)) 372}, LoggerFactory)) 412}, LoggerFactory)) 437}, LoggerFactory)) 457}, LoggerFactory)) 472}, LoggerFactory)) 494}, LoggerFactory)) 526}, LoggerFactory); 573}, LoggerFactory); 603var dynamicServer = Utilities.CreateHttpServerReturnRoot("/", out root, app, LoggerFactory); 606var server = Utilities.CreatePump(LoggerFactory);
ResponseBodyTests.cs (17)
30}, LoggerFactory)) 59}, LoggerFactory)) 80}, LoggerFactory)) 99}, LoggerFactory)) 117}, LoggerFactory)) 149}, loggerFactory: LoggerFactory)) 174}, LoggerFactory)) 196}, LoggerFactory)) 220}, LoggerFactory)) 241}, LoggerFactory)) 255}, LoggerFactory)) 273}, LoggerFactory)) 299}, LoggerFactory)) 331}, LoggerFactory)) 359}, LoggerFactory)) 386}, LoggerFactory)) 427}, LoggerFactory))
ResponseCachingTests.cs (19)
55}, LoggerFactory)) 75}, LoggerFactory)) 96}, LoggerFactory)) 117}, LoggerFactory)) 142}, LoggerFactory)) 162}, LoggerFactory)) 182}, LoggerFactory)) 202}, LoggerFactory)) 222}, LoggerFactory)) 243}, LoggerFactory)) 267}, LoggerFactory)) 290}, LoggerFactory)) 310}, LoggerFactory)) 331}, LoggerFactory)) 352}, LoggerFactory)) 374}, LoggerFactory)) 393}, LoggerFactory)) 413}, LoggerFactory)) 435}, LoggerFactory))
ResponseHeaderTests.cs (11)
27}, LoggerFactory)) 50}, LoggerFactory)) 76}, LoggerFactory)) 101}, LoggerFactory)) 126}, LoggerFactory)) 147}, LoggerFactory)) 168}, LoggerFactory)) 195}, LoggerFactory)) 231}, LoggerFactory)) 261}, LoggerFactory)) 284}, LoggerFactory))
ResponseSendFileTests.cs (24)
53}, LoggerFactory)) 69}, LoggerFactory)) 88}, LoggerFactory)) 107}, LoggerFactory)) 127}, LoggerFactory)) 146}, LoggerFactory)) 168}, LoggerFactory)) 187}, LoggerFactory)) 203}, LoggerFactory)) 223}, LoggerFactory)) 244}, LoggerFactory)) 265}, LoggerFactory)) 292}, LoggerFactory)) 318}, LoggerFactory)) 342}, LoggerFactory)) 360}, LoggerFactory)) 389}, options => options.ThrowWriteExceptions = true, LoggerFactory)) 417}, LoggerFactory)) 444}, options => options.ThrowWriteExceptions = true, LoggerFactory)) 471}, LoggerFactory)) 516}, options => options.ThrowWriteExceptions = true, LoggerFactory)) 559}, LoggerFactory)) 610}, options => options.ThrowWriteExceptions = true, LoggerFactory)) 659}, LoggerFactory))
ResponseTests.cs (10)
31}, LoggerFactory)) 50}, LoggerFactory)) 70}, LoggerFactory)) 88}, LoggerFactory)) 105}, LoggerFactory)) 120}, LoggerFactory)) 148}, LoggerFactory)) 177}, LoggerFactory)) 207}, LoggerFactory)) 252}, LoggerFactory);
ResponseTrailersTests.cs (14)
30}, LoggerFactory)) 48}, LoggerFactory)) 69}, LoggerFactory)) 87}, LoggerFactory)) 105}, LoggerFactory)) 135}, LoggerFactory)) 158}, LoggerFactory)) 183}, LoggerFactory)) 209}, LoggerFactory)) 233}, LoggerFactory)) 255}, LoggerFactory)) 275}, LoggerFactory)) 303}, LoggerFactory)) 323}, LoggerFactory))
ServerTests.cs (27)
32}, LoggerFactory)) 64}, LoggerFactory)) 101}, LoggerFactory)) 121}, LoggerFactory)) 137}, LoggerFactory)) 154}, LoggerFactory)) 176}, LoggerFactory)) 197}, LoggerFactory)) 213}, LoggerFactory)) 232}, LoggerFactory)) 262}, LoggerFactory)) 292}, LoggerFactory)) 325}, LoggerFactory)) 340using (Utilities.CreateHttpServer(out address, httpContext => Task.FromResult(0), LoggerFactory)) { } 342var server = Utilities.CreatePump(LoggerFactory); 362}, httpContext => Task.FromResult(0), LoggerFactory)) 384using (var server = Utilities.CreatePump(LoggerFactory)) 401}, httpContext => Task.FromResult(0), LoggerFactory)) 426}, LoggerFactory)) 460}, LoggerFactory)) 497}, LoggerFactory)) 534}, LoggerFactory)) 573}, LoggerFactory)) 592using (var server = Utilities.CreateHttpServer(out _, httpContext => Task.CompletedTask, LoggerFactory)) 607}, LoggerFactory); 612}, LoggerFactory); 631}, LoggerFactory);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (23)
CertificatePathWatcherTests.cs (10)
25var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 75var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 125var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 175var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 215var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 242var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 276var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 316var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 347var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 407var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>();
ConnectionDispatcherTests.cs (2)
60var serviceContext = new TestServiceContext(LoggerFactory); 97var serviceContext = new TestServiceContext(LoggerFactory);
HeartbeatTests.cs (4)
30var kestrelTrace = new KestrelTrace(LoggerFactory); 106var kestrelTrace = new KestrelTrace(LoggerFactory); 149var kestrelTrace = new KestrelTrace(LoggerFactory); 187var kestrelTrace = new KestrelTrace(LoggerFactory);
Http1\Http1ConnectionTestsBase.cs (1)
48_serviceContext = new TestServiceContext(LoggerFactory)
HttpConnectionManagerTests.cs (1)
21var trace = new KestrelTrace(LoggerFactory);
HttpParserTests.cs (1)
20private KestrelTrace CreateEnabledTrace() => new KestrelTrace(LoggerFactory);
MessageBodyTests.cs (3)
760using (var input = new TestInput(log: new KestrelTrace(LoggerFactory), timeoutControl: mockTimeoutControl.Object)) 823using (var input = new TestInput(log: new KestrelTrace(LoggerFactory))) 860using (var input = new TestInput(log: new KestrelTrace(LoggerFactory)))
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (56)
QuicConnectionContextTests.cs (20)
29LoggerFactory, 53LoggerFactory, 80await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 121await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 151await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 193await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 243await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 288await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 314await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 357await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 402await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 449using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 451await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 506using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 509await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory, timeProvider); 561using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 563await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 665using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 668await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 747await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory);
QuicConnectionListenerTests.cs (17)
32await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 46await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 69await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 115await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory, clientCertificateRequired: true); 153using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 155await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory, clientCertificateRequired: true); 177LoggerFactory); 196await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 214await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 250LoggerFactory); 275await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 280await Assert.ThrowsAsync<AddressInUseException>(() => QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory, port: port)); 295await Assert.ThrowsAsync<AddressInUseException>(() => QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory, port: port)); 314LoggerFactory); 349LoggerFactory); 391LoggerFactory); 445LoggerFactory);
QuicStreamContextTests.cs (17)
33using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 35await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 59await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 105using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 107await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 167using var httpEventSource = new HttpEventSourceListener(LoggerFactory); 175await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 233await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 255await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 299await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 333await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 372await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 403await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 444await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 488await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 538await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory); 565await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(LoggerFactory);
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
WebHostTests.cs (1)
46using var httpEventSource = new HttpEventSourceListener(LoggerFactory);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (158)
HubConnectionTests.cs (137)
96.WithLoggerFactory(LoggerFactory) 112LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 135.WithLoggerFactory(LoggerFactory) 148LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 165.WithLoggerFactory(LoggerFactory) 177LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 195var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 206LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 223var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, protocol, LoggerFactory); 234LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 253var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 266LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 284var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 301LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 319var logger = LoggerFactory.CreateLogger<HubConnectionTests>(); 322var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 364LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 382var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 393LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 413var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 433LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 451var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 468LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 486var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.WebSockets, protocol, LoggerFactory); 514LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 532var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 549LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 567var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 586LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 604var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 628LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 652var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 670LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 690var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 704LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 722var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 746LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} during test: {Message}", ex.GetType().Name, ex.Message); 764var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 776LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 794var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 813LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 831var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 860LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 878var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 913LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 931var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 954LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 972var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 995LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1013var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 1025LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1048var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory); 1059LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1076var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1086LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1103var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1113LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1130var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, hubProtocol, LoggerFactory); 1140LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1157var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1167LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1184var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1195LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1212var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1223LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1240var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1251LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1268var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1278LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1295var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1305LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1322var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1332LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1362var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.WebSockets, protocol, LoggerFactory); 1381LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1416var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, protocol, LoggerFactory); 1435LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1459var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol, LoggerFactory); 1484.WithLoggerFactory(LoggerFactory) 1498LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1520.WithLoggerFactory(LoggerFactory) 1542.WithLoggerFactory(LoggerFactory) 1553LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1570.WithLoggerFactory(LoggerFactory) 1585LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1601.WithLoggerFactory(LoggerFactory) 1627LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1643.WithLoggerFactory(LoggerFactory) 1662LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1678.WithLoggerFactory(LoggerFactory) 1697LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1718.WithLoggerFactory(LoggerFactory) 1732LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1760.WithLoggerFactory(LoggerFactory) 1783LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1818.WithLoggerFactory(LoggerFactory) 1842LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1878.WithLoggerFactory(LoggerFactory) 1921.WithLoggerFactory(LoggerFactory) 1950LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1974.WithLoggerFactory(LoggerFactory) 1985LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2001.WithLoggerFactory(LoggerFactory) 2021LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2037.WithLoggerFactory(LoggerFactory) 2052LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2068.WithLoggerFactory(LoggerFactory) 2082LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2099.WithLoggerFactory(LoggerFactory) 2149loggerFactory: LoggerFactory, 2185LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2207.WithLoggerFactory(LoggerFactory) 2245LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2267.WithLoggerFactory(LoggerFactory) 2311LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2328await using var connection = CreateHubConnection(server.Url, "/default", transportType, HubProtocols["json"], LoggerFactory); 2351LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2378.WithLoggerFactory(LoggerFactory) 2394LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2431.WithLoggerFactory(LoggerFactory) 2447LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2474.WithLoggerFactory(LoggerFactory) 2490LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2524.WithLoggerFactory(LoggerFactory) 2540LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2562.WithLoggerFactory(LoggerFactory) 2599LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2620.WithLoggerFactory(LoggerFactory) 2668LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2690.WithLoggerFactory(LoggerFactory) 2741LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2759.WithLoggerFactory(LoggerFactory) 2793LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2811.WithLoggerFactory(LoggerFactory) 2835LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2865.WithLoggerFactory(LoggerFactory) 2913LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubConnectionTests.Tracing.cs (12)
59.WithLoggerFactory(LoggerFactory) 120LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 253var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory, activitySourceContainer: clientSourceContainer); 291LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 397var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory, activitySourceContainer: clientSourceContainer); 421LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 500var connection = CreateHubConnection(server.Url, path, transportType, protocol, LoggerFactory, activitySourceContainer: clientSourceContainer); 518LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 597.WithLoggerFactory(LoggerFactory) 613LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 687.WithLoggerFactory(LoggerFactory) 712LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubProtocolVersionTests.cs (9)
42.WithLoggerFactory(LoggerFactory) 57LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 74.WithLoggerFactory(LoggerFactory) 90LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 112LoggerFactory); 119.WithLoggerFactory(LoggerFactory); 150LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 173.WithLoggerFactory(LoggerFactory) 187LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
Microsoft.AspNetCore.SignalR.Client.Tests (78)
HttpConnectionTests.ConnectionLifecycle.cs (15)
29await WithConnectionAsync(CreateConnection(loggerFactory: LoggerFactory), async (connection) => 43CreateConnection(loggerFactory: LoggerFactory, transport: new TestTransport(onTransportStart: SyncPoint.Create(out var syncPoint))), 63CreateConnection(loggerFactory: LoggerFactory), 118loggerFactory: LoggerFactory, 152loggerFactory: LoggerFactory, 179CreateConnection(loggerFactory: LoggerFactory), 194loggerFactory: LoggerFactory, 228loggerFactory: LoggerFactory, 311CreateConnection(httpHandler, LoggerFactory), 340var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory: LoggerFactory); 343CreateConnection(httpHandler, loggerFactory: LoggerFactory, transport: sse), 366var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory: LoggerFactory); 369CreateConnection(httpHandler, loggerFactory: LoggerFactory, transport: sse), 498var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory: LoggerFactory); 501CreateConnection(httpHandler, loggerFactory: LoggerFactory, transport: sse, transportType: HttpTransportType.ServerSentEvents),
HttpConnectionTests.Transport.cs (1)
92CreateConnection(testHttpHandler, transportType: transportType, loggerFactory: LoggerFactory),
HubConnectionTests.ConnectionLifecycle.cs (4)
172await AsyncUsing(CreateHubConnection(testConnection, loggerFactory: LoggerFactory), async connection => 511var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 540var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 582var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory);
HubConnectionTests.cs (28)
36var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 51var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 86var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 106var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 131var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 153var hubConnection = CreateHubConnection(connection, protocol: Mock.Of<IHubProtocol>(), LoggerFactory); 171var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 188var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 207var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 227var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 249var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 268var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 287var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 317var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 355var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 381var hubConnection = CreateHubConnection(testConnection, loggerFactory: LoggerFactory); 413var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 435var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 475var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 506var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 550var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 582var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 608var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 642var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 674var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 707var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 753await using var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory); 812var hubConnection = CreateHubConnection(connection, loggerFactory: LoggerFactory);
HubConnectionTests.Reconnect.cs (13)
43await using var hubConnection = CreateHubConnection(testConnection, loggerFactory: LoggerFactory); 83var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 197var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 292var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 387var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 483var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 567var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 628var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 683var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 741var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 848var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 967var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com"); 1058var builder = new HubConnectionBuilder().WithLoggerFactory(LoggerFactory).WithUrl("http://example.com");
LongPollingTransportTests.cs (1)
259var longPollingTransport = new LongPollingTransport(httpClient, loggerFactory: LoggerFactory);
ServerSentEventsTransportTests.cs (11)
52var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 97var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 150var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 206var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 256var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 283var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 337var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 372var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 399var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 430var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory); 484var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory: LoggerFactory);
TestServerTests.cs (4)
25s.AddSingleton(LoggerFactory); 54connectionBuilder.Services.AddSingleton(LoggerFactory); 77s.AddSingleton(LoggerFactory); 99connectionBuilder.Services.AddSingleton(LoggerFactory);
WebSocketsTransportTests.cs (1)
30var webSocketsTransport = new WebSocketsTransport(options, loggerFactory: LoggerFactory, () => Task.FromResult<string>(null), null);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
RedisEndToEnd.cs (11)
46var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory); 66var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory); 67var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol, LoggerFactory); 99var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "userA"); 100var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "userA"); 131var firstConnection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "userA"); 132var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "userA"); 157var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory); 158var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol, LoggerFactory); 193var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "*"); 194var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol, LoggerFactory, userName: "userA");
Microsoft.AspNetCore.SignalR.Tests (206)
EndToEndTests.cs (27)
44var connection = new HttpConnection(new Uri(url), HttpTransports.All, LoggerFactory); 66var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), DefaultTransferFormat = TransferFormat.Text }, LoggerFactory, new TestTransportFactory()); 80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 92var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 130var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 169var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 186var connection = new HttpConnection(httpOptions, LoggerFactory); 219var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 236var connection = new HttpConnection(httpOptions, LoggerFactory); 262var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 267var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat }, LoggerFactory); 320var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 323var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 384var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 387var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 408var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 418var connection = new HttpConnection(options, LoggerFactory); 438var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 441var connection = new HttpConnection(new Uri(url), transportType, LoggerFactory); 474var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 494LoggerFactory); 544var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 548.WithLoggerFactory(LoggerFactory) 609var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 613.WithLoggerFactory(LoggerFactory) 648var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 661.WithLoggerFactory(LoggerFactory)
HubConnectionHandlerTests.Activity.cs (8)
32}, LoggerFactory); 107}, LoggerFactory); 176}, LoggerFactory); 235}, LoggerFactory); 308}, LoggerFactory); 355}, LoggerFactory); 407}, LoggerFactory); 458}, LoggerFactory);
HubConnectionHandlerTests.ClientResult.cs (13)
18var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { }, LoggerFactory); 51}, LoggerFactory); 83}, LoggerFactory); 110}, LoggerFactory); 135var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 167var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 201var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { }, LoggerFactory); 236}, LoggerFactory); 290}, LoggerFactory); 359var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 404var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 449var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { }, LoggerFactory); 486var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { }, LoggerFactory);
HubConnectionHandlerTests.cs (128)
44var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(trackDispose), LoggerFactory); 72LoggerFactory); 98var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 122var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 148var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 172var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 200}, LoggerFactory); 220var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 231var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 242var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 257var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 281var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 304var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory, 338var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 381var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 422var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 460var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 484var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), LoggerFactory, 513var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), LoggerFactory, 547var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), LoggerFactory, 598var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), LoggerFactory, 642var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 663var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 702}, LoggerFactory); 743}, LoggerFactory); 775}, LoggerFactory); 798var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 824var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 850var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 876var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 920}, LoggerFactory); 954var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(MethodHub), loggerFactory: LoggerFactory); 987var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1014var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1043var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1068var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1094var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1129var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1157var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1182var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1207var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1232var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1257var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1276var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1301var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1334var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1359var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1373var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1409var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1449var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1490var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1533var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(SimpleVoidReturningTypedHub), loggerFactory: LoggerFactory); 1553var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1599var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1647var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1692var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1736var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1789var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1840var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1882var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 1906var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1940var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory: LoggerFactory); 1973var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory: LoggerFactory); 2009var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2044var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2093}), LoggerFactory); 2128var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2203}, LoggerFactory); 2239}, LoggerFactory); 2278var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 2341}, LoggerFactory); 2385}, LoggerFactory); 2416var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2453}, LoggerFactory); 2491}, LoggerFactory); 2515}, LoggerFactory); 2549}, LoggerFactory); 2612var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2643var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2668var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 2697options.KeepAliveInterval = TimeSpan.FromMilliseconds(100)), LoggerFactory); 2743options.KeepAliveInterval = interval), LoggerFactory); 2805options.ClientTimeoutInterval = timeout), LoggerFactory); 2841options.ClientTimeoutInterval = timeout), LoggerFactory); 2873}, LoggerFactory); 2904options.ClientTimeoutInterval = timeout), LoggerFactory); 3018}, LoggerFactory); 3077}, LoggerFactory); 3104var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 3147}, LoggerFactory); 3182}, LoggerFactory); 3217}, LoggerFactory); 3252}, LoggerFactory); 3287}, LoggerFactory); 3329}, LoggerFactory); 3384}, LoggerFactory); 3440}, LoggerFactory); 3511}, LoggerFactory); 3559}, LoggerFactory); 3801}, LoggerFactory); 3820var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 3843var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 3867var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 3899LoggerFactory, (services) => services.AddSingleton<IHubProtocol>(testProtocol.Object)); 3918var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 3945}, loggerFactory: LoggerFactory); 3970}, loggerFactory: LoggerFactory); 3994var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4014var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4033var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4055}, LoggerFactory); 4093}, LoggerFactory); 4130var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4167var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4213}, LoggerFactory); 4254}, LoggerFactory); 4299}, LoggerFactory); 4330}, LoggerFactory); 4357}, LoggerFactory); 4383var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 4408IServiceProvider serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory: LoggerFactory); 4476LoggerFactory); 4537var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 4627var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null, LoggerFactory); 5116var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 5140var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 5244var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory); 5307var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state), LoggerFactory);
HubFilterTests.cs (23)
30}, LoggerFactory); 48}, LoggerFactory); 66}, LoggerFactory); 86}, LoggerFactory); 106}, LoggerFactory); 151}, LoggerFactory); 186}, LoggerFactory); 236}, LoggerFactory); 287}, LoggerFactory); 335}, LoggerFactory); 395}, LoggerFactory); 457}, LoggerFactory); 517}, LoggerFactory); 537}, LoggerFactory); 586}, LoggerFactory); 629}, LoggerFactory); 660}, LoggerFactory); 690}, LoggerFactory); 727}, LoggerFactory); 768}, LoggerFactory); 803}, LoggerFactory); 844}, LoggerFactory); 882}, LoggerFactory);
WebSocketsTransportTests.cs (7)
94var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 108var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 139var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 162var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 178var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 200var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory: LoggerFactory, accessTokenProvider: null, httpClient: null); 218var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, LoggerFactory, accessTokenProvider: null, httpClient: null);
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
src\Shared\SignalR\FunctionalTestBase.cs (1)
43return InProcessTestServer<T>.StartServer(LoggerFactory, configureKestrelServerOptions, disposable);
src\Shared\SignalR\VerifiableLoggedTest.cs (1)
27return new VerifyNoErrorsScope(LoggerFactory, wrappedDisposable: null, expectedErrorsFilter);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (2)
30services.AddSingleton(LoggerFactory); 83services.AddSingleton(LoggerFactory);
StaticFileMiddlewareTests.cs (6)
28.ConfigureServices(services => services.AddSingleton(LoggerFactory)) 51.ConfigureServices(services => { services.AddSingleton(LoggerFactory); services.AddRouting(); }) 97.ConfigureServices(services => services.AddSingleton(LoggerFactory)) 142.ConfigureServices(services => services.AddSingleton(LoggerFactory)) 184.ConfigureServices(services => services.AddSingleton(LoggerFactory)) 246.ConfigureServices(services => services.AddSingleton(LoggerFactory))
Microsoft.AspNetCore.WebSockets.Tests (28)
WebSocketCompressionMiddlewareTests.cs (4)
18await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 50await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 80await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 113await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context =>
WebSocketMiddlewareTests.cs (24)
21await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 37await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 65await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 90await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 115await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 141await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 172await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 221await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 246await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 271await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 304await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 347await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 375await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 403await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 433await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 465await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 514await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 589await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 653await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, context => 696await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, context => 722await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 743await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 779await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context => 802await using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, async context =>
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
Sockets.FunctionalTests (36)
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
24var serviceContext = new TestServiceContext(LoggerFactory); 66var serviceContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (3)
51}, new TestServiceContext(LoggerFactory), 77}, new TestServiceContext(LoggerFactory), 105}, new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
67var testContext = new TestServiceContext(LoggerFactory); 122var testContext = new TestServiceContext(LoggerFactory); 169var testContext = new TestServiceContext(LoggerFactory)
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
36await using (var server = new TestServer(_ => Task.CompletedTask, new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (13)
210}, new TestServiceContext(LoggerFactory))) 271await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 323await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 368await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 427await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 500new TestServiceContext(LoggerFactory))) 656}, new TestServiceContext(LoggerFactory))) 734var testContext = new TestServiceContext(LoggerFactory); 769var testContext = new TestServiceContext(LoggerFactory); 805var testContext = new TestServiceContext(LoggerFactory); 849var testContext = new TestServiceContext(LoggerFactory); 971var testContext = new TestServiceContext(LoggerFactory) 1049var testContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (13)
168}, new TestServiceContext(LoggerFactory), listenOptions)) 206var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 284var testContext = new TestServiceContext(LoggerFactory) 378}, new TestServiceContext(LoggerFactory), listenOptions)) 433var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 472var logger = LoggerFactory.CreateLogger($"{ typeof(ResponseTests).FullName}.{ nameof(ConnectionClosedWhenResponseDoesNotSatisfyMinimumDataRate)}"); 507var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 521var appLogger = LoggerFactory.CreateLogger("App"); 641var testContext = new TestServiceContext(LoggerFactory) 762var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 861var testContext = new TestServiceContext(LoggerFactory) 938var testContext = new TestServiceContext(LoggerFactory) 1025var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))