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) { var bookmark = this.timerExpiredBookmark.Get(context); if (bookmark != null) { context.GetTimerExtension().CancelTimer(bookmark); } base.Abort(context); }
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); }
protected override void Abort(NativeActivityAbortContext context) { try { StopMonitoring(context); } finally { // Clean-up even if there is an exception in the derived class. base.Abort(context); } }
protected override void Abort(NativeActivityAbortContext context) { base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { RemoveActiveBookmark(context); base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { base.Abort(context); Console.WriteLine("Abort Reason: {0}", context.Reason.Message); }
protected override void Abort(NativeActivityAbortContext context) { Kernel.Get(context)?.Close(); base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { UnregisterReceiveNotification(context); base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { _kernel?.Dispose(); base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { Clean().DoNotAwait(); base.Abort(context); }
protected override void Abort(NativeActivityAbortContext context) { this.StopMonitor(context); base.Abort(context); }