Communication lib question

Oct 28, 2011 at 4:48 PM

I'm able to use the communications lib to make post requests that return JSON.  What if I need to make multiple requests based on a token in the initial response because the service will only return a maximum number of results.  Basically, iterating requests until complete?  Does the fact reactive extensions are used make this possible or do I need a Coroutine implementation.

Oct 28, 2011 at 8:21 PM

So am correct in thinking the first request returns a token which is supplied to subsequent N requests until an exit criteria is satisfied?

Nov 1, 2011 at 1:27 PM

I think what you need is a 'SelectMany' after the first item in the sequence is returned, something like the pseudo code below:

var test = resourceClient<Foo>.Get().SelectMany(result => GetTheRestOfThem(result.SomeValue));
Feb 19, 2012 at 6:08 AM

Yes, both correct, thanks.