I have a windows service that is written in C#. It reads text file which are created in a folder. It keeps watching the folder for if new text file is generated. If a new text file is generated, It parses the complete file and moves its content to database and finally the file is deleted. Now, if suppose this service crashes inbetween what should I do. So I was thinking of implementing another windows service which would monitor this service for its crash. But I dont know the way to really do it. This is my first dive to windows service and needs to solve this. If somebody could suggest me ideas, it would be really gud help to me.
Thanks in advance.