Http Response Caching Attribute in .NET Core Web APIs
Now a days, systems are expected to be prompt. You click on something and immediately you want to see the result. But for web applications, designing performant applications might be…
Now a days, systems are expected to be prompt. You click on something and immediately you want to see the result. But for web applications, designing performant applications might be…
ASP .NET Core provides a way to create RESTful services via .NET Core web API applications. Web APIs accept HTTP requests and return HTTP responses to the callers. Hence, it…
In previous article, we have seen three different ways to handle exceptions in .NET core web API applications. When a new ASP .NET Core web API project is created, the…
In this article, we are going to see three different ways to setup routing in ASP .NET Core web application. Route Templates Let's switch back to basic code sample. The…
In last article, we have seen that there are two middlewares - UseRouting and UseEndpoints - to enable ASP .NET Core web application. We briefly saw what is responsibility of…
There are various types of ASP .NET Core web applications, including MVC application, Razor Pages application, Signal R application, Web API application, and even gRPC service application. These web applications…
In this short article, let's have a look at a simple middleware to propagate the request headers. Why ? Application might be interacting with many backend APIs using HttpClient instances.…
In last few articles, we have been looking at how HttpClient can be used in .NET applications. We already know that creating new HttpClient instance for every request is not…
In last article, we have seen how a named HttpClient instance can be useful. It allows to keep all configurations at single place. These configurations are associated with a name.…
In last article, we have seen a basic example showing how http client middleware can be used to create an HttpClient instance using IHttpClientFactory. In this article, we will see…
In .NET applications, HttpClient is very well known class, and it is used for making HTTP requests from C# code. In this article, we will have a look HttpClient class…
In this article, let's have look at two middlewares - one for enabling directory browsing while the other for combining functionality of 3 middlewares into single one. Directory Browser Middleware…