G
Guest
I am designing a multi-threaded application which responds to a
FileSystemWatcher events. Depending on the file created, I need to either
archive the file to a specific directory, or process the file (and maybe in
the future add more functions)
Since I will need to perform two (or more) separate actions on the file
(depending on what it is), what would be the best design scenario? Should I
implement a Producer/Consumer Queue, or some other? I am relatively new to
threading, but have done some extensive reading and playing around (but am
still a new comer to threading).
This application will ultimately run as a windows service, and I would like
to make it extendable.
Thanks In Advance.
FileSystemWatcher events. Depending on the file created, I need to either
archive the file to a specific directory, or process the file (and maybe in
the future add more functions)
Since I will need to perform two (or more) separate actions on the file
(depending on what it is), what would be the best design scenario? Should I
implement a Producer/Consumer Queue, or some other? I am relatively new to
threading, but have done some extensive reading and playing around (but am
still a new comer to threading).
This application will ultimately run as a windows service, and I would like
to make it extendable.
Thanks In Advance.