I need to call the web service several times to get data, and then put those data into my database, so I\'ve got the following code:
foreach (string v in options
This would initiate asynchronous call
public delegate IList SaveToDb(IList myParam);
SaveToDb _saveToDb= new SaveToDb(objService.SaveToDb);
IAsyncResult asyncSearchResult = saveToDb.BeginInvoke(input,null,null)
This would wait for execution to complete and return value:-
IList result=asyncSearchResult EndInvoke();