Class MarketRuleList
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
Rule list.
public class MarketRuleList : SynchronizedSet<IMarketRule>, IList, ICollection, ISynchronizedCollection<IMarketRule>, ISet<IMarketRule>, ICollectionEx<IMarketRule>, IMarketRuleList, INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, IList<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, ISynchronizedCollection
- Inheritance
-
MarketRuleList
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the MarketRuleList.
Constructors
MarketRuleList(IMarketRuleContainer)
Rule list.
public MarketRuleList(IMarketRuleContainer container)
Parameters
container
IMarketRuleContainerThe rules container.
Remarks
Initializes a new instance of the MarketRuleList.
Methods
GetRulesByToken(object)
To get all rules, associated with tokens.
public IEnumerable<IMarketRule> GetRulesByToken(object token)
Parameters
token
objectToken rules.
Returns
- IEnumerable<IMarketRule>
All rules, associated with token.
OnAdded(IMarketRule)
Adding the element.
protected override void OnAdded(IMarketRule item)
Parameters
item
IMarketRuleElement.
OnClearing()
Clearing elements.
protected override bool OnClearing()
Returns
- bool
The sign of possible action.
OnRemoved(IMarketRule)
Deleting the element.
protected override void OnRemoved(IMarketRule item)
Parameters
item
IMarketRuleElement.