J
john bailo
I'm writing a program to monitor the operation of a process.
Part of the process involves trigging a method,
then waiting for the creation of a flag file. I
want my code to pause at that point.
How would you recomment waiting and monitoring.
I can think of two ways:
0. Start a timer.
1. Raise an event to check for File.Exists("")
2. If File.Exists then Timer.Enabled=false.
Or
Do a while loop, with while(File.Exists())
What do you guys recommend?
Part of the process involves trigging a method,
then waiting for the creation of a flag file. I
want my code to pause at that point.
How would you recomment waiting and monitoring.
I can think of two ways:
0. Start a timer.
1. Raise an event to check for File.Exists("")
2. If File.Exists then Timer.Enabled=false.
Or
Do a while loop, with while(File.Exists())
What do you guys recommend?