Пример #1
0
 /// <summary>
 /// Loads Uri mappings for all controllers and their actions
 /// </summary>
 public void Load()
 {
     ControllerIndexer indexer = new ControllerIndexer();
     indexer.Find();
     foreach (var controller in indexer.Controllers)
         foreach (var mapping in controller.Mappings)
             _controllers.Add(controller.Uri + "/" + mapping, controller);
 }
Пример #2
0
        /// <summary>
        /// Loads Uri mappings for all controllers and their actions
        /// </summary>
        public void Load()
        {
            ControllerIndexer indexer = new ControllerIndexer();

            indexer.Find();
            foreach (var controller in indexer.Controllers)
            {
                foreach (var mapping in controller.Mappings)
                {
                    _controllers.Add(controller.Uri + "/" + mapping, controller);
                }
            }
        }