How to use implicit operator and explicit operator in C#
In C#, you can not normally convert or cast classes into an int variable or any other variable, and vice versa. By default, you cannot assign an int number to a class. But you can do this by using implicit operators and explicit operators ....
Read more
Implementing Load Balancing in Nginx
When the number of site users increases and site traffic increases, generally one instance of the program can not meet all requests and we have to run several instances of the program on multiple servers. However, we ....
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
Implement and publish a Worker Service in .Net Core 3
With the release of Net Core 3. The Asp.Net team introduced a new template for building background applications called Worker Service, which is available as part of the SDK. Worker Services are designed to do background work, and the main feature of ....
Read more
Accurate tagging of queries in the Entity Framework Core
Sometimes we may write queries in the EF and retrieve a lot of data from the database, and as the project gets bigger, the number of queries increases, making it difficult or impossible to find heavy queries. If you get these queries in SQL Profiler, it is almost impossible to find a written query ....
Read more