コード例 #1
0
 /// <summary>
 /// Writes trace output for a binding failure plus triggers the event <see cref="BindingDiagnostics.BindingFailed"/>.
 /// The event will not be triggered if the TraceEventType is filtered out. No extra parameters are sent to the trace message or the event.
 /// </summary>
 /// <param name="binding">The binding is only included in the the event, not the trace message.</param>
 public static void TraceAndNotifyWithNoParameters(TraceEventType eventType, AvTraceDetails traceDetails, BindingExpressionBase binding)
 {
     TraceData.TraceAndNotify(eventType, traceDetails, binding, null, null);
 }
コード例 #2
0
 /// <summary>
 /// Writes trace output for a data failure (with no BindingExpression context available) plus triggers the event <see cref="BindingDiagnostics.BindingFailed"/>.
 // The event will not be triggered if the TraceEventType is filtered out.
 /// </summary>
 /// <param name="exception">If not null, used as both a trace and event parameter.</param>
 public static void TraceAndNotify(TraceEventType eventType, AvTraceDetails traceDetails, Exception exception = null)
 {
     object[] parameters = (exception != null) ? new object[] { exception } : null;
     TraceData.TraceAndNotify(eventType, traceDetails, null, parameters, parameters);
 }