This change completely removes [Activate]. In a controller, you should constructor injection or [FromServices] to access services. To access context items (ActionContext, ActionBindingContext, root ViewDataDictionary) you should use the respected attribute class. We'd like to consider streamlining this further in the future by getting down to a single injectable context for controllers, but for now this will have to do. |
||
|---|---|---|
| .. | ||
| Components | ||
| Controllers | ||
| Models | ||
| Services | ||
| TagHelpers | ||
| Views/View | ||
| wwwroot | ||
| ActivatorWebSite.xproj | ||
| Startup.cs | ||
| project.json | ||
| readme.md | ||
readme.md
ActivatorWebSite
This web site demonstrates the use of activate attribute on controller properties, view components and tag helpers.