DataProtectionServiceCollectionExtensions.AddDataProtection Yöntem

Tanım

Aşırı Yüklemeler

AddDataProtection(IServiceCollection)

Belirtilen IServiceCollectionöğesine veri koruma hizmetleri ekler.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Belirtilen IServiceCollectionöğesine veri koruma hizmetleri ekler.

AddDataProtection(IServiceCollection)

Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine veri koruma hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

Döndürülenler

Şunlara uygulanır

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs
Kaynak:
DataProtectionServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine veri koruma hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

setupAction
Action<DataProtectionOptions>

Sağlanan öğesini yapılandırmak için birAction<T>.DataProtectionOptions

Döndürülenler

İşlem tamamlandıktan sonra bu örneğe başvuru.

Şunlara uygulanır