Click or drag to resize

IMarketRuleContainer Interface

The interface, describing the rules container.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public interface IMarketRuleContainer : ILogReceiver, 
	ILogSource, IDisposable

The IMarketRuleContainer type exposes the following members.

Properties
  NameDescription
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from ILogSource.)
Public propertyId
The unique identifier of the source.
(Inherited from ILogSource.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from ILogSource.)
Public propertyIsRulesSuspended
Is rules execution suspended.
Public propertyLogLevel
The logging level for the source.
(Inherited from ILogSource.)
Public propertyName
The source name.
(Inherited from ILogSource.)
Public propertyParent
Parental logs source.
(Inherited from ILogSource.)
Public propertyProcessState
The operation state.
Public propertyRules
Registered rules.
Top
Methods
  NameDescription
Public methodActivateRule
To activate the rule.
Public methodAddLog
To record a message to the log.
(Inherited from ILogReceiver.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodResumeRules
To restore rules execution, suspended through the method SuspendRules.
Public methodSuspendRules
To suspend rules execution until next restoration through the method ResumeRules.
Top
Events
  NameDescription
Public eventLog
New debug message event.
(Inherited from ILogSource.)
Top
Extension Methods
  NameDescription
Public Extension MethodActiveRule
To activate the rule.
(Defined by MarketRuleHelper.)
Public Extension MethodAddDebugLog
To record a debug message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(FuncString)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception, String)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(String, Object)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(FuncString)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(String, Object)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddLog
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddOrderErrorLog
Write order error to the log.
(Defined by TraderHelper.)
Public Extension MethodAddOrderInfoLog
Write order info to the log.
(Defined by TraderHelper.)
Public Extension MethodAddRuleLog
To write the message from the rule.
(Defined by MarketRuleHelper.)
Public Extension MethodAddVerboseLog
To record a verbose message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(FuncString)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(String, Object)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodGetLogLevel
Get LogLevel for the source. If the value is equal to Inherit, then parental source level is taken.
(Defined by LoggingHelper.)
Public Extension MethodSuspendRules
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.
(Defined by MarketRuleHelper.)
Public Extension MethodTryRemoveRule
To delete a rule. If a rule is executed at the time when this method is called, it will not be deleted.
(Defined by MarketRuleHelper.)
Public Extension MethodTryRemoveWithExclusive
To delete the rule and all opposite rules. If the rule is executed at the time when this method is called, it will not be deleted.
(Defined by MarketRuleHelper.)
Top
See Also