Class NCacheDataProtectionBuilderExtension
This class acts as the registration point for the clients to configure NCache as a key storage provider for Data Protection.
Inheritance
System.Object
                NCacheDataProtectionBuilderExtension
              Inherited Members
                  System.Object.ToString()
                
                
                  System.Object.Equals(System.Object)
                
                
                  System.Object.Equals(System.Object, System.Object)
                
                
                  System.Object.ReferenceEquals(System.Object, System.Object)
                
                
                  System.Object.GetHashCode()
                
                
                  System.Object.GetType()
                
                
                  System.Object.MemberwiseClone()
                
              Assembly: cs.temp.dll.dll
Syntax
public static class NCacheDataProtectionBuilderExtension
              Methods
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 | 
|---|---|---|
| IDataProtectionBuilder | builder | The Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder.  | 
                  
| System.String | cacheName | The name of the cache for storing encryption keys.  | 
                  
| System.String | cacheTag | The name of the tag against which the keys are to be stored.  | 
                  
Returns
| Type | Description | 
|---|---|
| IDataProtectionBuilder | A reference to the Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder after this operation has completed.  |