示例#1
0
 internal BufferingChannel( EventDispatcher dispatcher, EventDispatcher.FinalReceiver commonSinkOnly )
 {
     _dispatcher = dispatcher;
     _receiver = commonSinkOnly;
     _useLock = new CountdownEvent( 0 );
     _buffer = new ConcurrentQueue<GrandOutputEventInfo>();
     _flushLock = new Object();
 }
示例#2
0
 internal StandardChannel( IGrandOutputSink commonSink, EventDispatcher dispatcher, IRouteConfigurationLock configLock, HandlerBase[] handlers, string configurationName, GrandOutputChannelConfigData configData )
 {
     _dispatcher = dispatcher;
     _receiver = new EventDispatcher.FinalReceiver( commonSink, handlers, configLock );
     _receiverNoCommonSink = new EventDispatcher.FinalReceiver( null, handlers, configLock );
     _configurationName = configurationName;
     if( configData != null ) _minimalFilter = configData.MinimalFilter;
 }
示例#3
0
 internal BufferingChannel(EventDispatcher dispatcher, EventDispatcher.FinalReceiver commonSinkOnly)
 {
     _dispatcher = dispatcher;
     _receiver   = commonSinkOnly;
     _useLock    = new CountdownEvent(0);
     _buffer     = new ConcurrentQueue <GrandOutputEventInfo>();
     _flushLock  = new Object();
 }
示例#4
0
 internal ChannelFactory(GrandOutput grandOutput, EventDispatcher dispatcher)
 {
     _grandOutput           = grandOutput;
     _dispatcher            = dispatcher;
     CommonSinkOnlyReceiver = new EventDispatcher.FinalReceiver(grandOutput.CommonSink, Util.Array.Empty <HandlerBase>(), null);
 }