HostFilteringServicesExtensions.AddHostFiltering Método

Definición

Agrega servicios y opciones para el middleware de filtrado de host.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHostFiltering(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::HostFiltering::HostFilteringOptions ^> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHostFiltering (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.HostFiltering.HostFilteringOptions> configureOptions);
static member AddHostFiltering : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.HostFiltering.HostFilteringOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHostFiltering (services As IServiceCollection, configureOptions As Action(Of HostFilteringOptions)) As IServiceCollection

Parámetros

services
IServiceCollection

IServiceCollection para agregar servicios.

configureOptions
Action<HostFilteringOptions>

Un delegado para configurar la instancia de HostFilteringOptions.

Devoluciones

Se aplica a