A portion of my program has to keep track of a group of files, including their paths and hash codes in the memory.
Problem is, a user might like to edit the file using an external program at any point in time.
If this happens, I want my program to get notified so it updates the corresponding hash code of that file in its memory in addition to a number of other possible actions.
Ideally, I would like a new thread or a dedicated background thread to be notified and do the necessary action instead of the main GUI thread. I am using ConcurrentDictionary and similar thread-safe data structures.
I am using C# 5, Windows 7.