DataProtectionServiceCollectionExtensions.AddDataProtection Metoda

Definice

Přetížení

AddDataProtection(IServiceCollection)

Přidá služby ochrany dat do zadaného IServiceCollection.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Přidá služby ochrany dat do zadaného IServiceCollection.

AddDataProtection(IServiceCollection)

Přidá služby ochrany dat do zadaného 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

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

Návraty

IDataProtectionBuilder

Platí pro

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Přidá služby ochrany dat do zadaného 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

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

setupAction
Action<DataProtectionOptions>

Konfigurace Action<T> poskytnutého DataProtectionOptionsobjektu .

Návraty

IDataProtectionBuilder

Odkaz na tuto instanci po dokončení operace.

Platí pro