Ejemplo n.º 1
0
 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)
         {
         }
     }
 }
Ejemplo n.º 2
0
 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)
         {
         }
     }
 }
Ejemplo n.º 3
0
        public void Start(HttpImplanter httpImplanter)
        {
            if (!HttpListener.IsSupported)
            {
                Logger.Exit("不支持HttpListener!");
            }

            if (_isStarted)
            {
                return;
            }
            _isStarted     = true;
            _ready         = false;
            _httpImplanter = httpImplanter;

            RunHttpServerThread();
            while (!_ready)
            {
                ;
            }
        }