示例#1
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="ConfigurationSectionData"/> class with a name, a cache, a storage provider, a data protection provider and a data transformer.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the section.</para>
 /// </param>
 /// <param name="encrypt">
 /// <para>Determines if the section is encrypted or not.</para>
 /// </param>
 /// <param name="storageProvider">
 /// <para>The <see cref="StorageProviderData"/> used for the configuration section.</para>
 /// </param>
 /// <param name="transformer">
 /// <para>The <see cref="TransformerData"/> used for the section.</para>
 /// </param>
 /// <seealso cref="StorageProviderData"/>
 /// <seealso cref="TransformerData"/>
 public ConfigurationSectionData(string name, bool encrypt, StorageProviderData storageProvider, TransformerData transformer)
 {
     this.name            = name;
     this.encrypt         = encrypt;
     this.storageProvider = storageProvider;
     this.transformer     = transformer;
 }
 protected override void InitializeConfigurationProvider(string sectionName, IConfigurationProvider provider)
 {
     StorageProviderData storageProviderData = GetStorageProviderData(sectionName);
     provider.ConfigurationName = storageProviderData.Name;
     ((IStorageProviderReader)provider).CurrentSectionName = sectionName;
     base.InitializeConfigurationProvider (sectionName, provider);
 }
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="ConfigurationSectionData"/> class with a name, a cache, a storage provider, a data protection provider and a data transformer.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the section.</para>
 /// </param>
 /// <param name="encrypt">
 /// <para>Determines if the section is encrypted or not.</para>
 /// </param>
 /// <param name="storageProvider">
 /// <para>The <see cref="StorageProviderData"/> used for the configuration section.</para>
 /// </param>        
 /// <param name="transformer">
 /// <para>The <see cref="TransformerData"/> used for the section.</para>
 /// </param>                
 /// <seealso cref="StorageProviderData"/>        
 /// <seealso cref="TransformerData"/>
 public ReadOnlyConfigurationSectionData(string name, bool encrypt, StorageProviderData storageProvider, TransformerData transformer)
     : base(name, encrypt, storageProvider, transformer)
 {
 }
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="ConfigurationSectionData"/> class with a name, a cache, a storage provider, a data protection provider and a data transformer.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the section.</para>
 /// </param>
 /// <param name="encrypt">
 /// <para>Determines if the section is encrypted or not.</para>
 /// </param>
 /// <param name="storageProvider">
 /// <para>The <see cref="StorageProviderData"/> used for the configuration section.</para>
 /// </param>
 /// <param name="transformer">
 /// <para>The <see cref="TransformerData"/> used for the section.</para>
 /// </param>
 /// <seealso cref="StorageProviderData"/>
 /// <seealso cref="TransformerData"/>
 public ReadOnlyConfigurationSectionData(string name, bool encrypt, StorageProviderData storageProvider, TransformerData transformer) : base(name, encrypt, storageProvider, transformer)
 {
 }
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="ConfigurationSectionData"/> class with a name, a cache, a storage provider, a data protection provider and a data transformer.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the section.</para>
 /// </param>
 /// <param name="encrypt">
 /// <para>Determines if the section is encrypted or not.</para>
 /// </param>
 /// <param name="storageProvider">
 /// <para>The <see cref="StorageProviderData"/> used for the configuration section.</para>
 /// </param>        
 /// <param name="transformer">
 /// <para>The <see cref="TransformerData"/> used for the section.</para>
 /// </param>                
 /// <seealso cref="StorageProviderData"/>        
 /// <seealso cref="TransformerData"/>
 public ConfigurationSectionData(string name, bool encrypt, StorageProviderData storageProvider, TransformerData transformer)
 {
     this.name = name;
     this.encrypt = encrypt;
     this.storageProvider = storageProvider;
     this.transformer = transformer;
 }
 protected override Type GetConfigurationType(string sectionName)
 {
     StorageProviderData data = GetStorageProviderData(sectionName);
     return GetType(data.TypeName);
 }