Пример #1
0
 /// <summary>
 /// 启动服务
 /// </summary>
 public void Start()
 {
     if (!IsRunning)
     {
         _httpServer.Start();
         IsRunning = true;
     }
 }
Пример #2
0
 /// <summary>
 /// 启动服务
 /// </summary>
 public void Start()
 {
     if (!IsRunning)
     {
         _serverSocket.Start();
         IsRunning = true;
     }
 }