Example #1
0
        /// <summary>
        /// 获取用户的几个内容量集
        /// </summary>
        /// <returns></returns>
        public static TNumber GetNumber()
        {
            ClientAdapt.Open();

            TVssService.Client client = ClientAdapt.GetClient();

            TNumber tNumber = client.GetNumber(GetValidator());

            ClientAdapt.Close();

            return(tNumber);
        }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.Session["UserLogin"] == null)
        {
            //这里也可以根据类型不同,返回适当的情况!
            Response.Write("NOLOGIN");
            Response.End();
            return;
        }

        TValidator tValidator = (TValidator)HttpContext.Current.Session["UserLogin"];

        ClientAdapt.Open();

        TVssService.Client client  = ClientAdapt.GetClient();
        TNumber            tNumber = client.GetNumber(tValidator);

        ClientAdapt.Close();

        Response.Write(JsonConvert.SerializeObject(tNumber));
        Response.End();
    }