예제 #1
0
        /// <summary>
        /// Adds a trace event to the log.
        /// </summary>
        /// <param name="eventArgs">The <see cref="TransmissionPayloadTraceEventArgs"/> instance containing the event data.</param>
        public void TraceWrite(TransmissionPayloadTraceEventArgs eventArgs)
        {
            if (!TraceEnabled)
            {
                return;
            }

            lock (mTraceObj)
            {
                if (TraceLog == null)
                {
                    TraceLog = new List <TransmissionPayloadTraceEventArgs>();
                }

                TraceLog.Add(eventArgs);
            }
        }
예제 #2
0
 /// <summary>
 /// Transmissions the payload trace set.
 /// </summary>
 /// <param name="tracker">The tracker.</param>
 /// <param name="eventArgs">The <see cref="TransmissionPayloadTraceEventArgs"/> instance containing the event data.</param>
 public static void TransmissionPayloadTraceWrite(this TaskTracker tracker, TransmissionPayloadTraceEventArgs eventArgs)
 {
     tracker.ToTransmissionPayload()?.TraceWrite(eventArgs);
 }