private static void TimerCallback(object state)
{
TransactionScope scope = state as TransactionScope;
if (null == scope)
{
TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
if (etwLog.IsEnabled())
{
etwLog.TransactionScopeInternalError("TransactionScopeTimerObjectInvalid");
}
throw TransactionException.Create(TraceSourceType.TraceSourceBase, SR.InternalError + SR.TransactionScopeTimerObjectInvalid, null);
}
scope.Timeout();
}