public void Start(HttpImplanter httpImplanter) { if (!HttpListener.IsSupported) { Logger.Exit("不支持HttpListener!"); } if (!this._isStarted) { this._isStarted = true; this._ready = false; this._httpImplanter = httpImplanter; this.RunHttpServerThread(); while (!this._ready) { } } }
public void Start(HttpImplanter httpImplanter) { if (!HttpListener.IsSupported) { Logger.Exit("不支持HttpListener!"); } if (_isStarted) { return; } _isStarted = true; _ready = false; _httpImplanter = httpImplanter; RunHttpServerThread(); while (!_ready) { ; } }