Ejemplo n.º 1
0
 public object[] GetParameters(System.Web.HttpRequest request, ActionDescription action)
 {
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     if (action == null)
     {
         throw new ArgumentNullException("action");
     }
     object[] parameters = new object[action.Parameters.Length];
     byte[]   input      = request.BinaryRead(request.TotalBytes);
     for (int i = 0; i < action.Parameters.Length; i++)
     {
         ParameterInfo p = action.Parameters[i];
         if (p.IsOut)
         {
             continue;
         }
         if (p.ParameterType == typeof(byte[]))
         {
             parameters[i] = input;
         }
     }
     return(parameters);
 }
Ejemplo n.º 2
0
        //public string this[string key] { get { return _innerRequest[key]; } }


        public byte[] BinaryRead(int count)
        {
            return(_innerRequest.BinaryRead(count));
        }