internal override void InternalAbort(System.Activities.ActivityInstance instance, ActivityExecutor executor, Exception terminationReason)
 {
     using (NativeActivityAbortContext context = new NativeActivityAbortContext(instance, executor, terminationReason))
     {
         this.Abort(context);
     }
 }
Exemple #2
0
 internal override void InternalAbort(System.Activities.ActivityInstance instance, ActivityExecutor executor, Exception terminationReason)
 {
     using (NativeActivityAbortContext context = new NativeActivityAbortContext(instance, executor, terminationReason))
     {
         this.Abort(context);
     }
 }
 protected override void Abort(NativeActivityAbortContext context)
 {
     Bookmark bookmark = timerExpiredBookmark.Get(context);
     if (bookmark != null)
     {
         context.GetTimerExtension().CancelTimer(bookmark);
     }
     base.Abort(context);
 }
Exemple #4
0
 protected override void Abort(NativeActivityAbortContext context)
 {
     Bookmark timerBookmark = this.timerBookmark.Get(context);
     // The bookmark could be null in abort when user passed in a negative delay as a duration
     if (timerBookmark != null)
     {
         TimerExtension timerExtension = GetTimerExtension(context);
         timerExtension.CancelTimer(timerBookmark);
     }
     base.Abort(context);
 }
Exemple #5
0
        internal override void InternalAbort(ActivityInstance instance, ActivityExecutor executor, Exception terminationReason)
        {
            NativeActivityAbortContext context = new NativeActivityAbortContext(instance, executor, terminationReason);

            try
            {
                Abort(context);
            }
            finally
            {
                context.Dispose();
            }
        }
Exemple #6
0
 protected virtual void Abort(NativeActivityAbortContext context)
 {
     throw new NotImplementedException();
 }
 protected virtual void Abort(NativeActivityAbortContext context)
 {
 }
Exemple #8
0
 protected virtual void Abort(NativeActivityAbortContext context)
 {
 }
Exemple #9
0
 internal override void InternalAbort(ActivityInstance instance, ActivityExecutor executor, Exception terminationReason)
 {
     NativeActivityAbortContext context = new NativeActivityAbortContext(instance, executor, terminationReason);
     try
     {
         Abort(context);
     }
     finally
     {
         context.Dispose();
     }
 }
 protected override void Abort(NativeActivityAbortContext context)
 {
     var subscriptionHandle = this.SubscriptionHandle.Get(context);
     subscriptionHandle.ReleaseSubscription(context.GetExtension<Hosting.FolderWatcherExtension>());
     base.Abort(context);
 }
 protected override void Abort(NativeActivityAbortContext context)
 {
     SendReceiveExtension sendReceiveExtension = context.GetExtension<SendReceiveExtension>();
     if (sendReceiveExtension != null)
     {
         Bookmark pendingBookmark = this.extensionReceiveBookmark.Get(context);
         if (pendingBookmark != null)
         {
             sendReceiveExtension.Cancel(pendingBookmark);
         }
     }
     base.Abort(context);
 }
Exemple #12
0
		protected virtual void Abort (NativeActivityAbortContext context)
		{
			throw new NotImplementedException ();
		}