Пример #1
0
 public static void WriteTransportBefore(this DiagnosticListener diagnosticListener, TransportType transportType, TransportEventData eventData)
 {
     if (diagnosticListener.IsEnabled(SurgingBeforeTransport))
     {
         eventData.Headers = new TracingHeaders();
         diagnosticListener.Write(string.Format(SurgingBeforeTransport, transportType), eventData);
     }
 }
Пример #2
0
 public static void WriteTransportAfter(this DiagnosticListener diagnosticListener, TransportEventData eventData)
 {
     if (diagnosticListener.IsEnabled(SurgingAfterTransport))
     {
         eventData.Headers = new TracingHeaders();
         diagnosticListener.Write(SurgingAfterTransport, eventData);
     }
 }