예제 #1
0
            protected override bool Execute(CodeActivityContext context)
            {
                Activity activity = this.ParentActivity.Get(context);

                if (activity == null)
                {
                    return(true);
                }
                System.Activities.Statements.TransactionScope scope  = activity as System.Activities.Statements.TransactionScope;
                System.Activities.Statements.TransactionScope scope2 = this.TransactionScope.Get(context);
                return((scope.AbortInstanceOnTransactionFailure == scope2.AbortInstanceOnTransactionFailure) || !scope2.abortInstanceFlagWasExplicitlySet);
            }
예제 #2
0
            protected override bool Execute(CodeActivityContext context)
            {
                Activity activity = this.ParentActivity.Get(context);

                if (activity != null)
                {
                    System.Activities.Statements.TransactionScope scope = activity as System.Activities.Statements.TransactionScope;
                    if (scope.IsolationLevel != ((IsolationLevel)this.CurrentIsolationLevel.Get(context)))
                    {
                        return(false);
                    }
                }
                return(true);
            }