/// <summary> /// make timer procedure /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Timer_Elapsed(object sender, ElapsedEventArgs e) { try { Timer.Stop(); ProcessorHelper.MakeProcessing(); Timer.Start(); } catch (Exception exception) { string innerException = exception.InnerException == null ? "" : exception.InnerException.Message; string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name; } }
/// <summary> /// make timer procedure /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Timer_Elapsed(object sender, ElapsedEventArgs e) { try { Timer.Stop(); if (ServiceSettings == null) { SystemSettings = new SystemSettingsModel(); ServiceSettings = ServiceSettingHelper.InitServiceSettings(SystemSettings.SettingsPath); } ProcessorHelper.MakeProcessing(); Timer.Start(); } catch (Exception exception) { string innerException = exception.InnerException == null ? "" : exception.InnerException.Message; string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name; LogHelper.AddLog("Error in method: " + methodName + "; Exception: " + exception.Message + " Innner Exception: " + innerException); } }
/// <summary> /// debug mode method /// </summary> public void OnDebug() { ProcessorHelper.MakeProcessing(); }