Exemple #1
0
        protected override void OnConvert(BufferEntity cEntity, BaseLogicEntity <TEntity> lEntity)
        {
            // 转换字节数据
            var msg    = OnConvert(lEntity.Entity);
            var caches = ProtoBufSerialize.Serialize(msg);

            // 创建通信实体
            InitilizeBuffer(cEntity, caches);
        }
Exemple #2
0
        protected override void SetRouteing(BufferEntity cEntity, BaseLogicEntity <TEntity> lEntity)
        {
            var routeingString = GetRouteingString(lEntity.Entity);

            cEntity.SetRouteing(routeingString);
        }