Class MarketRuleList
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
Rule list.
public class MarketRuleList : SynchronizedSet<IMarketRule>, IMarketRuleList, INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, IList<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, ISynchronizedCollection
- Inheritance
-
MarketRuleList
- Implements
-
INotifyList<IMarketRule>INotifyCollection<IMarketRule>ISynchronizedCollection
- Extension Methods
Constructors
MarketRuleList(IMarketRuleContainer)
Initializes a new instance of the MarketRuleList.
public MarketRuleList(IMarketRuleContainer container)
Parameters
container
IMarketRuleContainerThe rules container.
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.