MarketRule
The rule, activating action at market condition occurrence.
Erbt von: BaseLogReceiver
Implementiert: IMarketRule, IDisposable
Konstruktoren
Eigenschaften
Container : IMarketRuleContainer
The rules container.
ExclusiveRules : ISynchronizedCollection<IMarketRule>
Rules, opposite to given rule. They are deleted automatically at activation of this rule.
IsSuspended : bool
Is the rule suspended.
Methoden
Activate(T)
To activate the rule.
- arg
- The value, which will be sent to processor, registered through Action{.
Activate()
To activate the rule.
Activated(Action) : MarketRule<T, T>
To add the processor, which will be called at action activation.
- handler
- The handler.
Rückgabe: Rule.
Activated``1(Action<T>)
To add the processor, accepting argument from Func{, which will be called at action activation.
- handler
- The handler.
Rückgabe: Rule.
CanFinish() : bool
Can the rule be ended.
Rückgabe: , if rule is not required any more. Otherwise, .
DisposeManaged()
Release resources.
Do(Action<T>) : MarketRule<T, T>
To add the action, activated at occurrence of condition.
- action
- Action.
Rückgabe: Rule.
Do(Action<MarketRule<T, T>, T>) : MarketRule<T, T>
To add the action, activated at occurrence of condition.
- action
- Action.
Rückgabe: Rule.
Do(Action) : MarketRule<T, T>
To add the action, activated at occurrence of condition.
- action
- Action.
Rückgabe: Rule.
Do``1(Func<MarketRule<T, T>, T, T>)
To add the action, returning result, activated at occurrence of condition.
- action
- The action, returning a result.
Rückgabe: Rule.
Do``1(Func<T, T>)
To add the action, returning result, activated at occurrence of condition.
- action
- The action, returning a result.
Rückgabe: Rule.
Do``1(Func<T>)
To add the action, returning result, activated at occurrence of condition.
- action
- The action, returning a result.
Rückgabe: Rule.
Until(Func<bool>) : MarketRule<T, T>
To make the rule periodical (will be called until returns ).
- canFinish
- The criteria for end of periodicity.
Rückgabe: Rule.