/// <summary> /// Initializes a new instance of the <see cref="MvcRouteFilter" /> class. /// </summary> /// <param name="configuration">The RouteJs configuration.</param> /// <param name="routeCollection">The ASP.NET routes</param> public MvcRouteFilter(IRouteJsConfiguration configuration, RouteCollection routeCollection) { _configuration = configuration; _routeCollection = routeCollection; _areaNamespaceMapping = GetAreaNamespaceMap(); BuildLists(); }
public RouteJs( IEnumerable<IRouteFetcher> routeFetchers, IActionContextAccessor actionContextAccessor, IEnumerable<IRouteFilter> routeFilters, IRouteJsConfiguration routeJsConfiguration ) { _routeFetchers = routeFetchers; _routeFilters = routeFilters; _actionContext = actionContextAccessor.ActionContext; _routeJsConfiguration = routeJsConfiguration; }
/// <summary> /// Creates a new <see cref="RouteJs"/>. /// </summary> /// <param name="routeFetchers">List of route fetchers to use</param> /// <param name="actionContextAccessor"></param> /// <param name="routeFilters">List of filters to apply to the fetched routes</param> /// <param name="routeJsConfiguration">RouteJs configuration</param> public RouteJs( IEnumerable <IRouteFetcher> routeFetchers, IActionContextAccessor actionContextAccessor, IEnumerable <IRouteFilter> routeFilters, IRouteJsConfiguration routeJsConfiguration ) { _routeFetchers = routeFetchers; _routeFilters = routeFilters; _actionContext = actionContextAccessor.ActionContext; _routeJsConfiguration = routeJsConfiguration; }
/// <summary> /// Initializes a new instance of the <see cref="RouteJs" /> class. /// </summary> /// <param name="routeCollection">The route collection.</param> /// <param name="routeFilters">Any filters to apply to the routes</param> /// <param name="defaultsProcessors">Handler to handle processing of default values</param> /// <param name="constraintsProcessors">Handler to handle processing of constraints</param> /// <param name="routeJsConfiguration">Configuration object that contains options</param> public RouteJs( RouteCollection routeCollection, IEnumerable<IRouteFilter> routeFilters, IEnumerable<IDefaultsProcessor> defaultsProcessors, IEnumerable<IConstraintsProcessor> constraintsProcessors, IRouteJsConfiguration routeJsConfiguration ) { _routeCollection = routeCollection; _routeFilters = routeFilters; _defaultsProcessors = defaultsProcessors; _constraintsProcessors = constraintsProcessors; _routeJsConfiguration = routeJsConfiguration; }
/// <summary> /// Initializes a new instance of the <see cref="RouteJs" /> class. /// </summary> /// <param name="routeCollection">The route collection.</param> /// <param name="routeFilters">Any filters to apply to the routes</param> /// <param name="defaultsProcessors">Handler to handle processing of default values</param> /// <param name="constraintsProcessors">Handler to handle processing of constraints</param> /// <param name="routeJsConfiguration">Configuration object that contains options</param> public RouteJs( RouteCollection routeCollection, IEnumerable <IRouteFilter> routeFilters, IEnumerable <IDefaultsProcessor> defaultsProcessors, IEnumerable <IConstraintsProcessor> constraintsProcessors, IRouteJsConfiguration routeJsConfiguration ) { _routeCollection = routeCollection; _routeFilters = routeFilters; _defaultsProcessors = defaultsProcessors; _constraintsProcessors = constraintsProcessors; _routeJsConfiguration = routeJsConfiguration; }
/// <summary> /// Creates a new <see cref="DefaultRouteFilter"/> /// </summary> /// <param name="configuration">Route JS configuration</param> /// <param name="actionDescriptorsCollectionProvider">ASP.NET action descriptor collection</param> public DefaultRouteFilter(IRouteJsConfiguration configuration, IActionDescriptorCollectionProvider actionDescriptorsCollectionProvider) { _configuration = configuration; _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider; BuildLists(); }
public DefaultRouteFilter(IRouteJsConfiguration configuration, IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider) { _configuration = configuration; _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider; BuildLists(); }