Accessing services when configuring MvcOptions in ASP.NET Core

added by DotNetKicks
10/27/2016 10:19:15 AM

2 Kicks, 111 Views

This post is a follow on to an article by Steve Gordon I read the other day on how to HTML encode deserialized JSON content from a request body. It's an interesting post, but it spurred me thinking about a tangential issue - using injected services when configuring MvcOptions.