예제 #1
0
        /// <summary>
        /// 自定义类接收来自POST的请求,所有POST的原始流将封装到接口属性中,而url附加参数将封装到类的其他属性中,方便调用。
        /// </summary>
        public object Any(DOG2 request)
        {
            if (request.RequestStream == null)
            {
                return("1");
            }
            StreamReader sr = new StreamReader(request.RequestStream);

            return(sr.ReadToEnd());
        }
예제 #2
0
 /// <summary>
 /// 自定义类接收来自POST的请求,所有POST的原始流将封装到接口属性中,而url附加参数将封装到类的其他属性中,方便调用。
 /// </summary>
 public object Any(DOG2 request)
 {
     if (request.RequestStream == null) return "1";
     StreamReader sr = new StreamReader(request.RequestStream);
     return sr.ReadToEnd();
 }