DataProtectionStartup Class

Allows controlling the configuration of the ASP.NET Core Data Protection system.

Namespace
Microsoft.AspNetCore.DataProtection.SystemWeb
Assemblies
  • Microsoft.AspNetCore.DataProtection.SystemWeb

Syntax

public class DataProtectionStartup
class Microsoft.AspNetCore.DataProtection.SystemWeb.DataProtectionStartup

Methods

ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)

Configures services used by the Data Protection system.

Arguments:services (Microsoft.Extensions.DependencyInjection.IServiceCollection) – A mutable collection of services.
public virtual void ConfigureServices(IServiceCollection services)
CreateDataProtectionProvider(System.IServiceProvider)

Creates a new instance of an Microsoft.AspNetCore.DataProtection.IDataProtectionProvider.

Arguments:services (System.IServiceProvider) – A collection of services from which to create the Microsoft.AspNetCore.DataProtection.IDataProtectionProvider.
Return type:Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Returns:An Microsoft.AspNetCore.DataProtection.IDataProtectionProvider.
public virtual IDataProtectionProvider CreateDataProtectionProvider(IServiceProvider services)