public MessageLogTraceRecord(MessageLogSourceKind kind, Type type, MessageBuffer msgbuf)
 {
     Time    = DateTime.Now;
     Source  = kind;
     Type    = type;
     Message = msgbuf;
 }
Esempio n. 2
0
        public static void LogMessage(MessageLogSourceKind sourceKind, ref Message msg, int maxMessageSize)
        {
            var mb = msg.CreateBufferedCopy(maxMessageSize);

            msg = mb.CreateMessage();
            LogMessage(new MessageLogTraceRecord(sourceKind, msg.GetType(), mb));
        }
Esempio n. 3
0
		public MessageLogTraceRecord (MessageLogSourceKind kind, Type type, MessageBuffer msgbuf)
		{
			Time = DateTime.Now;
			Source = kind;
			Type = type;
			Message = msgbuf;
		}
Esempio n. 4
0
        public static void LogMessage(MessageLogSourceKind sourceKind, ref Message msg, long maxMessageSize)
        {
            if (maxMessageSize > int.MaxValue)
            {
                throw new ArgumentOutOfRangeException("maxMessageSize");
            }
            var mb = msg.CreateBufferedCopy((int)maxMessageSize);

            msg = mb.CreateMessage();
            LogMessage(new MessageLogTraceRecord(sourceKind, msg.GetType(), mb));
        }
Esempio n. 5
0
		public static void LogMessage (MessageLogSourceKind sourceKind, ref Message msg, int maxMessageSize)
		{
			var mb = msg.CreateBufferedCopy (maxMessageSize);
			msg = mb.CreateMessage ();
			LogMessage (new MessageLogTraceRecord (sourceKind, msg.GetType (), mb));
		}
Esempio n. 6
0
		public static void LogMessage (MessageLogSourceKind sourceKind, ref Message msg, long maxMessageSize)
		{
			if (maxMessageSize > int.MaxValue)
				throw new ArgumentOutOfRangeException ("maxMessageSize");
			var mb = msg.CreateBufferedCopy ((int) maxMessageSize);
			msg = mb.CreateMessage ();
			LogMessage (new MessageLogTraceRecord (sourceKind, msg.GetType (), mb));
		}