DataProtectionServiceCollectionExtensions.AddDataProtection Método

Definición

Sobrecargas

AddDataProtection(IServiceCollection)

Agrega servicios de protección de datos al especificado IServiceCollection.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Agrega servicios de protección de datos al especificado IServiceCollection.

AddDataProtection(IServiceCollection)

Agrega servicios de protección de datos al especificado IServiceCollection.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection) As IDataProtectionBuilder

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

Se aplica a

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Agrega servicios de protección de datos al especificado IServiceCollection.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> setupAction);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection, setupAction As Action(Of DataProtectionOptions)) As IDataProtectionBuilder

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

setupAction
Action<DataProtectionOptions>

Action<T> para configurar el objeto DataProtectionOptions proporcionado.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a