A simple piece of ASP.NET Core middleware lets you simulate network latency to get a much better feeling for your web application's performance in production.
This post describes how I use a custom
RouteNames class together with
UrlHelper.RouteUrl to generate route URLs in ASP.NET Core MVC.
Authentication cookies have to be protected well. Here's how to only send them over HTTPS using the ASP.NET Core cookie authentication middleware.
ASP.NET Core exposes an application's web and content root paths through the
IHostingEnvironment service, which is available via the built-in dependency injection system.
ASP.NET Core MVC allows developers to specify inline route constraints directly within route templates. Finally, inline route constraints are no longer restricted to attribute routing!
Tag helpers are a new feature of ASP.NET MVC 6 which allow for server-side manipulation of HTML elements in Razor views. An introduction.
ASP.NET MVC 6 introduces view components, a powerful mixture of child actions and partial views for building reusable components.