Esempio n. 1
0
        public void Close()
        {
            _socket.Close();

            clearConnections();
            EndPointManager.RemoveEndPoint(_endpoint);
        }
 private void leaveIfNoPrefix()
 {
     if (this._prefixes.Count <= 0)
     {
         List <HttpListenerPrefix> httpListenerPrefixes = this._unhandled;
         if ((httpListenerPrefixes == null ? true : httpListenerPrefixes.Count <= 0))
         {
             httpListenerPrefixes = this._all;
             if ((httpListenerPrefixes == null ? true : httpListenerPrefixes.Count <= 0))
             {
                 EndPointManager.RemoveEndPoint(this._endpoint);
             }
         }
     }
 }
 private void checkIfRemove()
 {
     if (this._prefixes.Count > 0)
     {
         return;
     }
     if (this._unhandled != null && this._unhandled.Count > 0)
     {
         return;
     }
     if (this._all != null && this._all.Count > 0)
     {
         return;
     }
     EndPointManager.RemoveEndPoint(this, this._endpoint);
 }
Esempio n. 4
0
        private void checkIfRemove()
        {
            if (_prefixes.Count > 0)
            {
                return;
            }
            List <HttpListenerPrefix> unhandled = _unhandled;

            if (unhandled == null || unhandled.Count <= 0)
            {
                unhandled = _all;
                if (unhandled == null || unhandled.Count <= 0)
                {
                    EndPointManager.RemoveEndPoint(this);
                }
            }
        }
Esempio n. 5
0
        private void leaveIfNoPrefix()
        {
            if (_prefixes.Count > 0)
            {
                return;
            }

            var prefs = _unhandled;

            if (prefs != null && prefs.Count > 0)
            {
                return;
            }

            prefs = _all;
            if (prefs != null && prefs.Count > 0)
            {
                return;
            }

            EndPointManager.RemoveEndPoint(_endpoint);
        }
Esempio n. 6
0
        void CheckIfRemove()
        {
            if (prefixes.Count > 0)
            {
                return;
            }

            var list = unhandled;

            if (list != null && list.Count > 0)
            {
                return;
            }

            list = all;
            if (list != null && list.Count > 0)
            {
                return;
            }

            EndPointManager.RemoveEndPoint(this, endpoint);
        }
Esempio n. 7
0
        private void checkIfRemove()
        {
            if (_prefixes.Count > 0)
            {
                return;
            }

            var list = _unhandled;

            if (list != null && list.Count > 0)
            {
                return;
            }

            list = _all;
            if (list != null && list.Count > 0)
            {
                return;
            }

            EndPointManager.RemoveEndPoint(this);
        }
        private void checkIfRemove()
        {
            if (_prefixes.Count > 0)
            {
                return;
            }

            var prefs = _unhandled;

            if (prefs != null && prefs.Count > 0)
            {
                return;
            }

            prefs = _all;
            if (prefs != null && prefs.Count > 0)
            {
                return;
            }

            EndPointManager.RemoveEndPoint(this);
        }