Пример #1
0
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler) Delegate.Combine(_LogSwitchLevelHandler, handler);
     }
 }
Пример #2
0
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Combine(_LogSwitchLevelHandler, handler);
     }
 }
Пример #3
0
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Remove(_LogSwitchLevelHandler, handler);
     }
 }
Пример #4
0
        internal static void InvokeLogSwitchLevelHandlers(LogSwitch ls, LoggingLevels newLevel)
        {
            LogSwitchLevelHandler handler = _LogSwitchLevelHandler;

            if (handler != null)
            {
                handler(ls, newLevel);
            }
        }
Пример #5
0
        // Token: 0x0600321C RID: 12828 RVA: 0x000C0588 File Offset: 0x000BE788
        public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
        {
            object obj = Log.locker;

            lock (obj)
            {
                Log._LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Remove(Log._LogSwitchLevelHandler, handler);
            }
        }
Пример #6
0
        // Token: 0x0600321B RID: 12827 RVA: 0x000C0534 File Offset: 0x000BE734
        public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
        {
            object obj = Log.locker;

            lock (obj)
            {
                Log._LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Combine(Log._LogSwitchLevelHandler, handler);
            }
        }
Пример #7
0
        internal static void InvokeLogSwitchLevelHandlers(LogSwitch ls, LoggingLevels newLevel)
        {
            LogSwitchLevelHandler switchLevelHandler = Log._LogSwitchLevelHandler;

            if (switchLevelHandler == null)
            {
                return;
            }
            switchLevelHandler(ls, newLevel);
        }
Пример #8
0
 /// <include file='doc\log.uex' path='docs/doc[@for="Log.RemoveOnLogSwitchLevel"]/*' />
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     _LogSwitchLevelHandler =
         (LogSwitchLevelHandler)MulticastDelegate.Remove(_LogSwitchLevelHandler, handler);
 }
Пример #9
0
 /// <include file='doc\log.uex' path='docs/doc[@for="Log.AddOnLogSwitchLevel"]/*' />
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     _LogSwitchLevelHandler =
         (LogSwitchLevelHandler)MulticastDelegate.Combine(_LogSwitchLevelHandler, handler);
 }
Пример #10
0
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (Log.locker)
         Log._LogSwitchLevelHandler -= handler;
 }
Пример #11
0
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (Log.locker)
         Log._LogSwitchLevelHandler += handler;
 }
Пример #12
0
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
         _LogSwitchLevelHandler = 
             (LogSwitchLevelHandler) MulticastDelegate.Remove(_LogSwitchLevelHandler, handler);
 }
Пример #13
0
 	/// <include file='doc\log.uex' path='docs/doc[@for="Log.AddOnLogSwitchLevel"]/*' />
 	public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 	{
         _LogSwitchLevelHandler = 
 			(LogSwitchLevelHandler) MulticastDelegate.Combine(_LogSwitchLevelHandler, handler);
 	}