Пример #1
0
        }         // Name

        public override void Execute()
        {
            lock (updateCurrencyRatesLock) {
                if (isExecuting)
                {
                    Log.Warn("Update currency rates is already in progress.");
                    return;
                }                 // if

                isExecuting = true;
            }             // lock

            try {
                CurrencyUpdateController.Run();
            } catch (Exception ex) {
                Log.Error(ex, "UpdateCurrencyRates failed");
            }
            lock (updateCurrencyRatesLock) {
                isExecuting = false;
            }     // lock
        }         // Execute
Пример #2
0
 public void TestCurrencyUpdateControllerRun()
 {
     CurrencyUpdateController.Run();
 }