src/AspNetCore/Mvc/Mvc/src/ApplicationModels/ISelectedControllerModelConfigurationExtensions.cs
/// <summary>
/// Adds an <see cref="SelectorRouteApplicableConvention"/> instance to <see cref="MvcOptions"/> that only operates on controller model with controller
/// on <see cref="ISelectedControllerModelConfiguration.SelectedControllerType"/> of <paramref name="configuration"/>.
/// </summary>
/// <param name="configuration"></param>
/// <param name="defaultRouteTemplate"></param>
/// <param name="prefixRouteTemplate"></param>
/// <param name="addConvention"></param>
/// <returns></returns>
Adds an  instance to  that only operates on controller model with controller
on  of .
Adds an instance to that only operates on controller model with controller on of .
public static ISelectedControllerModelConfiguration AddSelectorRouteConventionToSelectedController(this ISelectedControllerModelConfiguration configuration,
            string? defaultRouteTemplate, string? prefixRouteTemplate, Action<ISelectedControllerModelConfiguration, SelectorRouteApplicableConvention> addConvention)
        {
            var controllerFilter = new ControllerTypeFilter(configuration.SelectedControllerType);
            var convention = new SelectorRouteApplicableConvention(defaultRouteTemplate, prefixRouteTemplate, controllerFilter: controllerFilter);
            addConvention(configuration, convention);
            return configuration;
        }
public static ISelectedControllerModelConfiguration AddSelectorRouteConventionToSelectedController ( this ISelectedControllerModelConfiguration configuration , string ? defaultRouteTemplate , string ? prefixRouteTemplate , Action < ISelectedControllerModelConfiguration , SelectorRouteApplicableConvention > addConvention ) { var controllerFilter = new ControllerTypeFilter ( configuration . SelectedControllerType ) ; var convention = new SelectorRouteApplicableConvention ( defaultRouteTemplate , prefixRouteTemplate , controllerFilter : controllerFilter ) ; addConvention ( configuration , convention ) ; return configuration ; }
Adds an  instance to  that only operates on controller model with controller
on  of .
Adds an instance to that only operates on controller model with controller on of .
None
ISelectedControllerModelConfiguration
this
defaultRouteTemplate
string?
None
prefixRouteTemplate
string?
None
addConvention
Action<ISelectedControllerModelConfiguration, SelectorRouteApplicableConvention>
None
configuration
None