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

A way to restrict APIs that each request can be called with a new key (Time-based One-time Password)


TOTP is an algorithm that uses clocks to generate one-time passwords. In this way, a unique code will be generated at any moment. If you have worked with Google Authenticator, you are familiar with this concept. In this article, we want to implement a scenario in which APIs must send a ....
Read more

Introducing Dapper


What is a Dapper? Dapper is a small and very fast ORM developed by Stackoverflow. Dapper works with any type of database and is not specific to a specific database. Using Dapper, you can execute SQL statements as Stored Procedure or as direct SQL statements. If you have to write ....
Read more

Use IClientModelValidator in Asp.Net Core 3.1


If we want to create an attribute for validation, we usually create a class and inherit from the ValidationAttribute. And then we override the IsValid method according to the need we have for that attribute. For example, in the following we have created an attribute that compares two properties ....
Read more