Пример #1
0
 public void RemoveDestination(IActinLogger destination)
 {
     lockDestinations.EnterWriteLock();
     try {
         destinations.Remove(destination);
     }
     finally {
         lockDestinations.ExitWriteLock();
     }
 }
Пример #2
0
 public void AddDestination(IActinLogger destination)
 {
     if (destination == null || destination == this)
     {
         return;
     }
     lockDestinations.EnterWriteLock();
     try {
         destinations.Add(destination);
     }
     finally {
         lockDestinations.ExitWriteLock();
     }
 }
 public void RemoveDestination(IActinLogger destination)
 {
     dispatcher.RemoveDestination(destination);
 }
 public void AddDestination(IActinLogger destination)
 {
     dispatcher.AddDestination(destination);
 }