Beispiel #1
0
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler) Delegate.Combine(_LogSwitchLevelHandler, handler);
     }
 }
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Combine(_LogSwitchLevelHandler, handler);
     }
 }
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
     {
         _LogSwitchLevelHandler = (LogSwitchLevelHandler)Delegate.Remove(_LogSwitchLevelHandler, handler);
     }
 }
Beispiel #4
0
        internal static void InvokeLogSwitchLevelHandlers(LogSwitch ls, LoggingLevels newLevel)
        {
            LogSwitchLevelHandler handler = _LogSwitchLevelHandler;

            if (handler != null)
            {
                handler(ls, newLevel);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #7
0
        internal static void InvokeLogSwitchLevelHandlers(LogSwitch ls, LoggingLevels newLevel)
        {
            LogSwitchLevelHandler switchLevelHandler = Log._LogSwitchLevelHandler;

            if (switchLevelHandler == null)
            {
                return;
            }
            switchLevelHandler(ls, newLevel);
        }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #10
0
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (Log.locker)
         Log._LogSwitchLevelHandler -= handler;
 }
Beispiel #11
0
 public static void AddOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (Log.locker)
         Log._LogSwitchLevelHandler += handler;
 }
Beispiel #12
0
 public static void RemoveOnLogSwitchLevel(LogSwitchLevelHandler handler)
 {
     lock (locker)
         _LogSwitchLevelHandler = 
             (LogSwitchLevelHandler) MulticastDelegate.Remove(_LogSwitchLevelHandler, handler);
 }
Beispiel #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);
 	}