ControllerFeatureProvider Class¶
Discovers controllers from a list of Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart
instances.
- Namespace
Microsoft.AspNetCore.Mvc.Controllers
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ControllerFeatureProvider : IApplicationFeatureProvider<ControllerFeature>, IApplicationFeatureProvider
-
class
Microsoft.AspNetCore.Mvc.Controllers.
ControllerFeatureProvider
Methods¶
-
IsController
(System.Reflection.TypeInfo)¶ Determines if a given <em>typeInfo</em> is a controller.
Arguments: typeInfo (System.Reflection.TypeInfo) – The System.Reflection.TypeInfo
candidate.Return type: System.Boolean Returns: <pre> <code>true</code> </pre> if the type is a controller; otherwise <pre><code>false</code></pre>. protected virtual bool IsController(TypeInfo typeInfo)
-
PopulateFeature
(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart>, Microsoft.AspNetCore.Mvc.Controllers.ControllerFeature)¶ public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeature feature)
-