views:

116

answers:

0

As described above I am using a Backgroundworker, which is requesting data from NET. This request is done asynchronously (BeginGetResponse). When a response arrives a method is called to handle the recived data etc...

How could I synchronize the background worker and the asynchronous HttpWebRequest? Is it stupid to use an asynchronous httpwebrequest in combination with a backgroundworker?

Which synchronization objects should I use? Maybe just an EventWaitHandle?

Thank you