/// <summary> /// Check if ETW tracing is enabled for the particular event /// </summary> /// <param name="eventIndex">The index of the event descriptor</param> static bool IsEtwEventEnabled(int eventIndex) { if (FxTrace.Trace.IsEtwProviderEnabled) { EnsureEventDescriptors(); return(FxTrace.IsEventEnabled(eventIndex)); } return(false); }
internal static bool BufferOutOfOrderMessageNoInstanceIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(6)); } return(true); }
internal static bool TransactedReceiveScopeEndCommitFailedIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(11)); } return(true); }
internal static bool TrackingProfileNotFoundIsEnabled() { if (!FxTrace.ShouldTraceVerbose) { return(false); } if (!FxTrace.ShouldTraceVerboseToTraceSource) { return(FxTrace.IsEventEnabled(12)); } return(true); }
internal static bool TraceCorrelationKeysIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(13)); } return(true); }
internal static bool StopSignpostEventIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(5)); } return(true); }
internal static bool ServiceEndpointAddedIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(3)); } return(true); }
internal static bool MaxPendingMessagesPerChannelExceededIsEnabled() { if (!FxTrace.ShouldTraceWarning) { return(false); } if (!FxTrace.ShouldTraceWarningToTraceSource) { return(FxTrace.IsEventEnabled(8)); } return(true); }
internal static bool InferredOperationDescriptionIsEnabled() { if (!FxTrace.ShouldTraceInformation) { return(false); } if (!FxTrace.ShouldTraceInformationToTraceSource) { return(FxTrace.IsEventEnabled(1)); } return(true); }
internal static bool DuplicateCorrelationQueryIsEnabled() { if (!FxTrace.ShouldTraceWarning) { return(false); } if (!FxTrace.ShouldTraceWarningToTraceSource) { return(FxTrace.IsEventEnabled(2)); } return(true); }
internal static bool CreateWorkflowServiceHostStartIsEnabled() { return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(9)); }
private static bool IsEtwEventEnabled(int eventIndex) { EnsureEventDescriptors(); return(FxTrace.IsEventEnabled(eventIndex)); }