Benchmarks of the logging with LoggerMessage

Recently, I came across the following site: High-performance logging with LoggerMessage in ASP.NET Core. It says that the logging using LoggerMessage.Define style is a high-performance logging pattern because of: boxing of arguments when using extension methods repetitive message template parsing   Fair enough, so I decided to do a benchmark comparing LoggerMessage vs Logger extension…

0

Using strongly typed configuration in .NET Core console app

Imagine you write a console application and you need to read the configuration from the configuration file, in the strongly typed way. .NET core comes to help us with it. It’s usually demonstrated in ASP.NET Core MVC  but it’s also possible to use it in the console application. Let’s see. Show me it! Let’s create…

4