Beispiel #1
0
 public void Sell(SellOptions options)
 {
     lock (SyncRoot)
     {
         if (CanSell(options, out string message))
         {
             tradingTimedTask.InitiateSell(options);
         }
         else
         {
             loggingService.Debug(message);
         }
     }
 }
Beispiel #2
0
 public void Sell(SellOptions options)
 {
     lock (syncRoot)
     {
         PauseTasks();
         try
         {
             if (CanSell(options, out string message))
             {
                 tradingTimedTask.InitiateSell(options);
             }
             else
             {
                 loggingService.Debug(message);
             }
         }
         finally
         {
             ContinueTasks();
         }
     }
 }