Exemple #1
0
 public void Stop()
 {
     try
     {
         if (xmppServer != null)
         {
             xmppServer.StopListen();
             xmppServer.Dispose();
             xmppServer = null;
         }
         if (host != null)
         {
             host.Close();
             host = null;
         }
         if (cleaner != null)
         {
             cleaner.Stop();
         }
     }
     catch (Exception ex)
     {
         log.Error("Error while stopping the service", ex);
     }
 }
Exemple #2
0
 public void Stop()
 {
     if (xmppServer != null)
     {
         xmppServer.StopListen();
         xmppServer.Dispose();
         xmppServer = null;
     }
     if (host != null)
     {
         host.Close();
         host = null;
     }
     if (cleaner != null)
     {
         cleaner.Stop();
     }
 }