コード例 #1
0
ファイル: ServiceTestBase.cs プロジェクト: xtarting/certify
 public void TestCleanup()
 {
     if (_svc != null)
     {
         _svc.Stop();
     }
 }
コード例 #2
0
 private async void StopService(bool logerror = true)
 {
     try
     {
         Logger.PrintText(new Run("Finalizando serviço..."), new Run(" --> "), new DateOptions(TextDecorationOptions.BOLD));
         bool status = OwinService.Stop();
         await ServiceStatusUC.ChangeStatus(!status);
     }
     catch (Exception ex)
     {
         if (logerror)
         {
             MessageBox.Show(ex.ToString(), "Erro ao finalizar serviço", MessageBoxButton.OK, MessageBoxImage.Error);
             Logger.PrintText(new Run("Erro na finalização do serviço..."), new Run(" --> "), new DateOptions(TextDecorationOptions.BOLD));
         }
     }
 }
コード例 #3
0
 public void Dispose()
 {
     _owinService.Stop();
 }