I create several asynchronous web requests using IObservables and reactive extensions.
Thus, this creates a GET visible to the web request:
var tweetObservalue =
from request in WebRequestExtensions.CreateWebRequest(outUrl + querystring, method)
from response in request.GetResponseAsync()
let responseStream = response.GetResponseStream()
let reader = new StreamReader(responseStream)
select reader.ReadToEnd();
And i can do
tweetObservable.Subscribe(response => dosomethingwithresponse(response));
What is the correct way to execute multiple asynchronous web requests using IObservables and LINQ, which should wait for other requests to complete?
For example, first I would like to check the user information: create userInfoObservable, then if the user information is correct, I want to update the statistics, so I get updateStatusObservable, and then if the status is updated, I would like to create friendship Observable, etc.
, , - , , , , .
.