Accessing The Model From Filters In Razor Pages

added by DotNetKicks
8/29/2018 12:37:45 PM

1 Kicks, 1112 Views

Support for filters was added to Razor Pages with the release of ASP.NET Core 2.1. Filters, for those unfamiliar with them, are components that enable the injection of processing at certain points within the Razor Page lifecycle. They differ from Middleware in that they provide access to the HttpContext.