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

ValidateAsyncFlowOptionAndESInteropOption() private method

private ValidateAsyncFlowOptionAndESInteropOption ( ) : void
return void
        private void ValidateAsyncFlowOptionAndESInteropOption()
        {
            if (AsyncFlowEnabled)
            {
                EnterpriseServicesInteropOption currentInteropOption = _interopOption;
                if (!_interopModeSpecified)
                {
                    // Transaction.InteropMode will take the interop mode on
                    // for the scope in currentScope into account.
                    currentInteropOption = Transaction.InteropMode(_savedCurrentScope);
                }

                if (currentInteropOption != EnterpriseServicesInteropOption.None)
                {
                    throw new NotSupportedException(SR.AsyncFlowAndESInteropNotSupported);
                }
            }
        }