Exemple #1
0
 /// <summary>
 /// This method is called when the machine the service is running on
 /// is being shutdown.
 /// </summary>
 public void OnShutdown()
 {
     LoggerHelper.LogException("Mail service shutdown.");
     MailSender.RequestStop();
     CompleteChecker.RequestStop();
 }
Exemple #2
0
 /// <summary>
 /// This method is called when a service gets a request to pause,
 /// but not stop completely.
 /// </summary>
 public void OnPause()
 {
     LoggerHelper.LogException("Mail service paused.");
     MailSender.RequestStop();
     CompleteChecker.RequestStop();
 }
Exemple #3
0
 /// <summary>
 /// This method is called when a service gets a request to resume
 /// after a pause is issued.
 /// </summary>
 public void OnContinue()
 {
     LoggerHelper.LogException("Mail service continue.");
     MailSender.RequestContinue();
     CompleteChecker.RequestContinue();
 }
Exemple #4
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     LoggerHelper.LogException("Mail service disposed.");
     MailSender.RequestStop();
 }