How does ConfigureAwait(false) work?


If you have worked with Asp.Net MVC, you are probably familiar with this word. When a request is sent to Asp.Net MVC applications, request information such as Uri, Headers, RemoteAddress, etc. is contained in HttpContext.Current. ....
Read more

Customize Redis commands with LuaScript in Asp.Net Core


If we want to call Redis commands directly into the program, we can use LuaScript, which is located in the StackExchange.Redis library. Using LuaScript, we can execute several Redis commands in one request. Consider a scenario in which the number of times an API or me ....
Read more

Create custom HttpMethod in Asp.Net Core


In Asp.Net Core there are 7 HttpMethod attributes by default: (HttpDelete, HttpGet, HttpPost, HttpPut, HttpOption, HttpPatch, HttpHead). In this article, we want to create two custom attributes called HttpRead and HttpWrite that use HttpWrite ....
Read more

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