Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

calling HTTPClient from a web application

$
0
0

On ASP.Net WebAPI site there is a sample code that demonstrates invoking a WebAPI using HTTPClient from a console app (link provided below).  The document also cautions that HTTPClient can be instantiated only once for the life of the client application to prevent socket exception.  Is there a simple way to implement this in a ASP.Net MVC or Web Forms application ? (C#) 

https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>