/// <summary>
 /// 构造函数
 /// </summary>
 public DynamicApiControllerApplicationModelConvention()
 {
     _dynamicApiControllerSettings = App.GetOptions <DynamicApiControllerSettingsOptions>();
     _nameVersionRegex             = new Regex(@"V(?<version>[0-9_]+$)");
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public DynamicApiControllerApplicationModelConvention()
 {
     _dynamicApiControllerSettings = App.GetDuplicateOptions <DynamicApiControllerSettingsOptions>();
     _nameVersionRegex             = new Regex(@"V(?<version>[0-9_]+$)");
     _enabledUnifyResult           = App.GetService <IUnifyResultProvider>() != null;
 }
Esempio n. 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public DynamicApiControllerApplicationModelConvention()
 {
     _dynamicApiControllerSettings = App.GetConfig <DynamicApiControllerSettingsOptions>("DynamicApiControllerSettings", true);
     LoadVerbToHttpMethodsConfigure();
     _nameVersionRegex = new Regex(@"V(?<version>[0-9_]+$)");
 }