コード例 #1
0
ファイル: QueueProducer.cs プロジェクト: chinakarl/rabbitMQ
        /// <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);
        }