var client = new JsonServiceClient("https://api.example.com"); var response = await client.GetAsync("/weather");
var client = new JsonServiceClient(); client.Timeout = TimeSpan.FromSeconds(10); var response = await client.GetAsyncIn this example, we are creating a new JsonServiceClient object without specifying a base URL. Then we are setting the timeout for the request to 10 seconds. Finally, we are calling the GetAsync method with a full URL to retrieve a list of users in the form of an ApiResponse object. The library that contains the JsonServiceClient class is ServiceStack.Client.("https://api.example.com/users");