A safe file listener that handles duplicate events.(philosophil.spaces.live.com)

submitted by philosophilphilosophil(70) 3 years ago

I needed a file listener that would raise an event when a file was added to a folder. I wanted to implement a poor's man notification service and part of that functionality was that if notification message were dropped in the folder while the service was off-line then they would be processed as soon as the service was started. This article describes how I did it and how I had to handle the fact that a FileSystemWatcher would raise events on the same file many times.

add a comment |category: |Views: 16

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story