private MessageBatcher MakeBatcher() { lock (this) { if (_batcher == null) { _timer = new AggregatorTimeSignalGenerator(this, _batchInterval); _batcher = new MessageBatcher(); } } return(_batcher); }
public BatchingListenerContainer(object listener, MessageBatcher batcher) { _batcher = batcher; _listener = new WeakReference(listener as IListener <T>); _listenerContainer = new ListenerContainer <T>(listener); }