2 instantiations of HstsMiddleware
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
HstsMiddlewareTests.cs (2)
26
_ = new
HstsMiddleware
(next: null, options: new OptionsWrapper<HstsOptions>(new HstsOptions()));
35
_ = new
HstsMiddleware
(innerHttpContext => Task.CompletedTask, options: null);
12 references to HstsMiddleware
Microsoft.AspNetCore.HttpsPolicy (2)
HstsBuilderExtensions.cs (1)
21
return app.UseMiddleware<
HstsMiddleware
>();
HstsMiddleware.cs (1)
46
_logger = loggerFactory.CreateLogger<
HstsMiddleware
>();
Microsoft.AspNetCore.HttpsPolicy.Tests (10)
HstsMiddlewareTests.cs (10)
175
TestSink.EnableWithTypeName<
HstsMiddleware
>,
176
TestSink.EnableWithTypeName<
HstsMiddleware
>);
225
TestSink.EnableWithTypeName<
HstsMiddleware
>,
226
TestSink.EnableWithTypeName<
HstsMiddleware
>);
280
TestSink.EnableWithTypeName<
HstsMiddleware
>,
281
TestSink.EnableWithTypeName<
HstsMiddleware
>);
332
TestSink.EnableWithTypeName<
HstsMiddleware
>,
333
TestSink.EnableWithTypeName<
HstsMiddleware
>);
379
TestSink.EnableWithTypeName<
HstsMiddleware
>,
380
TestSink.EnableWithTypeName<
HstsMiddleware
>);