Ejemplo n.º 1
0
        private void OnCompletion(NativeActivityContext context, System.Activities.ActivityInstance instance)
        {
            RuntimeTransactionHandle handle = this.runtimeTransactionHandle.Get(context);

            if (this.delayWasScheduled.Get(context))
            {
                handle.CompleteTransaction(context, new BookmarkCallback(this.OnTransactionComplete));
            }
            else
            {
                handle.CompleteTransaction(context);
            }
        }
Ejemplo n.º 2
0
        void OnCompletion(NativeActivityContext context, ActivityInstance instance)
        {
            RuntimeTransactionHandle transactionHandle = this.runtimeTransactionHandle.Get(context);

            Fx.Assert(transactionHandle != null, "RuntimeTransactionHandle is null");

            if (this.delayWasScheduled.Get(context))
            {
                transactionHandle.CompleteTransaction(context, new BookmarkCallback(OnTransactionComplete));
            }
            else
            {
                transactionHandle.CompleteTransaction(context);
            }
        }