[fix]修正UdpServer在接收广播时连续启动接收的错误,在StarAgent中,此时可能收到广播包,SocketFlags是Broadcast,需要清空,否则报错“参考的对象类型不支持尝试的操作”; 无需设置SocketOptionName.PacketInformation,在ReceiveMessageFromAsync时会自动设置,并且支持ipv6;
石头 authored at 2024-10-10 00:36:00 石头 committed at 2024-10-10 00:45:43
1.08 KiB
X
using System;
using System.Collections.Generic;

namespace XCode
{
    /// <summary>实体树接口</summary>
    public interface IEntityTree : IEntity
    {
        #region 属性
        /// <summary>父实体</summary>
        IEntity Parent { get; }

        /// <summary>子实体集合</summary>
        IList<IEntity> Childs { get; }

        /// <summary>子孙实体集合。以深度层次树结构输出</summary>
        IList<IEntity> AllChilds { get; }

        /// <summary>父亲实体集合。以深度层次树结构输出</summary>
        IList<IEntity> AllParents { get; }

        /// <summary>深度</summary>
        Int32 Deepth { get; }

        /// <summary>树形节点名,根据深度带全角空格前缀</summary>
        String TreeNodeText { get; }

        /// <summary>获取完整树,包含根节点,排除指定分支。多用于树节点父级选择</summary>
        /// <param name="exclude"></param>
        /// <returns></returns>
        IList<IEntity> FindAllChildsExcept(IEntityTree exclude);
        #endregion
    }
}