mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-17 12:48:11 +00:00
Bugfix in TimerTradeMonitor
SyncTrigger should only be set to true by default when the trigger will be initialized in the constructor.
This commit is contained in:
@@ -15,12 +15,11 @@ namespace MtApi.Monitors
|
|||||||
public TimerTradeMonitor(MtApiClient apiClient)
|
public TimerTradeMonitor(MtApiClient apiClient)
|
||||||
: this(apiClient, new TimeElapsedTrigger(TimeSpan.FromSeconds(10)))
|
: this(apiClient, new TimeElapsedTrigger(TimeSpan.FromSeconds(10)))
|
||||||
{
|
{
|
||||||
|
SyncTrigger = true; //Sync-Trigger set to true, to have the same behavior as before
|
||||||
}
|
}
|
||||||
public TimerTradeMonitor(MtApiClient apiClient, TimeElapsedTrigger timeElapsedTrigger)
|
public TimerTradeMonitor(MtApiClient apiClient, TimeElapsedTrigger timeElapsedTrigger)
|
||||||
: base(apiClient, timeElapsedTrigger)
|
: base(apiClient, timeElapsedTrigger)
|
||||||
{
|
{
|
||||||
SyncTrigger = true; //Sync-Trigger set to true, to have the same behavior as before
|
|
||||||
_timeElapsedTrigger = timeElapsedTrigger;
|
_timeElapsedTrigger = timeElapsedTrigger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@
|
|||||||
<Compile Include="FlagFontStyle.cs" />
|
<Compile Include="FlagFontStyle.cs" />
|
||||||
<Compile Include="Monitors\AvailabilityOrdersEventArgs.cs" />
|
<Compile Include="Monitors\AvailabilityOrdersEventArgs.cs" />
|
||||||
<Compile Include="Monitors\MtMonitorBase.cs" />
|
<Compile Include="Monitors\MtMonitorBase.cs" />
|
||||||
<Compile Include="Monitors\Triggers\ITrigger.cs" />
|
<Compile Include="Monitors\Triggers\IMonitorTrigger.cs" />
|
||||||
<Compile Include="Monitors\Triggers\NewBarTrigger.cs" />
|
<Compile Include="Monitors\Triggers\NewBarTrigger.cs" />
|
||||||
<Compile Include="Monitors\Triggers\TimeElapsedTrigger.cs" />
|
<Compile Include="Monitors\Triggers\TimeElapsedTrigger.cs" />
|
||||||
<Compile Include="MqlRates.cs" />
|
<Compile Include="MqlRates.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user