Click or drag to resize

MarketRuleHelperSuspendRules Method (IMarketRuleContainer, Action)

To process rules in suspended mode (for example, create several rules and start them up simultaneously). After completion of method operation all rules, attached to the container resume their activity.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static void SuspendRules(
	this IMarketRuleContainer container,
	Action action
)

Parameters

container
Type: StockSharp.AlgoIMarketRuleContainer
The rules container.
action
Type: SystemAction
The action to be processed at suspended rules. For example, to add several rules simultaneously.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMarketRuleContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also