DataProtectionServiceCollectionExtensions.AddDataProtection DataProtectionServiceCollectionExtensions.AddDataProtection DataProtectionServiceCollectionExtensions.AddDataProtection DataProtectionServiceCollectionExtensions.AddDataProtection Method

Definition

Overloads

AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection)

Adds data protection services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Adds data protection services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection) AddDataProtection(IServiceCollection)

Adds data protection services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddDataProtection(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
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

Parameters

services
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>) AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Adds data protection services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddDataProtection(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::DataProtection::DataProtectionOptions ^> ^ setupAction);
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

Parameters

services
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

setupAction
Action<DataProtectionOptions>

An Action<T> to configure the provided DataProtectionOptions.

Returns

A reference to this instance after the operation has completed.

Applies to