Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8736613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:20:40+00:00 2026-06-13T10:20:40+00:00

My event will be fired whenever a specific file on my system is modified.

  • 0

My event will be fired whenever a specific file on my system is modified. The processing done on the file when the event is fired is estimated to be around 10 minutes. I’d like to know if it’s possible to cancel the processing and restart the processing if the file is modified again before the processing for the first modification is done. If so, how can I accomplish this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:20:42+00:00Added an answer on June 13, 2026 at 10:20 am

    It seems to me you don’t want to cancel the event but the handling of the previous event. Assuming that’s the case, you’ll need to make your file-processing code cancellation aware.

    I suggest you use a CancellationToken and CancellationTokenSource because they are available in the framework already. When you start handling the event you create a new cancellation token source and save it somewhere, and clear it when you’re done. If you get a new event check whether there’s a saved cts, and request a cancellation if that’s the case.

    The link I included contains some code samples on how to write your processing code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When an asp.net button is fired, will the button's event get fired before the
When entering a DOM element, mouseover event will happen. Upon moving the mouse around
I've created an overlay that will popup whenever someone wants to upload a file
I am trying to write something that will fire an event anytime the hard
I want to have a generic event that I can fire that will take
Looking ahead in the likely event we will build a server farm rather than
Im trying to create an ajax (post) event that will populate a table in
I have an event handler that will remove an element from a list of
I need an event/events that will do the following: After user selects text/DOM element,
I am working on creating a web app that will query event logs on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.