コード例 #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);
     }
 }
コード例 #2
0
 public void Stop()
 {
     if (xmppServer != null)
     {
         xmppServer.StopListen();
         xmppServer = null;
     }
     if (host != null)
     {
         host.Close();
         host = null;
     }
 }