With MVC 6 and .NET 5, how to use UrlRewriterOwinMiddleware in startup class?
IApplicationBuilder has replaced IAppBuilder in new version of .net vnext. It looks like that we have to use delegate to add action to OWIN pipe line... is there a way to upgrade startup class to support .NET 5 please?
You still can use middleware, just need to modify it a little.
Here is the article describing how to write a middleware class: