Ejemplo n.º 1
0
        public bool UpdateFrom(ILogPropertyConfig p)
        {
            bool hasChanged = false;

            if( p.LogFilter != LogFilter )
            {
                ProcessLogPropertyFilter(p.LogFilter);
                hasChanged = true;
            }

            if (p.DoLogErrors != _doLogErrors)
            {
                DoLogErrors = p.DoLogErrors;
                hasChanged = true;
            }

            if (p.DoLog != DoLog)
            {
                DoLog = p.DoLog;
                hasChanged = true;
            }

            return hasChanged;
        }
Ejemplo n.º 2
0
 public static VMLogPropertyConfig CreateFrom( ILogPropertyConfig p )
 {
     VMLogPropertyConfig result = new VMLogPropertyConfig( p.Name, false );
     result._doLog = p.DoLog;
     result.PropertyType = p.PropertyType;
     result.LogFilter = p.LogFilter;
     result.DoLogErrors = p.DoLogErrors;
     return result;
 }