Compartilhar via


HttpsRedirectionServicesExtensions.AddHttpsRedirection Método

Definição

Adiciona serviços de redirecionamento HTTPS.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

configureOptions
Action<HttpsRedirectionOptions>

Um delegado para configurar o HttpsRedirectionOptions.

Retornos

Aplica-se a