Example #1
0
        public eXtensibleFrameworkElement GetForLoggingMode(string loggingModeKey)
        {
            bool b = false;
            eXtensibleFrameworkElement found = null;

            for (int i = 0; !b && i < this.Count; i++)
            {
                eXtensibleFrameworkElement element = this[i];
                if (!String.IsNullOrEmpty(element.Key) && element.Key.Equals(loggingModeKey, StringComparison.OrdinalIgnoreCase))
                {
                    found = element;
                    b     = true;
                }
            }
            if (!b)
            {
                found = new eXtensibleFrameworkElement()
                {
                    Key             = XFConstants.Config.DEFAULTKEY,
                    LoggingStrategy = XFConstants.Config.DefaultLoggingStrategy,
                    PublishSeverity = XFConstants.Config.DefaultPublishingSeverity
                };
            }
            return(found);
        }
 public eXtensibleFrameworkElement GetForLoggingMode(string loggingMode)
 {
     bool b = false;
     eXtensibleFrameworkElement found = null;
     for (int i = 0; !b && i < this.Count; i++)
     {
         eXtensibleFrameworkElement element = this[i];
         if (element.Key.Equals(loggingMode, StringComparison.OrdinalIgnoreCase))
         {
             found = element;
             b = true;
         }
     }
     if (!b)
     {
         found = new eXtensibleFrameworkElement()
         {
             Key = XFConstants.Config.DEFAULTKEY,
             LoggingStrategy = XFConstants.Config.DEFAULTLOGGINGSTRATEGY,
             PublishSeverity = XFConstants.Config.DEFAULTPUBLISHSEVERITY
         };
     }
     return found;
 }
 public void Add(eXtensibleFrameworkElement element)
 {
     base.BaseAdd(element);
 }
Example #4
0
        public eXtensibleFrameworkElementCollection()
        {
            eXtensibleFrameworkElement element = (eXtensibleFrameworkElement)CreateNewElement();

            base.BaseAdd(element);
        }
Example #5
0
 public void Add(eXtensibleFrameworkElement element)
 {
     base.BaseAdd(element);
 }