Class DataProtectionExtensions
Extension methods for IDataProtectionBuilder.
Namespace: Neon.Web
Assembly: Neon.Web.dll
Syntax
public static class DataProtectionExtensionsMethods
UseAesDataProtectionProvider(IDataProtectionBuilder)
Adds an AES data protection provider to the service collection.
Declaration
public static IDataProtectionBuilder UseAesDataProtectionProvider(this IDataProtectionBuilder builder)Parameters
| Type | Name | Description | 
|---|---|---|
| IDataProtectionBuilder | builder | 
Returns
| Type | Description | 
|---|---|
| IDataProtectionBuilder | 
UseAesDataProtectionProvider(IDataProtectionBuilder, string)
Adds an AES data protection provider to the service collection.
Declaration
public static IDataProtectionBuilder UseAesDataProtectionProvider(this IDataProtectionBuilder builder, string cipherKey)Parameters
| Type | Name | Description | 
|---|---|---|
| IDataProtectionBuilder | builder | |
| string | cipherKey | The Cipher key | 
Returns
| Type | Description | 
|---|---|
| IDataProtectionBuilder |