Beispiel #1
0
 /// <summary>
 /// 从程序集中刷新功能数据,主要检索MVC的Controller-Action信息
 /// </summary>
 public void Initialize()
 {
     Type[]      controllerTypes = ControllerTypeFinder.FindAll();
     TFunction[] functions       = GetFunctions(controllerTypes);
     UpdateToRepository(functions);
     RefreshCache();
 }
Beispiel #2
0
 /// <summary>
 /// 初始化一个<see cref="FunctionHandlerBase{TFunction, TKey}"/>类型的新实例
 /// </summary>
 protected FunctionHandlerBase()
 {
     ControllerTypeFinder = new ControllerTypeFinder();
     ActionInfoFinder     = new MvcActionMethodInfoFinder();
 }