1 instantiation of HstsOptions
Microsoft.AspNetCore.HttpsPolicy.Tests (1)
HstsMiddlewareTests.cs (1)
26
_ = new HstsMiddleware(next: null, options: new OptionsWrapper<HstsOptions>(new
HstsOptions
()));
8 references to HstsOptions
Microsoft.AspNetCore.HttpsPolicy (5)
HstsMiddleware.cs (3)
33
public HstsMiddleware(RequestDelegate next, IOptions<
HstsOptions
> options, ILoggerFactory loggerFactory)
39
var
hstsOptions = options.Value;
54
public HstsMiddleware(RequestDelegate next, IOptions<
HstsOptions
> options)
HstsServicesExtensions.cs (2)
18
/// <param name="configureOptions">A delegate to configure the <see cref="
HstsOptions
"/>.</param>
20
public static IServiceCollection AddHsts(this IServiceCollection services, Action<
HstsOptions
> configureOptions)
Microsoft.AspNetCore.HttpsPolicy.Tests (3)
HstsMiddlewareTests.cs (2)
26
_ = new HstsMiddleware(next: null, options: new OptionsWrapper<
HstsOptions
>(new HstsOptions()));
90
services.Configure<
HstsOptions
>(options =>
HttpsPolicyTests.cs (1)
40
services.Configure<
HstsOptions
>(options =>