Esempio n. 1
0
		/// <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();
		}
Esempio n. 2
0
        /// <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();
        }
Esempio n. 3
0
		public RouteJs(
			IEnumerable<IRouteFetcher> routeFetchers,
			IActionContextAccessor actionContextAccessor,
			IEnumerable<IRouteFilter> routeFilters,
			IRouteJsConfiguration routeJsConfiguration
		)
		{
			_routeFetchers = routeFetchers;
			_routeFilters = routeFilters;
			_actionContext = actionContextAccessor.ActionContext;
			_routeJsConfiguration = routeJsConfiguration;
		}
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
		/// <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;
		}
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 /// <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();
 }
Esempio n. 8
0
	    public DefaultRouteFilter(IRouteJsConfiguration configuration, IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider)
	    {
		    _configuration = configuration;
		    _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider;
		    BuildLists();
	    }