Esempio n. 1
0
 public static SecuritySettings FromConfiguration()
 {
     var instance = new SecuritySettings();
     var configSection = GetConfigSection();
     if (configSection != null)
     {
         foreach (var prop in configSection.Properties.Cast<ConfigurationProperty>())
         {
             var val = configSection[prop];
             instance[prop] = val;
         }
     }
     return instance;
 }
 public MembershipRebootConfiguration(SecuritySettings securitySettings)
 {
     if (securitySettings == null) throw new ArgumentNullException("securitySettings");
     this.SecuritySettings = securitySettings;
 }