366 instantiations of TestServiceContext
InMemory.FunctionalTests (366)
BadHttpRequestTests.cs (8)
168}, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 215}, new TestServiceContext(LoggerFactory))) 237await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)))) 259await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)))) 343await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 390await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 456await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 531await 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 (1)
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 (1)
121_serviceContext = new TestServiceContext(LoggerFactory)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
87return new WebTransportStream(TestContextFactory.CreateHttp3StreamContext("id", null, new TestServiceContext(), features, null, null, null, transport), type);
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)) 158}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 194}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 204await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), listenOptions => 236}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 264}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 285await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 315await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 348await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 383await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 418await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 452await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 480await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 517}, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 559}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 603}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 646}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 687}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 735}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 777}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 844new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 902}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 929new TestServiceContext(LoggerFactory), ConfigureListenOptions); 962new TestServiceContext(LoggerFactory), ConfigureListenOptions); 995new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1043}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1088}, new TestServiceContext(LoggerFactory), ConfigureListenOptions); 1118await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1141await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1179await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1206await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1231await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1256await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1290await using (var server = new TestServer(app, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1389await using var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions);
HttpsTests.cs (18)
81var testContext = new TestServiceContext(LoggerFactory); 176new TestServiceContext(LoggerFactory), 204new TestServiceContext(LoggerFactory), 248new TestServiceContext(LoggerFactory), 292new TestServiceContext(LoggerFactory), 323new TestServiceContext(LoggerFactory), 349new TestServiceContext(LoggerFactory), 368var testContext = new TestServiceContext(LoggerFactory); 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); 684new TestServiceContext(LoggerFactory), 720new TestServiceContext(LoggerFactory), 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 (13)
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 } } })) 252new TestServiceContext { 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 (114)
51}, new TestServiceContext(LoggerFactory))) 84}, new TestServiceContext(LoggerFactory))) 118}, new TestServiceContext(LoggerFactory))) 147var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 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), 4695await using (var server = new TestServer(handler, new TestServiceContext(loggerFactory),
TestTransport\TestServer.cs (1)
39: this(app, new TestServiceContext())
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)))
204 references to TestServiceContext
InMemory.FunctionalTests (204)
ChunkedRequestTests.cs (15)
73var testContext = new TestServiceContext(LoggerFactory); 102var testContext = new TestServiceContext(LoggerFactory); 131var testContext = new TestServiceContext(LoggerFactory); 172var testContext = 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 (28)
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);
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 (1)
360var serviceContext = new TestServiceContext(LoggerFactory);
Http2\Http2TestBase.cs (1)
155internal TestServiceContext _serviceContext;
Http3\Http3TestBase.cs (1)
26internal TestServiceContext _serviceContext;
HttpProtocolSelectionTests.cs (2)
61var testContext = new TestServiceContext(LoggerFactory); 80var testContext = new TestServiceContext(LoggerFactory);
HttpsTests.cs (9)
81var testContext = new TestServiceContext(LoggerFactory); 368var testContext = new TestServiceContext(LoggerFactory); 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);
KeepAliveTimeoutTests.cs (8)
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)); 247private TestServer CreateServer(TestServiceContext context, CancellationToken longRunningCt = default, CancellationToken upgradeCt = default) 291private async Task ReceiveResponse(InMemoryConnection connection, TestServiceContext testContext)
KestrelMetricsTests.cs (10)
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)); 612var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
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));
RequestHeadersTimeoutTests.cs (7)
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)); 151private TestServer CreateServer(TestServiceContext context) 165private async Task ReceiveResponse(InMemoryConnection connection, TestServiceContext testContext) 179private async Task ReceiveTimeoutResponse(InMemoryConnection connection, TestServiceContext testContext)
RequestTargetProcessingTests.cs (3)
20var testContext = new TestServiceContext(LoggerFactory); 65var testContext = new TestServiceContext(LoggerFactory); 97var testContext = new TestServiceContext(LoggerFactory);
RequestTests.cs (41)
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); 540private static async Task TestAsyncLocalValues(TestServiceContext testContext, TestServer server) 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); 1630var serviceContext = 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);
ResponseDrainingTests.cs (1)
25var testContext = new TestServiceContext(LoggerFactory);
ResponseHeaderTests.cs (2)
49var testContext = new TestServiceContext(LoggerFactory); 84var testContext = new TestServiceContext(LoggerFactory);
ResponseTests.cs (53)
147var serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 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); 1263var serviceContext = new TestServiceContext(LoggerFactory); 1304var serviceContext = new TestServiceContext(LoggerFactory); 1342var serviceContext = new TestServiceContext(LoggerFactory); 1378var serviceContext = new TestServiceContext(LoggerFactory); 1469var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 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 } }; 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); 3472var testContext = new TestServiceContext(LoggerFactory) 3507var testContext = 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);
TestTransport\TestServer.cs (5)
43public TestServer(RequestDelegate app, TestServiceContext context) 49public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions) 54public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions) 69public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices) 112public TestServiceContext Context { get; }
UpgradeTests.cs (1)
305var serviceContext = new TestServiceContext(LoggerFactory);