/// <summary>
 /// Opens the caching configuration from an application configuration file.
 /// </summary>
 /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
 /// <param name="rootNode">The <see cref="ConfigurationApplicationNode"/> of the hierarchy.</param>
 /// <param name="section">The caching configuration section or null if no section was found.</param>
 protected override void OpenCore(IServiceProvider serviceProvider, ConfigurationApplicationNode rootNode, ConfigurationSection section)
 {
     if (null != section)
     {
         CryptographyManagerSettingsNodeBuilder builder = new CryptographyManagerSettingsNodeBuilder(serviceProvider, (CryptographySettings)section);
         rootNode.AddNode(builder.Build());
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Opens the caching configuration from an application configuration file.
 /// </summary>
 /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
 /// <param name="rootNode">The <see cref="ConfigurationApplicationNode"/> of the hierarchy.</param>
 /// <param name="section">The caching configuration section or null if no section was found.</param>
 protected override void OpenCore(IServiceProvider serviceProvider, ConfigurationApplicationNode rootNode, ConfigurationSection section)
 {
     if (null != section)
     {
         CryptographyManagerSettingsNodeBuilder builder = new CryptographyManagerSettingsNodeBuilder(serviceProvider, (CryptographySettings)section);
         rootNode.AddNode(builder.Build());
     }
 }