[FromServices] requires modelbinding to run for each of these four properties, which allocates a lot, and ultimately just ends up calling GetRequiredService in the end. Also, retrieving these services is now lazy, which should be very beneficial as few of them aren't used often. |
||
|---|---|---|
| .. | ||
| DependencyInjection | ||
| Internal | ||
| Properties | ||
| Rendering | ||
| ViewComponents | ||
| ViewEngines | ||
| ViewFeatures | ||
| Controller.cs | ||
| HtmlTextWriter.cs | ||
| IViewComponentHelper.cs | ||
| IViewComponentResult.cs | ||
| Microsoft.AspNet.Mvc.ViewFeatures.xproj | ||
| MvcViewOptions.cs | ||
| PartialViewResult.cs | ||
| RemoteAttribute.cs | ||
| Resources.resx | ||
| SkipStatusCodePagesAttribute.cs | ||
| ValidateAntiForgeryTokenAttribute.cs | ||
| ViewComponent.cs | ||
| ViewComponentAttribute.cs | ||
| ViewComponentResult.cs | ||
| ViewResult.cs | ||
| project.json | ||