This is following my question: http://stackoverflow.com/questions/2607038/c-how-to-consume-web-service-adheres-to-the-event-based-asynchronous-pattern
My program is calling the DoStuffAsync()
x many times in a batch, hence the callback will get invoked the same number of times upon OnComplete()
.
Is there a way to find out when my batch is finished such that I can generate a report on the success/failed results?
All I can think of is to have a static count variable for x and deduct 1 every time OnComplete() is called, but its kind of silly and error prone I'm afraid.
TIA.