asp.net webapi 的Request如何获取参数

  public class BaseApiController : ApiController
    {
        private HttpRequestBase _request;

        /// 全局Requests对象
        protected HttpRequestBase Requests
        {
            get
            {
                if (_request == null)
                {
                    _request = GetRequest();
                }

                return _request;
            }
        }


}

 

posted @ 2019-04-02 09:59  _York  阅读(...)  评论(...编辑  收藏