Method PersistKeysToNCache
PersistKeysToNCache(IDataProtectionBuilder, String, String)
This method initializes NCacheXmlRepository to store Data Protection encryption keys.
Declaration
public static IDataProtectionBuilder PersistKeysToNCache(this IDataProtectionBuilder builder, string cacheName, string cacheTag)
Parameters
Type | Name | Description |
---|---|---|
IData |
builder | The Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder. |
System. |
cacheName | The name of the cache for storing encryption keys. |
System. |
cacheTag | The name of the tag against which the keys are to be stored. |
Returns
Type | Description |
---|---|
IData |
A reference to the Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder after this operation has completed. |