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