Пример #1
0
 public void Update(Account account)
 {
     Logger.LoggingObject.Log(ELogType.Info,
         LanguageManager.Singleton.GetTranslation(ETranslations.KillWorkerStoppingProcess),
         account.PID);
     account.SetLastStopTime(DateTime.Now);
 }
Пример #2
0
 public void Update()
 {
     Account.SetLastStopTime(DateTime.Now);
     Account.SetLastCrash(DateTime.Now);
     Logger.LoggingObject.Log(ELogType.Critical,
                              LanguageManager.Singleton.GetTranslation(ETranslations.WatchObjectNotRespondingFor),
                              Account.LoginName);
 }
 public void Update()
 {
     Account.SetLastStopTime(DateTime.Now);
     Account.SetLastCrash(DateTime.Now);
     Logger.LoggingObject.Log(ELogType.Critical,
                              LanguageManager.Singleton.GetTranslation(
                                  ETranslations.ViewStateObjectClientStuckSomewhere),
                              Account.LoginName, Config.Singleton.GeneralSettings.FrozenTime);
 }
 public IRelogComponent DoWork(Account account, ref ComponentResult result)
 {
     if (!account.RestartDelayActive && Check(account))
     {
         account.SetRestartDelayActive(true);
         account.SetLastStopTime(DateTime.Now);
     }
     result = IsReady(account)
         ? new ComponentResult
         {
             Result = EComponentResult.Halt,
             LogMessage =
                 LanguageManager.Singleton.GetTranslation(ETranslations.RestartDelayComponentHalt),
         }
         : new ComponentResult
         {
             Result = EComponentResult.Ignore,
         };
     return this;
 }