Which code segment should you use?

You are developing a .NET application that uses the HttpClient type to call an ASP.NET
Web API application. The API call returns a list of customers in JSON format and logs the
results. The URL for the API call is in a variable named address.
You need to make the API call without blocking.
Which code segment should you use?

You are developing a .NET application that uses the HttpClient type to call an ASP.NET
Web API application. The API call returns a list of customers in JSON format and logs the
results. The URL for the API call is in a variable named address.
You need to make the API call without blocking.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 11

Your email address will not be published. Required fields are marked *


Lclhst

Lclhst

Should be a, its a list of customers and it shouldnt block.

A uses jsonarray (which is a list) + proper use of async methods non blocking.

chicco

chicco

I think A is the correct answer: you can make a forEach on JsonArray and this is the right use of async operation.

Google

Google

Very few internet sites that come about to become detailed beneath, from our point of view are undoubtedly well really worth checking out.

youtubemp3download3- Youtube to mp3 converter

youtubemp3download3- Youtube to mp3 converter

although internet websites we backlink to below are considerably not related to ours, we really feel they may be actually really worth a go by way of, so possess a look

it services omaha

it services omaha

we prefer to honor many other internet sites around the net, even when they arent linked to us, by linking to them. Below are some webpages really worth checking out

paper fans

paper fans

Sites of interest we have a link to

create an app

create an app

although internet websites we backlink to beneath are considerably not connected to ours, we really feel they are really really worth a go by means of, so possess a look

how to make an app for free

how to make an app for free

Every as soon as inside a while we opt for blogs that we read. Listed beneath are the latest sites that we choose

Fenster

Fenster

one of our visitors recently recommended the following website

see this

see this

below you will find the link to some websites that we think you must visit