private void _timer_Elapsed(object sender, ElapsedEventArgs e) { try { if (!_IsDoingSomething) { _IsDoingSomething = true; ProcessDigitalOrders.ProcessOrder(); _IsDoingSomething = false; } } catch (Exception ex) { _IsDoingSomething = false; ProcessDigitalOrders.InsertLog(string.Format("\n\nError : {0}\n\t{1}", ex.Message, ex.StackTrace)); } }
private void InitFirstTrigger() { _IsDoingSomething = true; ProcessDigitalOrders.ProcessOrder(); _IsDoingSomething = false; }