internal BufferingChannel( EventDispatcher dispatcher, EventDispatcher.FinalReceiver commonSinkOnly ) { _dispatcher = dispatcher; _receiver = commonSinkOnly; _useLock = new CountdownEvent( 0 ); _buffer = new ConcurrentQueue<GrandOutputEventInfo>(); _flushLock = new Object(); }
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; }
internal BufferingChannel(EventDispatcher dispatcher, EventDispatcher.FinalReceiver commonSinkOnly) { _dispatcher = dispatcher; _receiver = commonSinkOnly; _useLock = new CountdownEvent(0); _buffer = new ConcurrentQueue <GrandOutputEventInfo>(); _flushLock = new Object(); }
internal ChannelFactory(GrandOutput grandOutput, EventDispatcher dispatcher) { _grandOutput = grandOutput; _dispatcher = dispatcher; CommonSinkOnlyReceiver = new EventDispatcher.FinalReceiver(grandOutput.CommonSink, Util.Array.Empty <HandlerBase>(), null); }