The difference between throw and throw ex


throw, reissues the error with the same StackTrace as before. issues exactly the same error as before. But if you use throw ex, it still issues the same error as before, but with one difference, it resets StackTrace! For example ....
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

The difference between async and sync


In the previous article, how the Thread Pool works was presented. In this article, we will examine the differences between async and sync methods, what is the difference between these two types, and why we should use async methods. When you write a method in sync ....
Read more