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);
 }