HttpContext为null new HttpContextWrapper(System.Web.HttpContext.Current) HttpContext = (context == null ? new HttpContextWrapper(System.Web.HttpContext.Current) : context);