Add() public method

public Add ( GrandOutputEventInfo e, FinalReceiver receiver ) : bool
e GrandOutputEventInfo
receiver FinalReceiver
return bool
Esempio n. 1
0
 void IChannel.Handle(GrandOutputEventInfo logEvent, bool sendToCommonSink)
 {
     if (sendToCommonSink)
     {
         _dispatcher.Add(logEvent, CommonSinkOnlyReceiver);
     }
 }
Esempio n. 2
0
 public void Handle(GrandOutputEventInfo logEvent, bool sendToCommonSink)
 {
     Debug.Assert(sendToCommonSink == true);
     try
     {
         _dispatcher.Add(logEvent, _receiver);
         _buffer.Enqueue(logEvent);
     }
     finally
     {
         _useLock.Signal();
     }
 }