- 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.

Why isn't my session state working in ASP.NET Core? Session state, GDPR, and non-essential cookies
In this post I describe why session state appears to not work in ASP.NET Core 2.1+ apps, discuss the GDPR features, and how to work around any issues.…
in ASP.NET Core
An introduction to ASP.NET Core Razor Pages
In this post I provide an introduction to Razor Pages, the basics of getting started, and how Razor Pages differs from MVC…

Reducing initial request latency by pre-building services in a startup task in ASP.NET Core
In this post I show a startup task that pre-builds all the services registered in the DI container to reduce the duration of the first request to the app.…

Using health checks to run async tasks in ASP.NET Core
Running async tasks on app startup in ASP.NET Core - Part 4
In this post I describe an approach to running tasks on startup that uses IHostedService to run the tasks and exposes their status using health checks…

Feedback on async task examples and another possible solution
Running async tasks on app startup in ASP.NET Core - Part 3
In this post I discuss some feedback on my previous posts about running async tasks on startup, including why database migrations were a poor example…

Two approaches for running async tasks
Running async tasks on app startup in ASP.NET Core - Part 2
In this post I show two approaches for running tasks asynchronously on startup. Each approach allow registering tasks using DI, but have different trade offs…

