Blog

Filter posts by Category Or Tag of the Blog section!

Technical Skills, Software Development, Real World Solutions, Enterprise Applications.
In ASP.NET Core, the MediatR library is a famous open-source library that provides a simple and clean way to implement the mediator pattern for decoupling requests and responses. The mediator pattern ...

Tuesday, 17 January 2023
Microsoft AppFabric Cache is a distributed in-memory cache platform that can be used to improve the performance and scalability of .NET applications. To use AppFabric Cache in your application, you ca...

Saturday, 14 January 2023
A web application builder is a feature built into ASP.NET Core that simplifies the process of creating a web application by providing a set of pre-built templates and components that you can use to bu...

Monday, 07 November 2022
Analyzers in .net core are for informing the developers about potential issues in the code. The analyzers have been built into the C# compiler and every framework like asp.net core could have its own ...

Wednesday, 26 October 2022
Both middleware and filter in asp.net core are used for handling incoming requests. Middleware is used for the entire request pipeline but filters are used for a specific requests. One of the biggest ...

Wednesday, 29 September 2021
Rate limiting is an important technique to ensure the stability and security of web applications. In an ASP.NET application, rate limiting can be implemented in various ways. One approach is to use th...

Sunday, 04 July 2021
Recently, I had a task in a project to check the availability of the external APIs, I started writing a custom scheduler to call the targeted APIs and let the administrator know in a case of failed re...

Tuesday, 16 March 2021
After moving my website to dotnet core, in order to make the admin panel more secure, I decided to filter the admin panel and restrict it to my static IPs. there are lots of ways to do that, I persona...

Sunday, 21 February 2021
In order to get the base URL in controller scope, you simply get via Request:   public class HomeController : ControllerBase    {       &n...

Sunday, 22 November 2020
A Web Application Firewall (WAF) is a security tool designed to protect web applications by filtering and monitoring HTTP traffic between a web application and the Internet. It sits between the web ap...

Saturday, 03 October 2020
Apache Kafka is a distributed streaming platform used for building real-time streaming data pipelines and applications. It is designed to handle high volumes of data and provide low-latency access to ...

Tuesday, 04 August 2020
Recently I wanted to create a custom authentication, to authorize by ApiKey and ApiSecret in the header. To create such a middleware to affect the entire services of the system I created the following...

Friday, 24 April 2020
In asp.net core project templates, you can find something name Worker. It’s a service-based project which has the capability of being converted to windows service. After creating the project, yo...

Saturday, 11 April 2020
Recently I was tackling a problem with localization in asp.net core. I wanted to get the culture in every request from API and respond based on the requested culture. So I created the following middle...

Friday, 07 February 2020
I'm already working on a project and a challenging decision has been made to use asp.net core razor pages. Based on Microsoft definition:" ASP.NET Core Razor Pages is a page-focused framework...

Sunday, 01 December 2019
I just faced a problem in asp.net core which was specifying the bounded port. There is an extension in WebHostBuilder named  UseUrls() to specify that:    public class Prog...

Tuesday, 08 January 2019
There are a few ways to handle exceptions in asp.net core 2.1. using Middleware is so straightforward, and it handles the application exceptions as well as exceptions from filters and you can have ful...

Thursday, 08 November 2018
As I'm talking with Asp.net core these days, so I'm supposed to be eager about that! In asp.net core, in order to enable the CORS, you should refer to application startup and ConfigureServices...

Tuesday, 23 October 2018