Esempio n. 1
0
 public override void InitializeComponent(ICore core)
 {
     this.Configuration = core.Components.Configuration;
     this.Configuration.GetElement <BooleanConfigurationElement>(
         LoggingBehaviourConfiguration.SECTION,
         LoggingBehaviourConfiguration.ENABLED_ELEMENT
         ).ConnectValue(value => { this.Enabled = value; this.Refresh(); });
     this.Configuration.GetElement <SelectionConfigurationElement>(
         LoggingBehaviourConfiguration.SECTION,
         LoggingBehaviourConfiguration.LEVEL_ELEMENT
         ).ConnectValue(value => { this.Level = LoggingBehaviourConfiguration.GetLogLevel(value); this.Refresh(); });
     base.InitializeComponent(core);
 }
Esempio n. 2
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(LoggingBehaviourConfiguration.GetConfigurationSections());
 }