HttpsRedirectionServicesExtensions.AddHttpsRedirection Method
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.
Adds HTTPS redirection services.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpsRedirection(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::HttpsPolicy::HttpsRedirectionOptions ^> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpsRedirection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionOptions> configureOptions);
static member AddHttpsRedirection : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpsRedirection (services As IServiceCollection, configureOptions As Action(Of HttpsRedirectionOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection for adding services.
- configureOptions
- Action<HttpsRedirectionOptions>
A delegate to configure the HttpsRedirectionOptions.