/// <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);
 }
Esempio n. 2
0
 internal static bool UnlockInstanceExceptionIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(4));
     }
     return(true);
 }
Esempio n. 3
0
 internal static bool FoundProcessingErrorIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(3));
     }
     return(true);
 }
Esempio n. 4
0
 internal static bool EndSqlCommandExecuteIsEnabled()
 {
     if (!FxTrace.ShouldTraceVerbose)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceVerboseToTraceSource)
     {
         return(FxTrace.IsEventEnabled(0));
     }
     return(true);
 }
Esempio n. 5
0
 internal static bool TimeoutOpeningSqlConnectionIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(7));
     }
     return(true);
 }
Esempio n. 6
0
 internal static bool RunnableInstancesDetectionErrorIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(11));
     }
     return(true);
 }
Esempio n. 7
0
 internal static bool SqlExceptionCaughtIsEnabled()
 {
     if (!FxTrace.ShouldTraceWarning)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceWarningToTraceSource)
     {
         return(FxTrace.IsEventEnabled(8));
     }
     return(true);
 }
Esempio n. 8
0
 internal static bool RenewLockSystemErrorIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(2));
     }
     return(true);
 }
Esempio n. 9
0
 internal static bool RetryingSqlCommandDueToSqlErrorIsEnabled()
 {
     if (!FxTrace.ShouldTraceInformation)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceInformationToTraceSource)
     {
         return(FxTrace.IsEventEnabled(6));
     }
     return(true);
 }
Esempio n. 10
0
 internal static bool QueingSqlRetryIsEnabled()
 {
     if (!FxTrace.ShouldTraceWarning)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceWarningToTraceSource)
     {
         return(FxTrace.IsEventEnabled(10));
     }
     return(true);
 }
Esempio n. 11
0
 internal static bool MaximumRetriesExceededForSqlCommandIsEnabled()
 {
     if (!FxTrace.ShouldTraceInformation)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceInformationToTraceSource)
     {
         return(FxTrace.IsEventEnabled(5));
     }
     return(true);
 }
Esempio n. 12
0
 internal static bool LockRetryTimeoutIsEnabled()
 {
     if (!FxTrace.ShouldTraceWarning)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceWarningToTraceSource)
     {
         return(FxTrace.IsEventEnabled(9));
     }
     return(true);
 }
Esempio n. 13
0
 internal static bool InstanceLocksRecoveryErrorIsEnabled()
 {
     if (!FxTrace.ShouldTraceError)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceErrorToTraceSource)
     {
         return(FxTrace.IsEventEnabled(12));
     }
     return(true);
 }
Esempio n. 14
0
 private static bool IsEtwEventEnabled(int eventIndex)
 {
     EnsureEventDescriptors();
     return(FxTrace.IsEventEnabled(eventIndex));
 }