HstsMiddleware Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>) |
Initialize the HSTS middleware. |
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory) |
Initialize the HSTS middleware. |
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>)
- Source:
- HstsMiddleware.cs
- Source:
- HstsMiddleware.cs
- Source:
- HstsMiddleware.cs
Initialize the HSTS middleware.
public:
HstsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::HttpsPolicy::HstsOptions ^> ^ options);
public HstsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> options);
new Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> -> Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of HstsOptions))
Parameters
- next
- RequestDelegate
- options
- IOptions<HstsOptions>
Applies to
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory)
- Source:
- HstsMiddleware.cs
- Source:
- HstsMiddleware.cs
Initialize the HSTS middleware.
public:
HstsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::HttpsPolicy::HstsOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HstsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of HstsOptions), loggerFactory As ILoggerFactory)
Parameters
- next
- RequestDelegate
- options
- IOptions<HstsOptions>
- loggerFactory
- ILoggerFactory