Strathweb TypedRouting AspNetCore 1.1.0 released!

Today I have released the 1.1.0 version of Typed Routing project. I encourage you to try this if you like to have your routes centrally configured, rather than stored in attributes at action level.

You can install it from NuGet using the Strathweb.TypedRouting.AspNetCore package name. Here is what’s new in this release.

Filter support

You can now directly attach filters to your route definitions – filters that should be executed for a given route. This is equivalent to defining a controller action, and annotating it with a relevant attribute such as action filter or authorization filter.

Filters can also be resolved from ASP.NET Core DI system – as long as they are registered there before.

Authorization Policy support

The route definitions can also have ASP.NET Core authorization policies attached to them. For example, you can pass in a policy instance:

You can also define a policy as string – then a corresponding policy must be previously registerd in ASP.NET Core DI system.

New EnableTypedRouting method

In the past typed routing was enabled by calling an extension method on MvcOptions. This is now obsolete, please use the extension method available on IMvcCoreBuilder and IMvcBuilder. The new filters feature, that reaches into the DI requires that.

If you are interested in helping out, need more information or have any comments, please come to the Gihub repo. Thanks!