I need to make n number of async web service calls from an async ASPX page.
Each WS call retrieves a portion of a binary file. The code then outputs the file block to the page's response stream.
offset = 0;
blocksize = 1024;
output = getFileBlock(path, offset, blocksize);
//BinaryWrite output to Response
offset += blocksize;
output = getFileBlock(path, offset, blocksize);
//BinaryWrite output to Response
//etc...
Each getFileBlock is a web service call which I would like to make async. However, I need these calls to happen in a specific order.
Any suggestions how to implement this?