Code
protected override void OnStarting()
{
ProcessRules(() =>
{
this
.When(_tradingStrategy.StrategyNewMyTrades())
.Do(ReHedge);
this
.When(Security.Changed())
.Do(ReHedge);
});
base.OnStarting();
}
Code
protected override void OnStarting()
{
ProcessRules(() =>
{
this
.When(_tradingStrategy.StrategyNewMyTrades())
.Do(ReHedge);
});
ProcessRules(() =>
{
this
.When(Security.Changed())
.Do(ReHedge);
});
base.OnStarting();
}
Оба варианта будут работать одинаково?