示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransportEventData" /> class.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="method">The method.</param>
 /// <param name="traceId">The trace identifier.</param>
 /// <param name="address">The address.</param>
 public TransportEventData(DiagnosticMessage message, string method, string traceId, string address)
     : base(Guid.Parse(message.Id))
 {
     Message       = message;
     RemoteAddress = address;
     Method        = method;
     TraceId       = traceId;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReceiveEventData" /> class.
 /// </summary>
 /// <param name="message">The message.</param>
 public ReceiveEventData(DiagnosticMessage message)
     : base(Guid.Parse(message.Id))
 {
     Message = message;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransportErrorEventData" /> class.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="ex">The ex.</param>
 public TransportErrorEventData(DiagnosticMessage message, Exception ex)
     : base(Guid.Parse(message.Id))
 {
     Message   = message;
     Exception = ex;
 }