/// <summary> /// 扫描程序集来创建Controller /// </summary> /// <param name="assembly"></param> /// <param name="moduleName"></param> /// <param name="useConventionalHttpVerbs"></param> /// <returns></returns> public MSControllerAssemblySettingBuilder CreateControllersForAppServices(Assembly assembly , string moduleName = MSControllerAssemblySetting.DefaultServiceModuleName, bool useConventionalHttpVerbs = true) { var setting = new MSControllerAssemblySetting(moduleName, assembly, useConventionalHttpVerbs); ControllerAssemblySettings.Add(setting); return(new MSControllerAssemblySettingBuilder(setting)); }
public MSControllerAssemblySettingBuilder(MSControllerAssemblySetting setting) { _setting = setting; }