DataProtectionServiceCollectionExtensions.AddDataProtection 메서드

정의

오버로드

AddDataProtection(IServiceCollection)

지정된 IServiceCollection에 데이터 보호 서비스를 추가합니다.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

지정된 IServiceCollection에 데이터 보호 서비스를 추가합니다.

AddDataProtection(IServiceCollection)

지정된 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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

반환

적용 대상

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

지정된 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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

setupAction
Action<DataProtectionOptions>

제공된 DataProtectionOptions를 구성하는 Action<T>입니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상