How it works...
This recipe is simple from an architectural point of view. There are two parameters the user can enter. These parameters affect the request to the server that will respond with a JSON structure. Apart from the parsing code, interesting things happen when the request is sent to the server. If we had sent a normal synchronous request to the server, the UI would be blocked until the response arrives at the client. Using the ExecuteAsynch method executes the actual request on a background thread so that the main thread remains free to update the UI. When the request finishes the execution, then an anonymous method is called in the main thread context. The TAniIndicator component is started just before the request starts and is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access