Click or drag to resize

HistoryMultipleDataQueueTSetQueueListener 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(
	IPortfolioDataQueueListener<T> listener
)

Parameters

listener
Type: FinAnalysis.BaseIPortfolioDataQueueListenerT
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