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)

Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs

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

Chcete-li IServiceCollection přidat služby do.

Návraty

Platí pro

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs
Zdroj:
DataProtectionServiceCollectionExtensions.cs

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

Chcete-li IServiceCollection přidat služby do.

setupAction
Action<DataProtectionOptions>

Pro Action<T> konfiguraci zadaného DataProtectionOptionsobjektu .

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro