Пример #1
0
 /// <summary>
 /// 关闭服务
 /// </summary>
 public void Stop()
 {
     if (IsRunning)
     {
         _httpServer.Stop();
         IsRunning = false;
     }
 }
Пример #2
0
 /// <summary>
 /// 关闭服务
 /// </summary>
 public void Stop()
 {
     if (IsRunning)
     {
         _serverSocket.Stop();
         IsRunning = false;
     }
 }