public GetCore1(Tool.SqlCore.DbHelper dbHelper, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment env, IHttpContextAccessor context) { this.dbHelper = dbHelper; }
public GetCore(Tool.SqlCore.DbHelper dbHelper)//HttpClient httpClient { this.dbHelper = dbHelper; //this.httpClient = httpClient; //var configuration = AppSettings.Configuration; //var v = AppSettings.GetSection("Logging:LogLevel:Default"); //var v1 = configuration["Sqls:WebSql"]; }
public void Get( [ApiVal(Val.Query)] int Id , [ApiVal(Val.Form)] string Key , [ApiVal(Val.Service)] Tool.SqlCore.DbHelper dbHelper , [ApiVal(Val.File)] IFormFile file //,[ApiVal(Val.Session)] int key10 //,[ApiVal(Val.Session)] ps key11 , [ApiVal(Val.RouteKey)] int id1 , [ApiVal(Val.RouteKey)] string controller , [ApiVal(Val.RouteKey)] string action , [ApiVal(Val.Service)] Microsoft.Extensions.Logging.ILoggerFactory factory , [ApiVal(Val.Cookie)] int SessionId , [ApiVal(Val.Header)] string Cookie1 ) { //Session.TryGetValue("key", out string v); //Session.TryGetValue("key1", out ps v1); Json(new { i = 5, mag = "", cos = 15000 }); }