/// <summary> /// 关闭服务 /// </summary> public void Stop() { if (IsRunning) { _httpServer.Stop(); IsRunning = false; } }
/// <summary> /// 关闭服务 /// </summary> public void Stop() { if (IsRunning) { _serverSocket.Stop(); IsRunning = false; } }