Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageContext"/> struct.
 /// </summary>
 public MessageContext(MessageSource source, DateTime dateTime)
 {
     Source   = source;
     DateTime = dateTime;
 }
Exemplo n.º 2
0
 private static string GetCallerNameText(MessageSource source)
 {
     return($"<{source.Type?.Name ?? "unknown_type"}::{source.Method?.Name ?? "unknown_method"}>");
 }