/// <summary> /// 根据Request对象初始化所需环境信息 /// </summary> /// <param name="request"></param> public static void InitHttpEnv(HttpRequest request) { HttpEnvInfo hei = new HttpEnvInfo(request); _HttpEnvSlot = Thread.AllocateDataSlot(); Thread.SetData(_HttpEnvSlot, hei as IHttpEnvInterface); }