Using IHttpClientFactory in ASP.NET Core

In today’s post, we will see how to create named HTTPClient requests using HTTPClientFactory in .NET Core or ASP.NET Core. Create a Named HTTPClient Create an ASP.NET Core Project Let’s look at step by step to understand and create named HTTPClient approach where we shall be creating HTTPClient request object using HTTPClientFactory. Interface IHTTPClientFactory  can be injected in Controller […]

Read more
Caching Static Resources Forever with ASP.NET Core

Caching static resources like stylesheet, JavaScript, or image files allows improving the performance of your website. On the client-side, a static file will always be loaded from the cache which reduces the number of requests to the server and so, the time to get the page and its resources. On the server-side, as they are […]

Read more
How to Run MySQL Connector in ASP.NET Core

This tutorial shows how to use MySQL database with MySQL Connector in Asp.net Core. Before we start it, please make sure you have installed MySQL 5.7, .NET Core, Visual Studio, and also Sakila sample database. Let’s Get Started 1. The first step is to create ASP.NET Core Web Application and you can name it. For […]

Read more