How to tell when my batch of EAP calls are completed?
Posted
by codemonkie
on Stack Overflow
See other posts from Stack Overflow
or by codemonkie
Published on 2010-04-19T10:03:23Z
Indexed on
2010/04/19
10:23 UTC
Read the original article
Hit count: 267
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.
© Stack Overflow or respective owner