Unit Testing in Asp.Net Core with xUnit


Today, testing is one of the most important aspects of the development and production of software. Although writing a test reduces the speed of development, its benefits are evident during development, the addition of new features, and changes. ....
Read more

Synchronize MemoryCache in all instances


In projects where several instances are on the server and use MemoryCache , one of the problems is managing their Memory Cache. For example, on one instance there is data inside the Memory that is different from other instances ....
Read more

Implement Circuit Breaker in Asp.Net Core


Consider the scenario in which you send a request API to your application using HttpClient. If an external service becomes unavailable, requests sent to your application that you send to this API via HttpClient will be delayed ....
Read more

GitLab CI-CD .Net Core


This article covers the implementation of a simple example of CICD for a .Net Core project on GitLab with windows runner. In practice, we want to implement a service that automatically does what we do manually to publish the project. What do we do to publish a .NET ....
Read more

Implementing RabbitMQ in .Net Core


RabbitMq acts like a FIFO queue; That is, the data enters the queue in sequence and is sent to the consumers in order. To get started, create a new solution called RabbitMqExample and add the following projects. ....
Read more

Difference between IOptions, IOptionsSnapshot and IOptionsMonitor


In the previous article , we discussed how to read data from appsettings.json by IOptions . In this article, we will examine the differences between IOptions, IOptionsMonitor and IOptionsSnapshot. ....
Read more

Read data from appsettings.json in asp.net core


In asp.net core, parameters such as database connection strings , service-related configurations, data that is rarely changed are placed in the appsettings.json file and must be load from appsettings.json whenever needed from ....
Read more

Short polling implementation


Consider the scenario of making a cake: Add cake ingredients Add milk Add the eggs Mix the cake ingredients Prepare the oven cooking cake The cake is ready In this article, we want to implement a scenario similar to baking a cake in the form of short ....
Read more

Categorizing logs with Serilog in Asp.Net Core


In Serilog, logs are stored sequentially in a file or in Elasticsearch. These logs are stored randomly (per user request) in Elasticsearch or text file as the number of site users increases and the number increases. For exampl ....
Read more

Invalid cookies after changing users' passwords


In Asp.Net Core, cookies are validated every 30 minutes by default. This means that when the user logs in to the site and enters their information, the user's current claims are stored in the cookie and can access the pages they want, and the cookies are not validated for up to 30 minutes, eve ....
Read more