366 instantiations of TestServiceContext
InMemory.FunctionalTests (366)
BadHttpRequestTests.cs (8)
168
}, new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
215
}, new
TestServiceContext
(LoggerFactory)))
237
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))))
259
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))))
343
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
390
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
456
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
531
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
ChunkedRequestTests.cs (17)
73
var testContext = new
TestServiceContext
(LoggerFactory);
102
var testContext = new
TestServiceContext
(LoggerFactory);
131
var testContext = new
TestServiceContext
(LoggerFactory);
172
var testContext = new
TestServiceContext
(LoggerFactory);
298
}, new
TestServiceContext
(LoggerFactory)))
429
}, new
TestServiceContext
(LoggerFactory)))
489
var testContext = new
TestServiceContext
(LoggerFactory);
536
var testContext = new
TestServiceContext
(LoggerFactory);
576
var testContext = new
TestServiceContext
(LoggerFactory);
660
var testContext = new
TestServiceContext
(LoggerFactory);
704
var testContext = new
TestServiceContext
(LoggerFactory);
749
var testContext = new
TestServiceContext
(LoggerFactory);
855
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
909
var testContext = new
TestServiceContext
(LoggerFactory);
965
var testContext = new
TestServiceContext
(LoggerFactory);
1015
var testContext = new
TestServiceContext
(LoggerFactory);
1078
var testContext = new
TestServiceContext
(LoggerFactory);
ChunkedResponseTests.cs (29)
22
var testContext = new
TestServiceContext
(LoggerFactory);
57
var testContext = new
TestServiceContext
(LoggerFactory);
85
var testContext = new
TestServiceContext
(LoggerFactory);
121
var testContext = new
TestServiceContext
(LoggerFactory);
157
var testContext = new
TestServiceContext
(LoggerFactory);
197
var testContext = new
TestServiceContext
(LoggerFactory);
239
var testContext = new
TestServiceContext
(LoggerFactory);
276
var testContext = new
TestServiceContext
(LoggerFactory);
312
var testContext = new
TestServiceContext
(LoggerFactory);
348
var testContext = new
TestServiceContext
(LoggerFactory);
392
var testContext = new
TestServiceContext
(LoggerFactory);
422
var testContext = new
TestServiceContext
(LoggerFactory);
455
var testContext = new
TestServiceContext
(LoggerFactory);
487
var testContext = new
TestServiceContext
(LoggerFactory);
533
var testContext = new
TestServiceContext
(LoggerFactory);
571
var testContext = new
TestServiceContext
(LoggerFactory);
615
var testContext = new
TestServiceContext
(LoggerFactory);
660
var testContext = new
TestServiceContext
(LoggerFactory);
714
var testContext = new
TestServiceContext
(LoggerFactory);
770
var testContext = new
TestServiceContext
(LoggerFactory);
825
var testContext = new
TestServiceContext
(LoggerFactory);
867
var testContext = new
TestServiceContext
(LoggerFactory);
914
var testContext = new
TestServiceContext
(LoggerFactory);
955
var testContext = new
TestServiceContext
(LoggerFactory);
995
var testContext = new
TestServiceContext
(LoggerFactory);
1034
var testContext = new
TestServiceContext
(LoggerFactory);
1071
var testContext = new
TestServiceContext
(LoggerFactory);
1109
var testContext = new
TestServiceContext
(LoggerFactory);
1162
}, new
TestServiceContext
(LoggerFactory)))
ConnectionLimitTests.cs (2)
228
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory()));
235
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory()));
ConnectionMiddlewareTests.cs (10)
46
var serviceContext = new
TestServiceContext
(LoggerFactory);
72
var serviceContext = new
TestServiceContext
(LoggerFactory);
102
var serviceContext = new
TestServiceContext
(LoggerFactory);
138
var serviceContext = new
TestServiceContext
(LoggerFactory);
161
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
187
var serviceContext = new
TestServiceContext
(LoggerFactory);
221
var serviceContext = new
TestServiceContext
(LoggerFactory);
250
var serviceContext = new
TestServiceContext
(LoggerFactory);
274
var serviceContext = new
TestServiceContext
(LoggerFactory);
305
var serviceContext = new
TestServiceContext
(LoggerFactory);
DefaultHeaderTests.cs (1)
16
var testContext = new
TestServiceContext
(LoggerFactory)
EventSourceTests.cs (4)
53
new
TestServiceContext
(LoggerFactory)))
155
new
TestServiceContext
(LoggerFactory),
271
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory),
360
var serviceContext = new
TestServiceContext
(LoggerFactory);
Http2\Http2EndToEndTests.cs (1)
40
new
TestServiceContext
(LoggerFactory),
Http2\Http2TestBase.cs (1)
397
_serviceContext = new
TestServiceContext
(LoggerFactory)
Http2\TlsTests.cs (1)
49
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
Http3\Http3TestBase.cs (1)
121
_serviceContext = new
TestServiceContext
(LoggerFactory)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
87
return new WebTransportStream(TestContextFactory.CreateHttp3StreamContext("id", null, new
TestServiceContext
(), features, null, null, null, transport), type);
HttpProtocolSelectionTests.cs (2)
61
var testContext = new
TestServiceContext
(LoggerFactory);
80
var testContext = new
TestServiceContext
(LoggerFactory);
HttpsConnectionMiddlewareTests.cs (37)
58
await using (var server = new TestServer(App, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
92
await 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))
204
await using (var server = new TestServer(App, new
TestServiceContext
(LoggerFactory), listenOptions =>
236
}, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
264
}, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
285
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
315
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
348
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
383
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
418
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
452
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
480
await 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);
844
new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
902
}, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
929
new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
962
new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
995
new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
1043
}, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
1088
}, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
1118
await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1141
await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1179
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1206
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1231
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1256
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1290
await using (var server = new TestServer(app, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions))
1389
await using var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory), ConfigureListenOptions);
HttpsTests.cs (18)
81
var testContext = new
TestServiceContext
(LoggerFactory);
176
new
TestServiceContext
(LoggerFactory),
204
new
TestServiceContext
(LoggerFactory),
248
new
TestServiceContext
(LoggerFactory),
292
new
TestServiceContext
(LoggerFactory),
323
new
TestServiceContext
(LoggerFactory),
349
new
TestServiceContext
(LoggerFactory),
368
var testContext = new
TestServiceContext
(LoggerFactory);
398
var testContext = new
TestServiceContext
(LoggerFactory);
439
var testContext = new
TestServiceContext
(LoggerFactory);
479
var testContext = new
TestServiceContext
(LoggerFactory);
524
var testContext = new
TestServiceContext
(LoggerFactory);
558
var testContext = new
TestServiceContext
(LoggerFactory);
595
var testContext = new
TestServiceContext
(LoggerFactory);
641
var testContext = new
TestServiceContext
(LoggerFactory);
684
new
TestServiceContext
(LoggerFactory),
720
new
TestServiceContext
(LoggerFactory),
756
new
TestServiceContext
(LoggerFactory),
KeepAliveTimeoutTests.cs (6)
30
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
62
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
95
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
140
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
185
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
210
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
KestrelMetricsTests.cs (14)
65
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
124
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
167
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
209
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
274
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
344
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
398
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
458
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
500
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
543
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
612
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
690
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
779
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
858
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)),
LoggingConnectionMiddlewareTests.cs (1)
25
new
TestServiceContext
(LoggerFactory),
MaxRequestBodySizeTests.cs (13)
41
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } }))
88
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } }))
135
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } }))
184
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } }))
228
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
252
new
TestServiceContext
{ ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
300
}, new
TestServiceContext
(LoggerFactory)))
340
}, new
TestServiceContext
(LoggerFactory)))
384
new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
437
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } }))
483
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } }))
546
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } }))
597
new
TestServiceContext
(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
MaxRequestLineSizeTests.cs (1)
85
return new TestServer(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(meterFactory))
RequestBodyTimeoutTests.cs (3)
26
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
102
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
156
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
RequestHeaderLimitsTests.cs (1)
176
return new TestServer(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new
TestServiceContext
(LoggerFactory, metrics: kestrelMetrics)
RequestHeadersTimeoutTests.cs (4)
29
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
58
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
96
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
123
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
RequestTargetProcessingTests.cs (3)
20
var testContext = new
TestServiceContext
(LoggerFactory);
65
var testContext = new
TestServiceContext
(LoggerFactory);
97
var 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)))
285
var testContext = new
TestServiceContext
(LoggerFactory);
341
var testContext = new
TestServiceContext
(LoggerFactory);
378
var testContext = new
TestServiceContext
(LoggerFactory);
412
var testContext = new
TestServiceContext
(LoggerFactory);
450
var testContext = new
TestServiceContext
(LoggerFactory);
491
var testContext = new
TestServiceContext
(LoggerFactory);
534
var testContext = new
TestServiceContext
(LoggerFactory);
579
}, new
TestServiceContext
(LoggerFactory)))
597
}, new
TestServiceContext
(LoggerFactory)))
650
var testContext = new
TestServiceContext
(LoggerFactory);
684
var testContext = new
TestServiceContext
(LoggerFactory);
723
var testContext = new
TestServiceContext
(LoggerFactory);
757
var testContext = new
TestServiceContext
(LoggerFactory);
796
var testContext = new
TestServiceContext
(LoggerFactory);
852
var testContext = new
TestServiceContext
(LoggerFactory);
884
var testContext = new
TestServiceContext
(LoggerFactory);
920
var testContext = new
TestServiceContext
(LoggerFactory);
966
var testContext = new
TestServiceContext
(LoggerFactory);
1013
var testContext = new
TestServiceContext
(LoggerFactory);
1045
var testContext = new
TestServiceContext
(LoggerFactory);
1080
var testContext = new
TestServiceContext
(LoggerFactory);
1119
var testContext = new
TestServiceContext
(LoggerFactory);
1159
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
1235
var testContext = new
TestServiceContext
(LoggerFactory);
1269
var testContext = new
TestServiceContext
(LoggerFactory)
1301
var testContext = new
TestServiceContext
(LoggerFactory);
1353
var testContext = new
TestServiceContext
(LoggerFactory);
1387
var testContext = new
TestServiceContext
(LoggerFactory);
1464
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory)))
1482
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory)))
1523
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory)))
1571
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory)))
1604
}, new
TestServiceContext
(LoggerFactory)))
1630
var serviceContext = new
TestServiceContext
(LoggerFactory);
1714
}, new
TestServiceContext
(LoggerFactory)))
1757
}, new
TestServiceContext
(LoggerFactory)))
1780
var testContext = new
TestServiceContext
(LoggerFactory)
1825
var testContext = new
TestServiceContext
(LoggerFactory)
1867
var testContext = new
TestServiceContext
(LoggerFactory);
1901
var testContext = new
TestServiceContext
(LoggerFactory);
1951
var testContext = new
TestServiceContext
(LoggerFactory);
1995
var testContext = new
TestServiceContext
(LoggerFactory);
2036
var testContext = new
TestServiceContext
(LoggerFactory);
2078
var testContext = new
TestServiceContext
(LoggerFactory);
2133
var testContext = new
TestServiceContext
(LoggerFactory);
2195
var testContext = new
TestServiceContext
(LoggerFactory);
2229
var testContext = new
TestServiceContext
(LoggerFactory);
2261
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2288
var testContext = new
TestServiceContext
(LoggerFactory);
2335
await using (var server = new TestServer(context => Task.CompletedTask, new
TestServiceContext
(LoggerFactory, disableHttp1LineFeedTerminators: false)))
ResponseDrainingTests.cs (1)
25
var testContext = new
TestServiceContext
(LoggerFactory);
ResponseHeaderTests.cs (4)
30
}, new
TestServiceContext
(LoggerFactory));
49
var testContext = new
TestServiceContext
(LoggerFactory);
84
var testContext = new
TestServiceContext
(LoggerFactory);
123
}, new
TestServiceContext
(LoggerFactory));
ResponseTests.cs (114)
51
}, new
TestServiceContext
(LoggerFactory)))
84
}, new
TestServiceContext
(LoggerFactory)))
118
}, new
TestServiceContext
(LoggerFactory)))
147
var 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)))
952
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
996
var serviceContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
1032
var serviceContext = new
TestServiceContext
(LoggerFactory)
1070
var serviceContext = new
TestServiceContext
(LoggerFactory);
1119
}, new
TestServiceContext
(LoggerFactory)))
1176
}, new
TestServiceContext
(LoggerFactory)))
1230
}, new
TestServiceContext
(LoggerFactory)))
1263
var serviceContext = new
TestServiceContext
(LoggerFactory);
1304
var serviceContext = new
TestServiceContext
(LoggerFactory);
1342
var serviceContext = new
TestServiceContext
(LoggerFactory);
1378
var serviceContext = new
TestServiceContext
(LoggerFactory);
1414
}, new
TestServiceContext
(LoggerFactory)))
1443
}, new
TestServiceContext
(LoggerFactory)))
1469
var 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)))
1709
var serviceContext = new
TestServiceContext
(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1751
var serviceContext = new
TestServiceContext
(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1793
var serviceContext = new
TestServiceContext
(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1838
var serviceContext = new
TestServiceContext
(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1897
}, new
TestServiceContext
(LoggerFactory)))
1938
}, new
TestServiceContext
(LoggerFactory)))
1969
}, new
TestServiceContext
(LoggerFactory)))
2004
new
TestServiceContext
(LoggerFactory)))
2040
}, new
TestServiceContext
(LoggerFactory)))
2110
}, new
TestServiceContext
(LoggerFactory)))
2157
}, new
TestServiceContext
(LoggerFactory)))
2200
var serviceContext = new
TestServiceContext
(LoggerFactory);
2224
var testContext = new
TestServiceContext
(LoggerFactory);
2256
var testContext = new
TestServiceContext
(LoggerFactory);
2300
var testContext = new
TestServiceContext
(LoggerFactory);
2323
var testContext = new
TestServiceContext
(LoggerFactory);
2372
var testContext = new
TestServiceContext
(LoggerFactory);
2420
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2475
var testContext = new
TestServiceContext
(LoggerFactory);
2530
var testContext = new
TestServiceContext
(LoggerFactory);
2575
var testContext = new
TestServiceContext
(LoggerFactory);
2623
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2676
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2721
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2764
var testContext = new
TestServiceContext
(LoggerFactory);
2795
var testContext = new
TestServiceContext
(LoggerFactory);
2820
var testContext = new
TestServiceContext
(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2847
var testContext = new
TestServiceContext
(LoggerFactory);
2880
var testContext = new
TestServiceContext
(LoggerFactory);
2930
var testContext = new
TestServiceContext
(LoggerFactory);
2959
var testContext = new
TestServiceContext
(LoggerFactory);
2987
var testContext = new
TestServiceContext
(LoggerFactory);
3017
var testContext = new
TestServiceContext
(LoggerFactory);
3049
var testContext = new
TestServiceContext
(LoggerFactory);
3079
var testContext = new
TestServiceContext
(LoggerFactory);
3107
var testContext = new
TestServiceContext
(LoggerFactory);
3136
var testContext = new
TestServiceContext
(LoggerFactory);
3174
var testContext = new
TestServiceContext
(LoggerFactory);
3204
var testContext = new
TestServiceContext
(LoggerFactory);
3234
var testContext = new
TestServiceContext
(LoggerFactory);
3283
var testContext = new
TestServiceContext
(LoggerFactory);
3316
var testContext = new
TestServiceContext
(LoggerFactory);
3367
var testContext = new
TestServiceContext
(LoggerFactory);
3428
}, new
TestServiceContext
(LoggerFactory)))
3454
}, new
TestServiceContext
(LoggerFactory)))
3472
var testContext = new
TestServiceContext
(LoggerFactory)
3507
var testContext = new
TestServiceContext
(LoggerFactory)
3553
}, new
TestServiceContext
(LoggerFactory)))
3575
var testContext = new
TestServiceContext
(LoggerFactory);
3608
var testContext = new
TestServiceContext
(LoggerFactory);
3638
var testContext = new
TestServiceContext
(LoggerFactory);
3670
var testContext = new
TestServiceContext
(LoggerFactory);
3708
var 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)))
4374
new
TestServiceContext
(LoggerFactory),
4407
new
TestServiceContext
(LoggerFactory),
4444
new
TestServiceContext
(LoggerFactory),
4477
new
TestServiceContext
(LoggerFactory),
4502
new
TestServiceContext
(LoggerFactory),
4542
new
TestServiceContext
(LoggerFactory),
4695
await 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)))
176
new
TestServiceContext
(LoggerFactory)))
206
new
TestServiceContext
(LoggerFactory)))
249
new
TestServiceContext
(LoggerFactory)))
287
}, new
TestServiceContext
(LoggerFactory)))
305
var serviceContext = new
TestServiceContext
(LoggerFactory);
372
}, new
TestServiceContext
(LoggerFactory)))
418
new
TestServiceContext
(LoggerFactory));
444
}, new
TestServiceContext
(LoggerFactory)))
204 references to TestServiceContext
InMemory.FunctionalTests (204)
ChunkedRequestTests.cs (15)
73
var
testContext = new TestServiceContext(LoggerFactory);
102
var
testContext = new TestServiceContext(LoggerFactory);
131
var
testContext = new TestServiceContext(LoggerFactory);
172
var
testContext = new TestServiceContext(LoggerFactory);
489
var
testContext = new TestServiceContext(LoggerFactory);
536
var
testContext = new TestServiceContext(LoggerFactory);
576
var
testContext = new TestServiceContext(LoggerFactory);
660
var
testContext = new TestServiceContext(LoggerFactory);
704
var
testContext = new TestServiceContext(LoggerFactory);
749
var
testContext = new TestServiceContext(LoggerFactory);
855
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
909
var
testContext = new TestServiceContext(LoggerFactory);
965
var
testContext = new TestServiceContext(LoggerFactory);
1015
var
testContext = new TestServiceContext(LoggerFactory);
1078
var
testContext = new TestServiceContext(LoggerFactory);
ChunkedResponseTests.cs (28)
22
var
testContext = new TestServiceContext(LoggerFactory);
57
var
testContext = new TestServiceContext(LoggerFactory);
85
var
testContext = new TestServiceContext(LoggerFactory);
121
var
testContext = new TestServiceContext(LoggerFactory);
157
var
testContext = new TestServiceContext(LoggerFactory);
197
var
testContext = new TestServiceContext(LoggerFactory);
239
var
testContext = new TestServiceContext(LoggerFactory);
276
var
testContext = new TestServiceContext(LoggerFactory);
312
var
testContext = new TestServiceContext(LoggerFactory);
348
var
testContext = new TestServiceContext(LoggerFactory);
392
var
testContext = new TestServiceContext(LoggerFactory);
422
var
testContext = new TestServiceContext(LoggerFactory);
455
var
testContext = new TestServiceContext(LoggerFactory);
487
var
testContext = new TestServiceContext(LoggerFactory);
533
var
testContext = new TestServiceContext(LoggerFactory);
571
var
testContext = new TestServiceContext(LoggerFactory);
615
var
testContext = new TestServiceContext(LoggerFactory);
660
var
testContext = new TestServiceContext(LoggerFactory);
714
var
testContext = new TestServiceContext(LoggerFactory);
770
var
testContext = new TestServiceContext(LoggerFactory);
825
var
testContext = new TestServiceContext(LoggerFactory);
867
var
testContext = new TestServiceContext(LoggerFactory);
914
var
testContext = new TestServiceContext(LoggerFactory);
955
var
testContext = new TestServiceContext(LoggerFactory);
995
var
testContext = new TestServiceContext(LoggerFactory);
1034
var
testContext = new TestServiceContext(LoggerFactory);
1071
var
testContext = new TestServiceContext(LoggerFactory);
1109
var
testContext = new TestServiceContext(LoggerFactory);
ConnectionLimitTests.cs (2)
228
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory()));
235
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory ?? new TestMeterFactory()));
ConnectionMiddlewareTests.cs (10)
46
var
serviceContext = new TestServiceContext(LoggerFactory);
72
var
serviceContext = new TestServiceContext(LoggerFactory);
102
var
serviceContext = new TestServiceContext(LoggerFactory);
138
var
serviceContext = new TestServiceContext(LoggerFactory);
161
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
187
var
serviceContext = new TestServiceContext(LoggerFactory);
221
var
serviceContext = new TestServiceContext(LoggerFactory);
250
var
serviceContext = new TestServiceContext(LoggerFactory);
274
var
serviceContext = new TestServiceContext(LoggerFactory);
305
var
serviceContext = new TestServiceContext(LoggerFactory);
DefaultHeaderTests.cs (1)
16
var
testContext = new TestServiceContext(LoggerFactory)
EventSourceTests.cs (1)
360
var
serviceContext = new TestServiceContext(LoggerFactory);
Http2\Http2TestBase.cs (1)
155
internal
TestServiceContext
_serviceContext;
Http3\Http3TestBase.cs (1)
26
internal
TestServiceContext
_serviceContext;
HttpProtocolSelectionTests.cs (2)
61
var
testContext = new TestServiceContext(LoggerFactory);
80
var
testContext = new TestServiceContext(LoggerFactory);
HttpsTests.cs (9)
81
var
testContext = new TestServiceContext(LoggerFactory);
368
var
testContext = new TestServiceContext(LoggerFactory);
398
var
testContext = new TestServiceContext(LoggerFactory);
439
var
testContext = new TestServiceContext(LoggerFactory);
479
var
testContext = new TestServiceContext(LoggerFactory);
524
var
testContext = new TestServiceContext(LoggerFactory);
558
var
testContext = new TestServiceContext(LoggerFactory);
595
var
testContext = new TestServiceContext(LoggerFactory);
641
var
testContext = new TestServiceContext(LoggerFactory);
KeepAliveTimeoutTests.cs (8)
30
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
62
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
95
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
140
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
185
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
210
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
247
private TestServer CreateServer(
TestServiceContext
context, CancellationToken longRunningCt = default, CancellationToken upgradeCt = default)
291
private async Task ReceiveResponse(InMemoryConnection connection,
TestServiceContext
testContext)
KestrelMetricsTests.cs (10)
65
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
124
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
167
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
209
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
274
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
344
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
398
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
458
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
500
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
612
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
RequestBodyTimeoutTests.cs (3)
26
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
102
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
156
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
RequestHeadersTimeoutTests.cs (7)
29
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
58
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
96
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
123
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
151
private TestServer CreateServer(
TestServiceContext
context)
165
private async Task ReceiveResponse(InMemoryConnection connection,
TestServiceContext
testContext)
179
private async Task ReceiveTimeoutResponse(InMemoryConnection connection,
TestServiceContext
testContext)
RequestTargetProcessingTests.cs (3)
20
var
testContext = new TestServiceContext(LoggerFactory);
65
var
testContext = new TestServiceContext(LoggerFactory);
97
var
testContext = new TestServiceContext(LoggerFactory);
RequestTests.cs (41)
285
var
testContext = new TestServiceContext(LoggerFactory);
341
var
testContext = new TestServiceContext(LoggerFactory);
378
var
testContext = new TestServiceContext(LoggerFactory);
412
var
testContext = new TestServiceContext(LoggerFactory);
450
var
testContext = new TestServiceContext(LoggerFactory);
491
var
testContext = new TestServiceContext(LoggerFactory);
534
var
testContext = new TestServiceContext(LoggerFactory);
540
private static async Task TestAsyncLocalValues(
TestServiceContext
testContext, TestServer server)
650
var
testContext = new TestServiceContext(LoggerFactory);
684
var
testContext = new TestServiceContext(LoggerFactory);
723
var
testContext = new TestServiceContext(LoggerFactory);
757
var
testContext = new TestServiceContext(LoggerFactory);
796
var
testContext = new TestServiceContext(LoggerFactory);
852
var
testContext = new TestServiceContext(LoggerFactory);
884
var
testContext = new TestServiceContext(LoggerFactory);
920
var
testContext = new TestServiceContext(LoggerFactory);
966
var
testContext = new TestServiceContext(LoggerFactory);
1013
var
testContext = new TestServiceContext(LoggerFactory);
1045
var
testContext = new TestServiceContext(LoggerFactory);
1080
var
testContext = new TestServiceContext(LoggerFactory);
1119
var
testContext = new TestServiceContext(LoggerFactory);
1159
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
1235
var
testContext = new TestServiceContext(LoggerFactory);
1269
var
testContext = new TestServiceContext(LoggerFactory)
1301
var
testContext = new TestServiceContext(LoggerFactory);
1353
var
testContext = new TestServiceContext(LoggerFactory);
1387
var
testContext = new TestServiceContext(LoggerFactory);
1630
var
serviceContext = new TestServiceContext(LoggerFactory);
1780
var
testContext = new TestServiceContext(LoggerFactory)
1825
var
testContext = new TestServiceContext(LoggerFactory)
1867
var
testContext = new TestServiceContext(LoggerFactory);
1901
var
testContext = new TestServiceContext(LoggerFactory);
1951
var
testContext = new TestServiceContext(LoggerFactory);
1995
var
testContext = new TestServiceContext(LoggerFactory);
2036
var
testContext = new TestServiceContext(LoggerFactory);
2078
var
testContext = new TestServiceContext(LoggerFactory);
2133
var
testContext = new TestServiceContext(LoggerFactory);
2195
var
testContext = new TestServiceContext(LoggerFactory);
2229
var
testContext = new TestServiceContext(LoggerFactory);
2261
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2288
var
testContext = new TestServiceContext(LoggerFactory);
ResponseDrainingTests.cs (1)
25
var
testContext = new TestServiceContext(LoggerFactory);
ResponseHeaderTests.cs (2)
49
var
testContext = new TestServiceContext(LoggerFactory);
84
var
testContext = new TestServiceContext(LoggerFactory);
ResponseTests.cs (53)
147
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
952
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
996
var
serviceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
1032
var
serviceContext = new TestServiceContext(LoggerFactory)
1070
var
serviceContext = new TestServiceContext(LoggerFactory);
1263
var
serviceContext = new TestServiceContext(LoggerFactory);
1304
var
serviceContext = new TestServiceContext(LoggerFactory);
1342
var
serviceContext = new TestServiceContext(LoggerFactory);
1378
var
serviceContext = new TestServiceContext(LoggerFactory);
1469
var
serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1709
var
serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1751
var
serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1793
var
serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
1838
var
serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } };
2200
var
serviceContext = new TestServiceContext(LoggerFactory);
2224
var
testContext = new TestServiceContext(LoggerFactory);
2256
var
testContext = new TestServiceContext(LoggerFactory);
2300
var
testContext = new TestServiceContext(LoggerFactory);
2323
var
testContext = new TestServiceContext(LoggerFactory);
2372
var
testContext = new TestServiceContext(LoggerFactory);
2420
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2475
var
testContext = new TestServiceContext(LoggerFactory);
2530
var
testContext = new TestServiceContext(LoggerFactory);
2575
var
testContext = new TestServiceContext(LoggerFactory);
2623
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2676
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2721
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2764
var
testContext = new TestServiceContext(LoggerFactory);
2795
var
testContext = new TestServiceContext(LoggerFactory);
2820
var
testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory));
2847
var
testContext = new TestServiceContext(LoggerFactory);
2880
var
testContext = new TestServiceContext(LoggerFactory);
2930
var
testContext = new TestServiceContext(LoggerFactory);
2959
var
testContext = new TestServiceContext(LoggerFactory);
2987
var
testContext = new TestServiceContext(LoggerFactory);
3017
var
testContext = new TestServiceContext(LoggerFactory);
3049
var
testContext = new TestServiceContext(LoggerFactory);
3079
var
testContext = new TestServiceContext(LoggerFactory);
3107
var
testContext = new TestServiceContext(LoggerFactory);
3136
var
testContext = new TestServiceContext(LoggerFactory);
3174
var
testContext = new TestServiceContext(LoggerFactory);
3204
var
testContext = new TestServiceContext(LoggerFactory);
3234
var
testContext = new TestServiceContext(LoggerFactory);
3283
var
testContext = new TestServiceContext(LoggerFactory);
3316
var
testContext = new TestServiceContext(LoggerFactory);
3367
var
testContext = new TestServiceContext(LoggerFactory);
3472
var
testContext = new TestServiceContext(LoggerFactory)
3507
var
testContext = new TestServiceContext(LoggerFactory)
3575
var
testContext = new TestServiceContext(LoggerFactory);
3608
var
testContext = new TestServiceContext(LoggerFactory);
3638
var
testContext = new TestServiceContext(LoggerFactory);
3670
var
testContext = new TestServiceContext(LoggerFactory);
3708
var
testContext = new TestServiceContext(LoggerFactory);
TestTransport\TestServer.cs (5)
43
public TestServer(RequestDelegate app,
TestServiceContext
context)
49
public TestServer(RequestDelegate app,
TestServiceContext
context, ListenOptions listenOptions)
54
public TestServer(RequestDelegate app,
TestServiceContext
context, Action<ListenOptions> configureListenOptions)
69
public TestServer(RequestDelegate app,
TestServiceContext
context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices)
112
public
TestServiceContext
Context { get; }
UpgradeTests.cs (1)
305
var
serviceContext = new TestServiceContext(LoggerFactory);