Beispiel #1
0
 /// <summary>
 /// Unregisters an existing <see cref="ILoggingListener"/>.
 /// </summary>
 /// <param name="listener">The <see cref="ILoggingListener"/> to unregister.</param>
 public void UnregisterListener(ILoggingListener listener)
 {
     lock (_listeners)
     {
         _listeners.Remove(listener);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Registers a new <see cref="ILoggingListener"/>.
 /// </summary>
 /// <param name="listener">The <see cref="ILoggingListener"/> to register.</param>
 public void RegisterListener(ILoggingListener listener)
 {
     lock (_listeners)
     {
         _listeners.Add(listener);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Unregisters an existing <see cref="ILoggingListener"/>.
 /// </summary>
 /// <param name="listener">The <see cref="ILoggingListener"/> to unregister.</param>
 public void UnregisterListener(ILoggingListener listener)
 {
     lock (_listeners)
     {
         _listeners.Remove(listener);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Registers a new <see cref="ILoggingListener"/>.
 /// </summary>
 /// <param name="listener">The <see cref="ILoggingListener"/> to register.</param>
 public void RegisterListener(ILoggingListener listener)
 {
     lock (_listeners)
     {
         _listeners.Add(listener);
     }
 }