webapi中获取HttpContext

public OperationResultDto APILogin()
        {
LoginModel model = new LoginModel();
HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];//获取传统context
HttpRequestBase request = context.Request;//定义传统request对象
model.EID = request.Form["eid"];
model.Password = request.Form["password"];
  }

webapi中获取HttpContext

上一篇:Windows 10 20H1版名称被定为Windows 10 Version 2004版以示区分


下一篇:windows快捷操作个人记录(常用)