Esempio n. 1
0
        /// <summary>
        /// 下行数据实体转buffer实体
        /// </summary>
        /// <param name="caches"></param>
        /// <returns></returns>
        private FromIncomBufferEntity BaseEntityToBuffer(BaseEntity caches)
        {
            var bufferSend = _parserManger.GetBytes(caches);

            return(new FromIncomBufferEntity
            {
                FindKey = FindKey,
                RoutingKey = caches.FunctionCode,
                Buffer = bufferSend
            });
        }