3 writes to LoggerFactory
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
86
LoggerFactory
= loggerFactory;
Microsoft.AspNetCore.InternalTesting.Tests (1)
LoggedTestXunitTests.cs (1)
111
LoggerFactory
= loggerFactory;
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\VerifiableLoggedTest.cs (1)
17
LoggerFactory
= NullLoggerFactory.Instance;
1642 references to LoggerFactory
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_forwardingProvider.LoggerFactory != test.
LoggerFactory
)
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_forwardingProvider.LoggerFactory != test.
LoggerFactory
)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959
using 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)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_forwardingProvider.LoggerFactory != test.
LoggerFactory
)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959
using 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)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_forwardingProvider.LoggerFactory != test.
LoggerFactory
)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959
using 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)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_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)
30
return IISApplicationDeployerFactory.Create(parameters,
LoggerFactory
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
88
_forwardingProvider.LoggerFactory = test.
LoggerFactory
;
93
if (_forwardingProvider.LoggerFactory != test.
LoggerFactory
)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959
using 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
)))
240
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory))))
262
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory))))
346
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
393
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
459
await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
534
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 (2)
29
LoggerFactory
.AddProvider(mockScopeLoggerProvider);
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 (2)
121
_serviceContext = new TestServiceContext(
LoggerFactory
)
126
Http3Api = new Http3InMemory(_serviceContext, _serviceContext.FakeTimeProvider, _mockTimeoutHandler.Object,
LoggerFactory
);
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))
160
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
198
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
208
await using (var server = new TestServer(App, new TestServiceContext(
LoggerFactory
), listenOptions =>
240
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
268
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
289
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
319
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
352
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
387
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
422
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
456
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
484
await 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);
848
new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
906
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
933
new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
966
new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
999
new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
1047
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
1092
}, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
1122
await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1145
await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1183
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1210
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1235
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1260
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1294
await using (var server = new TestServer(app, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions))
1393
await using var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
), ConfigureListenOptions);
HttpsTests.cs (30)
79
LoggerFactory
.AddProvider(loggerProvider);
81
var testContext = new TestServiceContext(
LoggerFactory
);
173
LoggerFactory
.AddProvider(loggerProvider);
176
new TestServiceContext(
LoggerFactory
),
201
LoggerFactory
.AddProvider(loggerProvider);
204
new TestServiceContext(
LoggerFactory
),
230
LoggerFactory
.AddProvider(loggerProvider);
248
new TestServiceContext(
LoggerFactory
),
277
LoggerFactory
.AddProvider(loggerProvider);
292
new TestServiceContext(
LoggerFactory
),
320
LoggerFactory
.AddProvider(loggerProvider);
323
new TestServiceContext(
LoggerFactory
),
346
LoggerFactory
.AddProvider(loggerProvider);
349
new TestServiceContext(
LoggerFactory
),
366
LoggerFactory
.AddProvider(loggerProvider);
368
var testContext = new TestServiceContext(
LoggerFactory
);
396
LoggerFactory
.AddProvider(loggerProvider);
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
);
680
LoggerFactory
.AddProvider(loggerProvider);
684
new TestServiceContext(
LoggerFactory
),
714
LoggerFactory
.AddProvider(loggerProvider);
720
new TestServiceContext(
LoggerFactory
),
750
LoggerFactory
.AddProvider(loggerProvider);
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 (12)
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 } } }))
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 (119)
51
}, new TestServiceContext(
LoggerFactory
)))
84
}, new TestServiceContext(
LoggerFactory
)))
118
}, new TestServiceContext(
LoggerFactory
)))
147
var serviceContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory));
282
LoggerFactory
,
296
LoggerFactory
,
311
LoggerFactory
,
326
LoggerFactory
,
341
LoggerFactory
,
356
LoggerFactory
,
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
),
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42
LoggerFactory
.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
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
)))
Interop.FunctionalTests (4)
Http2\Http2RequestTests.cs (1)
229
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
Http3\Http3RequestTests.cs (3)
131
LoggerFactory
.AddProvider(mockScopeLoggerProvider);
279
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
972
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
Microsoft.AspNetCore.BrowserTesting (2)
BrowserTestBase.cs (2)
30
BrowserManager = await BrowserManager.CreateAsync(_config,
LoggerFactory
);
31
BrowserContextInfo = new ContextInformation(
LoggerFactory
);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
ConcurrencyLimiterEventSourceTests.cs (2)
51
using var eventListener = new TestCounterListener(
LoggerFactory
, eventSource.Name, [
92
using var eventListener = new TestCounterListener(
LoggerFactory
, eventSource.Name, [
Microsoft.AspNetCore.Diagnostics.Tests (3)
DeveloperExceptionPageMiddlewareTest.cs (1)
585
s.AddSingleton(
LoggerFactory
);
ExceptionHandlerMiddlewareTest.cs (2)
312
s.AddSingleton(
LoggerFactory
);
375
s.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
162
using (var deployer = IISApplicationDeployerFactory.Create(deploymentParameters,
LoggerFactory
))
219
using (var deployer = IISApplicationDeployerFactory.Create(deploymentParameters,
LoggerFactory
))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ServerStreamingServerCallHandlerTests.cs (1)
354
LoggerFactory
,
UnaryServerCallHandlerTests.cs (1)
1858
LoggerFactory
,
Microsoft.AspNetCore.Hosting.Tests (4)
HostingApplicationDiagnosticsTests.cs (3)
32
using var eventListener = new TestCounterListener(
LoggerFactory
, hostingEventSource.Name,
56
var logger =
LoggerFactory
.CreateLogger<HostingApplication>();
148
using var eventListener = new TestCounterListener(
LoggerFactory
, hostingEventSource.Name,
Internal\HostingEventSourceTests.cs (1)
186
using var eventListener = new TestCounterListener(
LoggerFactory
, hostingEventSource.Name,
Microsoft.AspNetCore.Http.Connections.Tests (186)
HttpConnectionDispatcherTests.cs (152)
59
var manager = CreateConnectionManager(
LoggerFactory
);
60
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
83
var manager = CreateConnectionManager(
LoggerFactory
);
84
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
109
var manager = CreateConnectionManager(
LoggerFactory
);
110
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
146
var manager = CreateConnectionManager(
LoggerFactory
);
147
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
174
var manager = CreateConnectionManager(
LoggerFactory
);
175
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
204
var manager = CreateConnectionManager(
LoggerFactory
);
205
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
259
var manager = CreateConnectionManager(
LoggerFactory
);
260
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
294
var manager = CreateConnectionManager(
LoggerFactory
);
295
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
337
var manager = CreateConnectionManager(
LoggerFactory
);
338
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
373
var manager = CreateConnectionManager(
LoggerFactory
);
374
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
411
var manager = CreateConnectionManager(
LoggerFactory
);
412
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
450
var manager = CreateConnectionManager(
LoggerFactory
);
451
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
512
var manager = CreateConnectionManager(
LoggerFactory
, disconnectTimeout);
513
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
577
var manager = CreateConnectionManager(
LoggerFactory
);
578
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
627
var manager = CreateConnectionManager(
LoggerFactory
);
628
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
713
var manager = CreateConnectionManager(
LoggerFactory
);
717
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
746
var manager = CreateConnectionManager(
LoggerFactory
);
747
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
848
var manager = CreateConnectionManager(
LoggerFactory
);
849
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
888
var manager = CreateConnectionManager(
LoggerFactory
);
889
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
925
var manager = CreateConnectionManager(
LoggerFactory
);
926
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
958
await CheckTransportSupported(HttpTransportType.LongPolling, transportType, status,
LoggerFactory
);
970
await CheckTransportSupported(HttpTransportType.ServerSentEvents, transportType, status,
LoggerFactory
);
982
await CheckTransportSupported(HttpTransportType.WebSockets, transportType, status,
LoggerFactory
);
992
await CheckTransportSupported(HttpTransportType.WebSockets | HttpTransportType.ServerSentEvents, transportType, status,
LoggerFactory
);
1001
var manager = CreateConnectionManager(
LoggerFactory
);
1004
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1035
var manager = CreateConnectionManager(
LoggerFactory
);
1038
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1061
var manager = CreateConnectionManager(
LoggerFactory
);
1065
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1098
var manager = CreateConnectionManager(
LoggerFactory
, metrics);
1101
var dispatcher = CreateDispatcher(manager,
LoggerFactory
, metrics);
1134
var manager = CreateConnectionManager(
LoggerFactory
, metrics);
1137
var dispatcher = CreateDispatcher(manager,
LoggerFactory
, metrics);
1184
var manager = CreateConnectionManager(
LoggerFactory
);
1188
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1281
var manager = CreateConnectionManager(
LoggerFactory
);
1284
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1322
var manager = CreateConnectionManager(
LoggerFactory
);
1324
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1366
var manager = CreateConnectionManager(
LoggerFactory
);
1368
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1404
var manager = CreateConnectionManager(
LoggerFactory
);
1408
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1434
var manager = CreateConnectionManager(
LoggerFactory
);
1437
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1479
var manager = CreateConnectionManager(
LoggerFactory
);
1483
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1544
var manager = CreateConnectionManager(
LoggerFactory
);
1548
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1608
var manager = CreateConnectionManager(
LoggerFactory
);
1612
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1639
var manager = CreateConnectionManager(
LoggerFactory
);
1643
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1674
var manager = CreateConnectionManager(
LoggerFactory
);
1677
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1708
var manager = CreateConnectionManager(
LoggerFactory
);
1712
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1750
var manager = CreateConnectionManager(
LoggerFactory
);
1754
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1797
var manager = CreateConnectionManager(
LoggerFactory
);
1800
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1829
var manager = CreateConnectionManager(
LoggerFactory
);
1832
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1881
var manager = CreateConnectionManager(
LoggerFactory
);
1884
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1936
var manager = CreateConnectionManager(
LoggerFactory
);
1939
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
1981
var manager = CreateConnectionManager(
LoggerFactory
);
1985
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2013
var manager = CreateConnectionManager(
LoggerFactory
);
2017
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2054
var manager = CreateConnectionManager(
LoggerFactory
);
2058
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2107
var manager = CreateConnectionManager(
LoggerFactory
);
2111
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2155
var manager = CreateConnectionManager(
LoggerFactory
);
2164
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2211
var manager = CreateConnectionManager(
LoggerFactory
);
2212
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2262
var manager = CreateConnectionManager(
LoggerFactory
);
2263
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2288
var manager = CreateConnectionManager(
LoggerFactory
);
2289
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2317
var manager = CreateConnectionManager(
LoggerFactory
);
2318
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2346
var manager = CreateConnectionManager(
LoggerFactory
);
2347
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2375
var manager = CreateConnectionManager(
LoggerFactory
);
2382
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2450
var manager = CreateConnectionManager(
LoggerFactory
);
2456
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2542
var manager = CreateConnectionManager(
LoggerFactory
);
2552
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2605
var manager = CreateConnectionManager(
LoggerFactory
);
2614
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2662
var manager = CreateConnectionManager(
LoggerFactory
);
2671
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2726
var manager = CreateConnectionManager(
LoggerFactory
);
2730
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2761
var manager = CreateConnectionManager(
LoggerFactory
);
2770
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2818
var manager = CreateConnectionManager(
LoggerFactory
);
2820
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2844
var manager = CreateConnectionManager(
LoggerFactory
);
2847
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2874
var manager = CreateConnectionManager(
LoggerFactory
);
2877
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2922
var manager = CreateConnectionManager(
LoggerFactory
);
2924
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
2955
var manager = CreateConnectionManager(
LoggerFactory
);
2959
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
3006
var manager = CreateConnectionManager(
LoggerFactory
);
3010
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
3061
var manager = CreateConnectionManager(
LoggerFactory
);
3065
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
3108
var manager = CreateConnectionManager(
LoggerFactory
);
3111
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
3144
var manager = CreateConnectionManager(
LoggerFactory
, TimeSpan.FromSeconds(5));
3145
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
3247
},
LoggerFactory
);
3274
LoggerFactory
);
3310
},
LoggerFactory
);
3336
LoggerFactory
);
3409
},
LoggerFactory
);
3436
LoggerFactory
);
3459
},
LoggerFactory
);
3475
LoggerFactory
);
3502
o.AddProvider(new ForwardingLoggerProvider(
LoggerFactory
));
3549
LoggerFactory
);
3572
var manager = CreateConnectionManager(
LoggerFactory
, TimeSpan.FromSeconds(5));
3573
var dispatcher = CreateDispatcher(manager,
LoggerFactory
);
HttpConnectionManagerTests.cs (15)
47
var connectionManager = CreateConnectionManager(
LoggerFactory
);
79
var connectionManager = CreateConnectionManager(
LoggerFactory
);
147
var connectionManager = CreateConnectionManager(
LoggerFactory
);
162
var connectionManager = CreateConnectionManager(
LoggerFactory
);
181
var connectionManager = CreateConnectionManager(
LoggerFactory
);
203
var connectionManager = CreateConnectionManager(
LoggerFactory
);
224
var connectionManager = CreateConnectionManager(
LoggerFactory
);
246
var connectionManager = CreateConnectionManager(
LoggerFactory
);
288
var connectionManager = CreateConnectionManager(
LoggerFactory
);
311
var connectionManager = CreateConnectionManager(
LoggerFactory
);
338
var connectionManager = CreateConnectionManager(
LoggerFactory
);
362
var connectionManager = CreateConnectionManager(
LoggerFactory
);
378
var connectionManager = CreateConnectionManager(
LoggerFactory
);
396
var connectionManager = CreateConnectionManager(
LoggerFactory
, appLifetime);
417
var connectionManager = CreateConnectionManager(
LoggerFactory
, appLifetime);
LongPollingTests.cs (4)
30
var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input,
LoggerFactory
);
50
var poll = new LongPollingServerTransport(timeoutToken, connection.Application.Input,
LoggerFactory
);
71
var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input,
LoggerFactory
);
94
var poll = new LongPollingServerTransport(CancellationToken.None, connection.Application.Input,
LoggerFactory
);
ServerSentEventsTests.cs (5)
28
var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty,
LoggerFactory
);
51
var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: connection.ConnectionId,
LoggerFactory
);
72
var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty,
LoggerFactory
);
94
var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty,
LoggerFactory
);
120
var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty,
LoggerFactory
);
WebSocketsTests.cs (10)
38
var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection,
LoggerFactory
);
86
var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection,
LoggerFactory
);
113
return new HttpConnectionContext("foo", connectionToken: null,
LoggerFactory
.CreateLogger(loggerName ?? nameof(HttpConnectionContext)),
146
var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection,
LoggerFactory
);
179
var ws = new WebSocketsServerTransport(new WebSocketOptions(), connection.Application, connection,
LoggerFactory
);
215
var ws = new WebSocketsServerTransport(options, connection.Application, connection,
LoggerFactory
);
249
var ws = new WebSocketsServerTransport(options, connection.Application, connection,
LoggerFactory
);
284
var ws = new WebSocketsServerTransport(options, connection.Application, connection,
LoggerFactory
);
323
var ws = new WebSocketsServerTransport(options, connection.Application, connection,
LoggerFactory
);
370
var ws = new WebSocketsServerTransport(options, connection.Application, connection,
LoggerFactory
);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateFactoryTests.cs (5)
1173
serviceCollection.AddSingleton(
LoggerFactory
);
1343
.AddSingleton(
LoggerFactory
)
1375
.AddSingleton(
LoggerFactory
)
1404
.AddSingleton(
LoggerFactory
)
1737
serviceCollection.AddSingleton(
LoggerFactory
);
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
211
serviceCollection.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)
211
serviceCollection.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.Http.Tests (2)
ApplicationBuilderTests.cs (2)
83
services.AddSingleton(
LoggerFactory
);
109
services.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.HttpLogging.Tests (8)
HttpLoggingMiddlewareTests.cs (8)
44
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
54
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
74
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
84
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
94
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
1917
services.AddSingleton(
LoggerFactory
);
1982
LoggerFactory
.CreateLogger<HttpLoggingMiddleware>(),
2023
services.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1286
builder.Services.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.InternalTesting (2)
LoggedTest\LoggedTest.cs (1)
22
LoggerFactory
.AddProvider(new TestLoggerProvider(TestSink));
LoggedTest\LoggedTestBase.cs (1)
45
public void AddTestLogging(IServiceCollection services) => services.AddSingleton(
LoggerFactory
);
Microsoft.AspNetCore.InternalTesting.Tests (11)
AssemblyTestLogTests.cs (6)
41
var logger =
LoggerFactory
.CreateLogger("Test");
124
var logger =
LoggerFactory
.CreateLogger("Test");
183
var logger =
LoggerFactory
.CreateLogger("Test");
229
var logger =
LoggerFactory
.CreateLogger("Test");
276
var logger =
LoggerFactory
.CreateLogger("Test");
318
var logger =
LoggerFactory
.CreateLogger("Test");
LoggedTestXunitTests.cs (5)
28
Assert.NotNull(
LoggerFactory
);
38
Assert.NotNull(
LoggerFactory
);
49
Assert.NotNull(
LoggerFactory
);
59
Assert.NotNull(
LoggerFactory
);
122
Assert.NotNull(
LoggerFactory
);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonInputFormatterTest.cs (1)
191
LoggerFactory
.CreateLogger<SystemTextJsonInputFormatter>());
Microsoft.AspNetCore.Mvc.FunctionalTests (99)
AntiforgeryAuthTests.cs (1)
18
Factory = new MvcTestFixture<Startup>(
LoggerFactory
);
AntiforgeryTests.cs (1)
17
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
ApiBehaviorTest.cs (2)
26
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
428
await using var factory = new MvcTestFixture<BasicWebSite.StartupWithCustomInvalidModelStateFactory>(
LoggerFactory
)
ApiExplorerTest.cs (1)
22
Factory = new MvcTestFixture<ApiExplorerWebSite.Startup>(
LoggerFactory
);
ApplicationModelTest.cs (1)
17
Factory = new MvcTestFixture<ApplicationModelWebSite.Startup>(
LoggerFactory
);
AsyncActionsTests.cs (1)
17
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
AsyncDisposalTest.cs (1)
22
Factory = new MvcTestFixture<BasicWebSite.Startup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
AsyncEnumerableTestBase.cs (1)
20
Factory = new MvcTestFixture<StartupWithJsonFormatter>(
LoggerFactory
);
AuthMiddlewareAndFilterTestBase.cs (1)
20
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
AuthMiddlewareUsingRequireAuthTest.cs (1)
19
Factory = new MvcTestFixture<SecurityWebSite.StartupWithRequireAuth>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
BasicTests.cs (1)
28
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
ClientValidationOptionsTests.cs (1)
16
Factory = new MvcTestFixture<RazorPagesWebSite.Startup>(
LoggerFactory
);
CompilationOptionsTests.cs (1)
18
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
ComponentRenderingFunctionalTests.cs (1)
22
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
ConsumesAttributeTestsBase.cs (1)
24
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
ContentNegotiationTest.cs (1)
24
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
ControllerEndpointFiltersTest.cs (1)
23
Factory = new MvcTestFixture<StartupForEndpointFilters>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
ControllerFromServicesTests.cs (1)
17
Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(
LoggerFactory
);
CorsTestsBase.cs (1)
20
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
CustomValueProviderTest.cs (1)
23
Factory = new MvcTestFixture<BasicWebSite.StartupWithCustomValueProvider>(
LoggerFactory
)
DataAnnotationTests.cs (1)
20
Factory = new MvcTestFixture<StartupDataAnnotations>(
LoggerFactory
)
DefaultValuesTest.cs (1)
16
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
DirectivesTest.cs (1)
16
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
DoNotRespectBrowserAcceptHeaderTests.cs (1)
25
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
ErrorPageTests.cs (1)
32
Factory = new MvcTestFixture<ErrorPageMiddlewareWebSite.Startup>(
LoggerFactory
)
FileResultTests.cs (1)
20
Factory = new MvcTestFixture<FilesWebSite.Startup>(
LoggerFactory
);
FiltersTest.cs (1)
18
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
FlushPointTest.cs (1)
16
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
FormFileUploadTest.cs (1)
17
Factory = new MvcTestFixture<FilesWebSite.Startup>(
LoggerFactory
);
GlobalAuthorizationFilterTestBase.cs (1)
19
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
HtmlGenerationTest.cs (2)
25
Factory = new MvcTestFixture<HtmlGenerationWebSite.Startup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
26
EncodedFactory = new MvcEncodedTestFixture<HtmlGenerationWebSite.Startup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
HtmlGenerationWithCultureTest.cs (2)
27
Factory = new MvcTestFixture<StartupWithCultureReplace>(
LoggerFactory
)
142
.ConfigureTestServices(services => services.AddSingleton(
LoggerFactory
)))
HtmlHelperOptionsTest.cs (1)
19
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
HttpActionResultTests.cs (1)
19
Factory = new MvcTestFixture<BasicWebSite.StartupWithSystemTextJson>(
LoggerFactory
);
InputFormatterTests.cs (1)
24
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
InputObjectValidationTests.cs (1)
24
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
InputParentValidationTests.cs (1)
28
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(builder => builder.UseStartup<TStartup>());
InputValidationTests.cs (1)
19
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
JsonInputFormatterTestBase.cs (1)
26
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
JsonOutputFormatterTestBase.cs (1)
27
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
JsonPatchInputFormatterTest.cs (1)
20
Factory = new MvcTestFixture<Startup>(
LoggerFactory
);
JsonResultWithNewtonsoftJsonTest.cs (1)
23
Factory = new MvcTestFixture<BasicWebSite.StartupWithNewtonsoftJson>(
LoggerFactory
)
JsonResultWithSystemTextJsonTest.cs (1)
23
Factory = new MvcTestFixture<BasicWebSite.StartupWithSystemTextJson>(
LoggerFactory
)
KeyedServicesTests.cs (1)
16
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
LinkGenerationTests.cs (1)
27
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
LinkGeneratorTest.cs (1)
23
Factory = new MvcTestFixture<RoutingWebSite.StartupForLinkGenerator>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder)
LinkParserTest.cs (1)
24
Factory = new MvcTestFixture<RoutingWebSite.StartupForLinkGenerator>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
MvcSandboxTest.cs (1)
17
Factory = new MvcTestFixture<MvcSandbox.Startup>(
LoggerFactory
);
NonNullableReferenceTypesTest.cs (1)
18
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
OutputFormatterTest.cs (1)
18
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
PageAsyncDisposalTest.cs (1)
25
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorBuildTest.cs (1)
27
Factory = new MvcTestFixture<RazorBuildWebSite.Startup>(
LoggerFactory
)
RazorPageModelTest.cs (1)
22
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesNamespaceTest.cs (1)
21
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesTest.cs (1)
29
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesViewSearchTest.cs (1)
21
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RazorPagesWithBasePathTest.cs (1)
18
Factory = new MvcTestFixture<RazorPagesWebSite.StartupWithBasePath>(
LoggerFactory
);
RazorPagesWithEndpointRoutingTest.cs (1)
17
Factory = new MvcTestFixture<RazorPagesWebSite.Startup>(
LoggerFactory
);
RazorRuntimeCompilationHostingStartupTest.cs (1)
24
Factory = new MvcTestFixture<RazorBuildWebSite.StartupWithHostingStartup>(
LoggerFactory
)
RazorViewLocationSpecificationTest.cs (1)
19
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
ReadFromDisconnectedClientTest.cs (1)
25
Factory = new MvcTestFixture<BasicWebSite.StartupWhereReadingRequestBodyThrows>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RemoteAttributeValidationTest.cs (1)
20
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
RequestFormLimitsTest.cs (1)
22
Factory = new MvcTestFixture<BasicWebSite.StartupRequestLimitSize>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RequestServicesTestBase.cs (1)
25
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RequestSizeLimitTest.cs (1)
23
Factory = new MvcTestFixture<BasicWebSite.StartupRequestLimitSize>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RespectBrowserAcceptHeaderTests.cs (1)
26
Factory = new MvcTestFixture<FormatterWebSite.StartupWithRespectBrowserAcceptHeader>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingAcrossPipelineBranchesTest.cs (1)
23
Factory = new MvcTestFixture<RoutingWebSite.StartupRoutingDifferentBranches>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingDynamicOrderTest.cs (1)
23
Factory = new MvcTestFixture<RoutingWebSite.StartupForDynamic>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingDynamicTest.cs (1)
22
Factory = new MvcTestFixture<RoutingWebSite.StartupForDynamic>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingFallbackTest.cs (1)
23
Factory = new MvcTestFixture<RoutingWebSite.StartupForFallback>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingGroupsTest.cs (1)
24
Factory = new MvcTestFixture<StartupForGroups>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingGroupsWithMetadataTest.cs (1)
23
Factory = new MvcTestFixture<StartupForRouteGroupsWithMetadata>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingTestsBase.cs (1)
23
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
RoutingWithoutRazorPagesTestsBase.cs (1)
23
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
SerializableErrorTests.cs (1)
20
Factory = new MvcTestFixture<XmlFormattersWebSite.Startup>(
LoggerFactory
);
SimpleTests.cs (1)
16
Factory = new MvcTestFixture<SimpleWebSite.Startup>(
LoggerFactory
);
SimpleWithWebApplicationBuilderExceptionTests.cs (1)
15
Factory = new MvcTestFixture<SimpleWebSiteWithWebApplicationBuilderException.Program>(
LoggerFactory
);
SimpleWithWebApplicationBuilderTests.cs (1)
26
Factory = new MvcTestFixture<SimpleWebSiteWithWebApplicationBuilder.Program>(
LoggerFactory
);
StreamOutputFormatterTest.cs (1)
16
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
TagHelperComponentTagHelperTest.cs (1)
19
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
TagHelpersFromServicesTest.cs (1)
16
Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(
LoggerFactory
);
TagHelpersTest.cs (2)
25
Factory = new MvcTestFixture<TagHelpersWebSite.Startup>(
LoggerFactory
);
26
EncodedFactory = new MvcEncodedTestFixture<TagHelpersWebSite.Startup>(
LoggerFactory
);
TempDataInCookiesUsingCookieConsentTest.cs (1)
20
Factory = new MvcTestFixture<BasicWebSite.StartupWithCookieTempDataProviderAndCookieConsent>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
TempDataPropertyTest.cs (1)
18
Factory = new MvcTestFixture<BasicWebSite.StartupWithoutEndpointRouting>(
LoggerFactory
);
TempDataTestBase.cs (1)
20
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
UrlResolutionTest.cs (2)
19
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
20
EncodedFactory = new MvcEncodedTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
VersioningTestsBase.cs (1)
23
Factory = new MvcTestFixture<TStartup>(
LoggerFactory
).WithWebHostBuilder(ConfigureWebHostBuilder);
ViewComponentFromServicesTests.cs (1)
17
Factory = new MvcTestFixture<ControllersFromServicesWebSite.Startup>(
LoggerFactory
);
ViewEngineTests.cs (1)
22
Factory = new MvcTestFixture<RazorWebSite.Startup>(
LoggerFactory
);
XmlDataContractSerializerFormattersWrappingTest.cs (1)
23
Factory = new MvcTestFixture<Startup>(
LoggerFactory
);
XmlDataContractSerializerInputFormatterTest.cs (1)
21
Factory = new MvcTestFixture<Startup>(
LoggerFactory
);
XmlOutputFormatterTests.cs (1)
20
Factory = new MvcTestFixture<FormatterWebSite.Startup>(
LoggerFactory
);
XmlSerializerFormattersWrappingTest.cs (1)
24
Factory = new MvcTestFixture<Startup>(
LoggerFactory
);
XmlSerializerInputFormatterTests.cs (1)
20
Factory = new MvcTestFixture<XmlFormattersWebSite.Startup>(
LoggerFactory
);
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
973
serviceCollection.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)
24
using (var server = Utilities.CreatePump(
LoggerFactory
))
46
using (var server = Utilities.CreatePump(
LoggerFactory
))
63
using (var server = Utilities.CreatePump(
LoggerFactory
))
84
using (var server = Utilities.CreatePump(
LoggerFactory
))
101
using (var server = Utilities.CreatePump(
LoggerFactory
))
115
using (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
);
603
var dynamicServer = Utilities.CreateHttpServerReturnRoot("/", out root, app,
LoggerFactory
);
606
var 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
))
340
using (Utilities.CreateHttpServer(out address, httpContext => Task.FromResult(0),
LoggerFactory
)) { }
342
var server = Utilities.CreatePump(
LoggerFactory
);
362
}, httpContext => Task.FromResult(0),
LoggerFactory
))
384
using (var server = Utilities.CreatePump(
LoggerFactory
))
401
}, httpContext => Task.FromResult(0),
LoggerFactory
))
426
},
LoggerFactory
))
460
},
LoggerFactory
))
497
},
LoggerFactory
))
534
},
LoggerFactory
))
573
},
LoggerFactory
))
592
using (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)
25
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
75
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
125
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
175
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
215
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
242
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
276
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
316
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
347
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
407
var logger =
LoggerFactory
.CreateLogger<CertificatePathWatcher>();
ConnectionDispatcherTests.cs (2)
60
var serviceContext = new TestServiceContext(
LoggerFactory
);
97
var serviceContext = new TestServiceContext(
LoggerFactory
);
HeartbeatTests.cs (4)
30
var kestrelTrace = new KestrelTrace(
LoggerFactory
);
106
var kestrelTrace = new KestrelTrace(
LoggerFactory
);
149
var kestrelTrace = new KestrelTrace(
LoggerFactory
);
187
var kestrelTrace = new KestrelTrace(
LoggerFactory
);
Http1\Http1ConnectionTestsBase.cs (1)
48
_serviceContext = new TestServiceContext(
LoggerFactory
)
HttpConnectionManagerTests.cs (1)
21
var trace = new KestrelTrace(
LoggerFactory
);
HttpParserTests.cs (1)
20
private KestrelTrace CreateEnabledTrace() => new KestrelTrace(
LoggerFactory
);
MessageBodyTests.cs (3)
760
using (var input = new TestInput(log: new KestrelTrace(
LoggerFactory
), timeoutControl: mockTimeoutControl.Object))
823
using (var input = new TestInput(log: new KestrelTrace(
LoggerFactory
)))
860
using (var input = new TestInput(log: new KestrelTrace(
LoggerFactory
)))
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42
LoggerFactory
.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (56)
QuicConnectionContextTests.cs (20)
29
LoggerFactory
,
53
LoggerFactory
,
80
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
121
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
151
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
193
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
243
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
288
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
314
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
357
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
402
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
449
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
451
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
506
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
509
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
, timeProvider);
561
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
563
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
665
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
668
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
747
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
QuicConnectionListenerTests.cs (17)
32
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
46
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
69
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
115
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
, clientCertificateRequired: true);
153
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
155
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
, clientCertificateRequired: true);
177
LoggerFactory
);
196
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
214
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
250
LoggerFactory
);
275
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
280
await Assert.ThrowsAsync<AddressInUseException>(() => QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
, port: port));
295
await Assert.ThrowsAsync<AddressInUseException>(() => QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
, port: port));
314
LoggerFactory
);
349
LoggerFactory
);
391
LoggerFactory
);
445
LoggerFactory
);
QuicStreamContextTests.cs (17)
33
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
35
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
59
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
105
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
107
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
167
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
175
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
233
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
255
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
299
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
333
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
372
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
403
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
444
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
488
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
538
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
565
await using var connectionListener = await QuicTestHelpers.CreateConnectionListenerFactory(
LoggerFactory
);
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42
LoggerFactory
.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
WebHostTests.cs (1)
46
using var httpEventSource = new HttpEventSourceListener(
LoggerFactory
);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (158)
HubConnectionTests.cs (137)
96
.WithLoggerFactory(
LoggerFactory
)
112
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
135
.WithLoggerFactory(
LoggerFactory
)
148
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
165
.WithLoggerFactory(
LoggerFactory
)
177
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
195
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
206
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
223
var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, protocol,
LoggerFactory
);
234
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
253
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
266
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
284
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
301
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
319
var logger =
LoggerFactory
.CreateLogger<HubConnectionTests>();
322
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
364
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
382
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
393
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
413
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
433
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
451
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
468
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
486
var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.WebSockets, protocol,
LoggerFactory
);
514
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
532
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
549
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
567
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
586
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
604
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
628
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
652
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
670
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
690
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
704
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
722
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
746
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} during test: {Message}", ex.GetType().Name, ex.Message);
764
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
776
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
794
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
813
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
831
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
860
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
878
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
913
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
931
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
954
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
972
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
995
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1013
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
1025
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1048
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
);
1059
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1076
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1086
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1103
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1113
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1130
var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, hubProtocol,
LoggerFactory
);
1140
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1157
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1167
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1184
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1195
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1212
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1223
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1240
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1251
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1268
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1278
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1295
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1305
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1322
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1332
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1362
var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.WebSockets, protocol,
LoggerFactory
);
1381
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1416
var connection = CreateHubConnection(server.Url, "/default", HttpTransportType.LongPolling, protocol,
LoggerFactory
);
1435
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1459
var connection = CreateHubConnection(server.Url, hubPath, transportType, hubProtocol,
LoggerFactory
);
1484
.WithLoggerFactory(
LoggerFactory
)
1498
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1520
.WithLoggerFactory(
LoggerFactory
)
1542
.WithLoggerFactory(
LoggerFactory
)
1553
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1570
.WithLoggerFactory(
LoggerFactory
)
1585
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1601
.WithLoggerFactory(
LoggerFactory
)
1627
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1643
.WithLoggerFactory(
LoggerFactory
)
1662
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1678
.WithLoggerFactory(
LoggerFactory
)
1697
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1718
.WithLoggerFactory(
LoggerFactory
)
1732
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1760
.WithLoggerFactory(
LoggerFactory
)
1783
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1818
.WithLoggerFactory(
LoggerFactory
)
1842
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1878
.WithLoggerFactory(
LoggerFactory
)
1921
.WithLoggerFactory(
LoggerFactory
)
1950
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
1974
.WithLoggerFactory(
LoggerFactory
)
1985
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2001
.WithLoggerFactory(
LoggerFactory
)
2021
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2037
.WithLoggerFactory(
LoggerFactory
)
2052
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2068
.WithLoggerFactory(
LoggerFactory
)
2082
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2099
.WithLoggerFactory(
LoggerFactory
)
2149
loggerFactory:
LoggerFactory
,
2185
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2207
.WithLoggerFactory(
LoggerFactory
)
2245
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2267
.WithLoggerFactory(
LoggerFactory
)
2311
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2328
await using var connection = CreateHubConnection(server.Url, "/default", transportType, HubProtocols["json"],
LoggerFactory
);
2351
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2378
.WithLoggerFactory(
LoggerFactory
)
2394
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2431
.WithLoggerFactory(
LoggerFactory
)
2447
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2474
.WithLoggerFactory(
LoggerFactory
)
2490
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2524
.WithLoggerFactory(
LoggerFactory
)
2540
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2562
.WithLoggerFactory(
LoggerFactory
)
2599
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2620
.WithLoggerFactory(
LoggerFactory
)
2668
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2690
.WithLoggerFactory(
LoggerFactory
)
2741
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2759
.WithLoggerFactory(
LoggerFactory
)
2793
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2811
.WithLoggerFactory(
LoggerFactory
)
2835
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
2865
.WithLoggerFactory(
LoggerFactory
)
2913
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubConnectionTests.Tracing.cs (12)
59
.WithLoggerFactory(
LoggerFactory
)
120
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
253
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
, activitySourceContainer: clientSourceContainer);
291
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
397
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
, activitySourceContainer: clientSourceContainer);
421
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
500
var connection = CreateHubConnection(server.Url, path, transportType, protocol,
LoggerFactory
, activitySourceContainer: clientSourceContainer);
518
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
597
.WithLoggerFactory(
LoggerFactory
)
613
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
687
.WithLoggerFactory(
LoggerFactory
)
712
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubProtocolVersionTests.cs (9)
42
.WithLoggerFactory(
LoggerFactory
)
57
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
74
.WithLoggerFactory(
LoggerFactory
)
90
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
112
LoggerFactory
);
119
.WithLoggerFactory(
LoggerFactory
);
150
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
173
.WithLoggerFactory(
LoggerFactory
)
187
LoggerFactory
.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
Microsoft.AspNetCore.SignalR.Client.Tests (78)
HttpConnectionTests.ConnectionLifecycle.cs (15)
29
await WithConnectionAsync(CreateConnection(loggerFactory:
LoggerFactory
), async (connection) =>
43
CreateConnection(loggerFactory:
LoggerFactory
, transport: new TestTransport(onTransportStart: SyncPoint.Create(out var syncPoint))),
63
CreateConnection(loggerFactory:
LoggerFactory
),
118
loggerFactory:
LoggerFactory
,
152
loggerFactory:
LoggerFactory
,
179
CreateConnection(loggerFactory:
LoggerFactory
),
194
loggerFactory:
LoggerFactory
,
228
loggerFactory:
LoggerFactory
,
311
CreateConnection(httpHandler,
LoggerFactory
),
340
var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory:
LoggerFactory
);
343
CreateConnection(httpHandler, loggerFactory:
LoggerFactory
, transport: sse),
366
var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory:
LoggerFactory
);
369
CreateConnection(httpHandler, loggerFactory:
LoggerFactory
, transport: sse),
498
var sse = new ServerSentEventsTransport(new HttpClient(httpHandler), loggerFactory:
LoggerFactory
);
501
CreateConnection(httpHandler, loggerFactory:
LoggerFactory
, transport: sse, transportType: HttpTransportType.ServerSentEvents),
HttpConnectionTests.Transport.cs (1)
92
CreateConnection(testHttpHandler, transportType: transportType, loggerFactory:
LoggerFactory
),
HubConnectionTests.ConnectionLifecycle.cs (4)
172
await AsyncUsing(CreateHubConnection(testConnection, loggerFactory:
LoggerFactory
), async connection =>
511
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
540
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
582
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
HubConnectionTests.cs (28)
36
var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception),
LoggerFactory
);
51
var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception),
LoggerFactory
);
86
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
106
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
131
var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory:
LoggerFactory
);
153
var hubConnection = CreateHubConnection(connection, protocol: Mock.Of<IHubProtocol>(),
LoggerFactory
);
171
var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory:
LoggerFactory
);
188
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
207
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
227
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
249
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
268
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
287
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
317
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
355
var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory:
LoggerFactory
);
381
var hubConnection = CreateHubConnection(testConnection, loggerFactory:
LoggerFactory
);
413
var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory:
LoggerFactory
);
435
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
475
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
506
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
550
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
582
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
608
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
642
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
674
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
707
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
753
await using var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
812
var hubConnection = CreateHubConnection(connection, loggerFactory:
LoggerFactory
);
HubConnectionTests.Reconnect.cs (13)
43
await using var hubConnection = CreateHubConnection(testConnection, loggerFactory:
LoggerFactory
);
83
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
197
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
292
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
387
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
483
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
567
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
628
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
683
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
741
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
848
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
967
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
1058
var builder = new HubConnectionBuilder().WithLoggerFactory(
LoggerFactory
).WithUrl("http://example.com");
LongPollingTransportTests.cs (1)
259
var longPollingTransport = new LongPollingTransport(httpClient, loggerFactory:
LoggerFactory
);
ServerSentEventsTransportTests.cs (11)
52
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
97
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
150
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
206
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
256
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
283
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
337
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
372
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
399
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
430
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
484
var sseTransport = new ServerSentEventsTransport(httpClient, loggerFactory:
LoggerFactory
);
TestServerTests.cs (4)
25
s.AddSingleton(
LoggerFactory
);
54
connectionBuilder.Services.AddSingleton(
LoggerFactory
);
77
s.AddSingleton(
LoggerFactory
);
99
connectionBuilder.Services.AddSingleton(
LoggerFactory
);
WebSocketsTransportTests.cs (1)
30
var webSocketsTransport = new WebSocketsTransport(options, loggerFactory:
LoggerFactory
, () => Task.FromResult<string>(null), null);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
RedisEndToEnd.cs (11)
46
var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
);
66
var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
);
67
var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol,
LoggerFactory
);
99
var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "userA");
100
var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "userA");
131
var firstConnection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "userA");
132
var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "userA");
157
var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
);
158
var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol,
LoggerFactory
);
193
var connection = CreateConnection(_serverFixture.FirstServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "*");
194
var secondConnection = CreateConnection(_serverFixture.SecondServer.Url + "/echo", transportType, protocol,
LoggerFactory
, userName: "userA");
Microsoft.AspNetCore.SignalR.Tests (206)
EndToEndTests.cs (27)
44
var connection = new HttpConnection(new Uri(url), HttpTransports.All,
LoggerFactory
);
66
var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), DefaultTransferFormat = TransferFormat.Text },
LoggerFactory
, new TestTransportFactory());
80
var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text },
LoggerFactory
);
92
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
130
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
169
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
186
var connection = new HttpConnection(httpOptions,
LoggerFactory
);
219
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
236
var connection = new HttpConnection(httpOptions,
LoggerFactory
);
262
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
267
var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat },
LoggerFactory
);
320
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
323
var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets,
LoggerFactory
);
384
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
387
var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets,
LoggerFactory
);
408
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
418
var connection = new HttpConnection(options,
LoggerFactory
);
438
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
441
var connection = new HttpConnection(new Uri(url), transportType,
LoggerFactory
);
474
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
494
LoggerFactory
);
544
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
548
.WithLoggerFactory(
LoggerFactory
)
609
var logger =
LoggerFactory
.CreateLogger<EndToEndTests>();
613
.WithLoggerFactory(
LoggerFactory
)
648
var 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)
18
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { },
LoggerFactory
);
51
},
LoggerFactory
);
83
},
LoggerFactory
);
110
},
LoggerFactory
);
135
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
167
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
201
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { },
LoggerFactory
);
236
},
LoggerFactory
);
290
},
LoggerFactory
);
359
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
404
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
449
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { },
LoggerFactory
);
486
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(builder => { },
LoggerFactory
);
HubConnectionHandlerTests.cs (128)
44
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(trackDispose),
LoggerFactory
);
72
LoggerFactory
);
98
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
122
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
148
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
172
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
200
},
LoggerFactory
);
220
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
231
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
242
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
257
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
281
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
304
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
,
338
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
381
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
422
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
460
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
484
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT),
LoggerFactory
,
513
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT),
LoggerFactory
,
547
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT),
LoggerFactory
,
598
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT),
LoggerFactory
,
642
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
663
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
702
},
LoggerFactory
);
743
},
LoggerFactory
);
775
},
LoggerFactory
);
798
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
824
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
850
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
876
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
920
},
LoggerFactory
);
954
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(MethodHub), loggerFactory:
LoggerFactory
);
987
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1014
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1043
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1068
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1094
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1129
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1157
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1182
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1207
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1232
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1257
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1276
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1301
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1334
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1359
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1373
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1409
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1449
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1490
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1533
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(SimpleVoidReturningTypedHub), loggerFactory:
LoggerFactory
);
1553
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1599
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1647
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1692
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1736
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1789
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1840
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1882
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
1906
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1940
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(hubType, loggerFactory:
LoggerFactory
);
1973
var connectionHandler = HubConnectionHandlerTestUtils.GetHubConnectionHandler(typeof(HubT), loggerFactory:
LoggerFactory
);
2009
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2044
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2093
}),
LoggerFactory
);
2128
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2203
},
LoggerFactory
);
2239
},
LoggerFactory
);
2278
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
2341
},
LoggerFactory
);
2385
},
LoggerFactory
);
2416
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2453
},
LoggerFactory
);
2491
},
LoggerFactory
);
2515
},
LoggerFactory
);
2549
},
LoggerFactory
);
2612
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2643
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2668
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
2697
options.KeepAliveInterval = TimeSpan.FromMilliseconds(100)),
LoggerFactory
);
2743
options.KeepAliveInterval = interval),
LoggerFactory
);
2805
options.ClientTimeoutInterval = timeout),
LoggerFactory
);
2841
options.ClientTimeoutInterval = timeout),
LoggerFactory
);
2873
},
LoggerFactory
);
2904
options.ClientTimeoutInterval = timeout),
LoggerFactory
);
3018
},
LoggerFactory
);
3077
},
LoggerFactory
);
3104
var 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
);
3820
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
3843
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
3867
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
3899
LoggerFactory
, (services) => services.AddSingleton<IHubProtocol>(testProtocol.Object));
3918
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
3945
}, loggerFactory:
LoggerFactory
);
3970
}, loggerFactory:
LoggerFactory
);
3994
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4014
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4033
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4055
},
LoggerFactory
);
4093
},
LoggerFactory
);
4130
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4167
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4213
},
LoggerFactory
);
4254
},
LoggerFactory
);
4299
},
LoggerFactory
);
4330
},
LoggerFactory
);
4357
},
LoggerFactory
);
4383
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
4408
IServiceProvider serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(loggerFactory:
LoggerFactory
);
4476
LoggerFactory
);
4537
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
4627
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(null,
LoggerFactory
);
5116
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
5140
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
5244
var serviceProvider = HubConnectionHandlerTestUtils.CreateServiceProvider(s => s.AddSingleton(state),
LoggerFactory
);
5307
var 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)
94
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
108
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
139
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
162
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
178
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
200
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null, loggerFactory:
LoggerFactory
, accessTokenProvider: null, httpClient: null);
218
var webSocketsTransport = new WebSocketsTransport(httpConnectionOptions: null,
LoggerFactory
, accessTokenProvider: null, httpClient: null);
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
src\Shared\SignalR\FunctionalTestBase.cs (1)
43
return InProcessTestServer<T>.StartServer(
LoggerFactory
, configureKestrelServerOptions, disposable);
src\Shared\SignalR\VerifiableLoggedTest.cs (1)
27
return new VerifyNoErrorsScope(
LoggerFactory
, wrappedDisposable: null, expectedErrorsFilter);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (2)
30
services.AddSingleton(
LoggerFactory
);
83
services.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)
18
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
50
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
80
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
113
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
WebSocketMiddlewareTests.cs (24)
21
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
37
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
65
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
90
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
115
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
141
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
172
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
221
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
246
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
271
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
304
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
347
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
375
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
403
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
433
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
465
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
514
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
589
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
653
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, context =>
696
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, context =>
722
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
743
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
779
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
802
await using (var server = KestrelWebSocketHelpers.CreateServer(
LoggerFactory
, out var port, async context =>
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42
LoggerFactory
.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
Sockets.FunctionalTests (36)
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
42
LoggerFactory
.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
24
var serviceContext = new TestServiceContext(
LoggerFactory
);
66
var 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)
67
var testContext = new TestServiceContext(
LoggerFactory
);
122
var testContext = new TestServiceContext(
LoggerFactory
);
169
var testContext = new TestServiceContext(
LoggerFactory
)
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
36
await using (var server = new TestServer(_ => Task.CompletedTask, new TestServiceContext(
LoggerFactory
),
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (13)
210
}, new TestServiceContext(
LoggerFactory
)))
271
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
)))
323
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
)))
368
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
)))
427
await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(
LoggerFactory
)))
500
new TestServiceContext(
LoggerFactory
)))
656
}, new TestServiceContext(
LoggerFactory
)))
734
var testContext = new TestServiceContext(
LoggerFactory
);
769
var testContext = new TestServiceContext(
LoggerFactory
);
805
var testContext = new TestServiceContext(
LoggerFactory
);
849
var testContext = new TestServiceContext(
LoggerFactory
);
971
var testContext = new TestServiceContext(
LoggerFactory
)
1049
var testContext = new TestServiceContext(
LoggerFactory
);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (13)
168
}, new TestServiceContext(
LoggerFactory
), listenOptions))
206
var testServiceContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory));
284
var testContext = new TestServiceContext(
LoggerFactory
)
378
}, new TestServiceContext(
LoggerFactory
), listenOptions))
433
var testServiceContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory));
472
var logger =
LoggerFactory
.CreateLogger($"{ typeof(ResponseTests).FullName}.{ nameof(ConnectionClosedWhenResponseDoesNotSatisfyMinimumDataRate)}");
507
var testContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory))
521
var appLogger =
LoggerFactory
.CreateLogger("App");
641
var testContext = new TestServiceContext(
LoggerFactory
)
762
var testContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory))
861
var testContext = new TestServiceContext(
LoggerFactory
)
938
var testContext = new TestServiceContext(
LoggerFactory
)
1025
var testContext = new TestServiceContext(
LoggerFactory
, metrics: new KestrelMetrics(testMeterFactory))