/// <summary>
        /// Gets trace definition like: Recovering instance locks failed due to the following exception
        /// Event description ID=4214, Level=Error, Channel=debug
        /// </summary>
        /// <param name="exception">Exception associated with the event</param>
        internal static void InstanceLocksRecoveryError(System.Exception exception)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, exception);

            if (TD.IsEtwEventEnabled(12))
            {
                TD.WriteEtwEvent(12, null, payload.SerializedException, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceErrorToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("InstanceLocksRecoveryError", Culture));
                TD.WriteTraceSource(12, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: End SQL command execution: {0}
        /// Event description ID=4201, Level=Verbose, Channel=debug
        /// </summary>
        /// <param name="param0">Parameter 0 for event: End SQL command execution: {0}</param>
        internal static void EndSqlCommandExecute(string param0)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(0))
            {
                TD.WriteEtwEvent(0, null, param0, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceVerboseToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("EndSqlCommandExecute", Culture), param0);
                TD.WriteTraceSource(0, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Timeout trying to open a SQL connection. The operation did not complete within the allotted timeout of {0}. The time allotted to this operation may have been a portion of a longer timeout.
        /// Event description ID=4209, Level=Error, Channel=debug
        /// </summary>
        /// <param name="eventTraceActivity">The event trace activity</param>
        /// <param name="param0">Parameter 0 for event: Timeout trying to open a SQL connection. The operation did not complete within the allotted timeout of {0}. The time allotted to this operation may have been a portion of a longer timeout.</param>
        internal static void TimeoutOpeningSqlConnection(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string param0)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(7))
            {
                TD.WriteEtwEvent(7, eventTraceActivity, param0, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceErrorToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("TimeoutOpeningSqlConnection", Culture), param0);
                TD.WriteTraceSource(7, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Queuing SQL retry with delay {0} milliseconds.
        /// Event description ID=4211, Level=Warning, Channel=debug
        /// </summary>
        /// <param name="eventTraceActivity">The event trace activity</param>
        /// <param name="param0">Parameter 0 for event: Queuing SQL retry with delay {0} milliseconds.</param>
        internal static void QueuingSqlRetry(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string param0)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(10))
            {
                TD.WriteEtwEvent(10, eventTraceActivity, param0, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceWarningToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("QueuingSqlRetry", Culture), param0);
                TD.WriteTraceSource(10, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Retrying a SQL command due to SQL error number {0}.
        /// Event description ID=4208, Level=Informational, Channel=debug
        /// </summary>
        /// <param name="eventTraceActivity">The event trace activity</param>
        /// <param name="param0">Parameter 0 for event: Retrying a SQL command due to SQL error number {0}.</param>
        internal static void RetryingSqlCommandDueToSqlError(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string param0)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(6))
            {
                TD.WriteEtwEvent(6, eventTraceActivity, param0, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceInformationToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("RetryingSqlCommandDueToSqlError", Culture), param0);
                TD.WriteTraceSource(6, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Giving up retrying a SQL command as the maximum number of retries have been performed.
        /// Event description ID=4207, Level=Informational, Channel=debug
        /// </summary>
        /// <param name="eventTraceActivity">The event trace activity</param>
        internal static void MaximumRetriesExceededForSqlCommand(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(5))
            {
                TD.WriteEtwEvent(5, eventTraceActivity, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceInformationToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("MaximumRetriesExceededForSqlCommand", Culture));
                TD.WriteTraceSource(5, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Encountered exception {0} while attempting to unlock instance.
        /// Event description ID=4206, Level=Error, Channel=debug
        /// </summary>
        /// <param name="param0">Parameter 0 for event: Encountered exception {0} while attempting to unlock instance.</param>
        internal static void UnlockInstanceException(string param0)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(4))
            {
                TD.WriteEtwEvent(4, null, param0, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceErrorToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("UnlockInstanceException", Culture), param0);
                TD.WriteTraceSource(4, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Command failed: {0}
        /// Event description ID=4205, Level=Error, Channel=debug
        /// </summary>
        /// <param name="eventTraceActivity">The event trace activity</param>
        /// <param name="param0">Parameter 0 for event: Command failed: {0}</param>
        /// <param name="exception">Exception associated with the event</param>
        internal static void FoundProcessingError(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string param0, System.Exception exception)
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, exception);

            if (TD.IsEtwEventEnabled(3))
            {
                TD.WriteEtwEvent(3, eventTraceActivity, param0, payload.SerializedException, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceErrorToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("FoundProcessingError", Culture), param0);
                TD.WriteTraceSource(3, description, payload);
            }
        }
        /// <summary>
        /// Gets trace definition like: Failed to extend lock expiration, lock expiration already passed or the lock owner was deleted. Aborting SqlWorkflowInstanceStore.
        /// Event description ID=4203, Level=Error, Channel=debug
        /// </summary>
        internal static void RenewLockSystemError()
        {
            TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);

            if (TD.IsEtwEventEnabled(2))
            {
                TD.WriteEtwEvent(2, null, payload.AppDomainFriendlyName);
            }
            if (FxTrace.ShouldTraceErrorToTraceSource)
            {
                string description = string.Format(Culture, ResourceManager.GetString("RenewLockSystemError", Culture));
                TD.WriteTraceSource(2, description, payload);
            }
        }