I have a while loop in a windows service that runs for some x times and initiates x phone calls after reading them from some file. Now, if I want to make a user interface that makes it possible to stop phone calls, that is, break the while loop before it ends. How can I do it?
Suppose I have a function.
DialCalls(x) { for(int i= 0 ; i<x ; i++) {
2,3 DialCalls functions can work in different threads, since I also executed threads in the application. Thus, in principle, the best way to break a loop from a web page is possible.
user959883
source share