Click or drag to resize

HistoryDataQueueTSetQueueListener Method

Set listener to queue capacity. Queue will call OnPop method every time, when queue drop some element. And OnPush method, when queue store element. Do not use listener with single element queue. Queue support any number of listeners.

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis.Base (in FinAnalysis.Base.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public virtual void SetQueueListener(
	IDataQueueListener<T> listener
)

Parameters

listener
Type: FinAnalysis.BaseIDataQueueListenerT
Class that implement IDataQueueListener interface. SummatorListener, MaximizerListener, MinimizerListener, DistributionListener etc.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when you trying to set listener on single element queue.
See Also