Auto upgrade your Nuget packages with Azure Pipelines or GitHub Actions

Auto upgrade your Nuget packages with Azure Pipelines or GitHub Actions…

Read this article

How to execute one Controller Action from another in ASP.NET 5

This will generally be a rare thing to do but if you have your reasons to do it, then this is how…In Umbraco there is a valid reason to do this which has to do with how HTTP POSTs are handled for…

Read this article

Allowing dynamic SupportedCultures in RequestLocalizationOptions

The documented usage of RequestLocalizationOptions in ASP.NET 5/Core is to assign a static list of SupportedCultures since ASP.NET is assuming you’ll know up-front what cultures your app is…

Read this article

How to change HttpRequest.IsSecureConnection

This is an old problem that is solved in dozens of different ways. Typically in an ASP.Net Framework site when you need to check if the request is running in HTTPS you would do something like…

Read this article

Controller Scoped Model Binding in ASP.NET Core

Want to avoid [FromBody] attributes everywhere? Don’t want to use [ApiController] strict conventions? Don’t want to apply IInputFormatter’s globally?…

Read this article

How to register MVC controllers shipped with a class library in ASP.NET Core

In many cases you’ll want to ship MVC controllers, possibly views or taghelpers, etc… as part of your class library. To do this correctly you’ll want to add your assembly to ASP.NET’s “Application…

Read this article

Benchmarking performance of your code between release versions

A while ago in 2016 I posted a question on the BenchmarkDotNet repository about an official way to run benchmarks between Nuget releases and I managed to find some time in 2018 to make that work.…

Read this article

Configuring Azure Active Directory login with Umbraco Members

This post is about configuring Azure Active Directory with Umbraco Members (not Users), meaning this is for your front-end website, not the Umbraco back office. I did write up a post about Azure AD…

Read this article

Configuring Azure Active Directory login with Umbraco

It’s been a while since I first set this up and back then not all of these settings were in the new Azure portal, but now that they are getting this all configured is quite easy so here’s the basic…

Read this article

Getting Umbraco to work with Azure Easy Auth

There’s a nifty feature in your Azure App Service that allows you to very quickly add authentication and authorization to your Azure website. You’ll see most folks calling this “Easy Auth” and there’s…

Read this article