Пример #1
0
 /// <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;
     }
 }
Пример #2
0
 /// <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);
     }
 }
Пример #3
0
 /// <summary>
 /// debug mode method
 /// </summary>
 public void OnDebug()
 {
     ProcessorHelper.MakeProcessing();
 }