System.Transactions.TransactionScope.TimerCallback C# (CSharp) Method

TimerCallback() private static method

private static TimerCallback ( object state ) : void
state object
return void
        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();
        }