Beispiel #1
0
 public object Any(GetSetting request)
 {
     return(new SettingResponse
     {
         Status = (int)CommonStatus.Success
     });
 }
 static void Main(string[] args)
 {
     Console.WriteLine($"获取Json文件数据:{GetSetting.GetJsonConfig("MyTestResource.json").GetSection("ConnectionString:TestDb").Value}," +
                       $"\n获取XML文件数据:{GetSetting.GetXmlConfig("XMLResource.xml").GetSection("ConnectionString:TestDb:value").Value}\n当前文件路径:{AppContext.BaseDirectory.ToString()}");
     Console.WriteLine("Hello World!");
     Console.ReadKey();
 }
 get => groupingModeFrom(GetSetting(PARAMETER_GROUPING_MODE_ID_SETTING, DefaultParameterGroupingModeId));
Beispiel #4
0
 public async Task <ActionResult <SettingDto> > GetAsync([FromRoute] GetSetting query)
 => Single(await QueryAsync(query));