Exemplo n.º 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);
 }
Exemplo n.º 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);
                }
            }
        }