- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Stripping extra dependencies in .NET NativeAOT apps using linker substitutions
In this post I describe how to perform method-substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused…

Finding the total number of processors on a machine with .NET
In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET…

Configuring contextual options with Microsoft.Extensions.Options.Contextual
In this post I take a brief look at the Microsoft.Extensions.Options.Contextual package to understand what it's for, how to use it, and whether to use it or not…

Splitting the NetEscapades.EnumGenerators packages: the road to a stable release
In this post I describe the recent architectural changes to the NetEscapades.EnumGenerators package, which is now a metapackage, to support more scenarios…

Recording metrics in-process using MeterListener
System.Diagnostics.Metrics APIs - Part 4
In this post I show how you can use MeterListener to listen to Instrument measurements, how to trigger Observable measurements, and how to aggregate values.…

Creating standard and "observable" instruments
System.Diagnostics.Metrics APIs - Part 3
In this post I discuss the various Instrument<T> types exposed by the System.Diagnostics.Metrics API and show examples from the .NET libraries and ASP.NET Core…

