示例#1
0
 private void CheckIfRemove()
 {
     if (prefixes.Count <= 0 && (unhandled == null || unhandled.Count <= 0) && (all == null || all.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);
 }
示例#3
0
        void CheckIfRemove()
        {
            if (prefixes.Count > 0)
            {
                return;
            }

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

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

            EndPointManager.RemoveEndPoint(this, endpoint);
        }
示例#4
0
        void CheckIfRemove()
        {
            if (prefixes.Count > 0)
            {
                return;
            }

            ArrayList list = unhandled;

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

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

            EndPointManager.RemoveEndPoint(this, endpoint);
        }
示例#5
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, _endpoint);
        }