コード例 #1
0
 static void TraceMessage(ReceiveContext context)
 {
     using (var ms = new MemoryStream())
     {
         context.CopyBodyTo(ms);
         string msg = Encoding.UTF8.GetString(ms.ToArray());
         _logger.Debug(string.Format("{0} body:\n {1}", DateTime.UtcNow, msg));
     }
 }
		static void TraceMessage(ReceiveContext context)
		{
			using (var ms = new MemoryStream())
			{
				context.CopyBodyTo(ms);
				var msg = Encoding.UTF8.GetString(ms.ToArray());
				_logger.Debug(string.Format("{0} body:\n {1}", DateTime.UtcNow, msg));
			}
		}