I have a Windows Service that uses System.Collections.Generic.Queue to keep some files that I’ll process.
The problem is when my service fail, and if I restart the service, it looses the files that need to process.
How could I persist my queue? I was thinking if is it possible to serialize the queue and write it in a file. What do you think?
Although serialize the queue as @the_joric said I also a good solution, I understand that Microsoft Message Queue (MSMQ) will work better, and fit well to my case.