Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T">原始强类型对象</typeparam>
        /// <param name=""></param>
        /// <param name=""></param>
        public static EventMessageResult EventMessageResultCreateInstance <T>(T origObject)
        {
            var result = new EventMessageResult
            {
                CreateTime = DateTime.Now,
            };

            return(result);
        }
Пример #2
0
        internal static EventMessageResult BuildMessageResult(byte[] bytes)
        {
            var eventMessage = MessageSerializerFactory.CreateMessageSerializerInstance().Deserializer <EventMessage>(bytes);
            var result       = new EventMessageResult
            {
                MessageBytes      = eventMessage.EventMessageBytes,
                EventMessageBytes = eventMessage
            };

            return(result);
        }