Beispiel #1
0
 private void OnFileChanged(object sender, ChoConfigurationChangedEventArgs e)
 {
     if (_queuedMsgService != null)
     {
         _queuedMsgService.Enqueue(ChoStandardQueuedMsgObject <object> .New(e));
     }
 }
        /// <summary>
        /// Raises the <see cref="ConfigurationChanged"/> event.
        /// </summary>
        /// <param name="sender">The sender of the event.</param>
        /// <param name="args">The event arguments.</param>
        public static void OnConfigurationChanged(object sender,
                                                  ChoConfigurationChangedEventArgs args)
        {
            foreach (IChoConfigurationChangeWatcher configurationChangeWatcher in _configSourceWatcherMapping)
            {
                if (configurationChangeWatcher == null)
                {
                    continue;
                }
                configurationChangeWatcher.OnConfigurationChanged();
            }

            //if (ConfigurationChanged != null)
            //{
            //    ConfigurationChanged(sender, args);
            //}
        }
 private static void NullConfigurationChangedEventHandler(object sender, ChoConfigurationChangedEventArgs e)
 {
 }
Beispiel #4
0
 private void OnConfigurationChanged(object sender, ChoConfigurationChangedEventArgs e)
 {
     SourceChanged.Raise(this, new ChoSourceCompositeChangedEventArgs(e));
 }
 internal ChoSourceCompositeChangedEventArgs(ChoConfigurationChangedEventArgs e)
     : base(e.SectionName, e.LastUpdatedTimeStamp)
 {
 }
Beispiel #6
0
 private void ChoConfigurationChangeWatcherManager_ConfigurationChanged(object sender, ChoConfigurationChangedEventArgs e)
 {
     LoadConfig(true);
 }