Ejemplo n.º 1
0
        /// <summary>Creates the in-memory request from a stream.</summary>
        /// <param name="stream">The stream to read.</param>
        /// <param name="serviceRoot">The service root uri the request was targeted at (if null the request URI will be left as is).</param>
        /// <returns>The newly created request representation.</returns>
        public static InMemoryWebRequest FromRequest(Stream stream, Uri serviceRoot)
        {
            InMemoryWebRequest request = new InMemoryWebRequest();

            request.ParseRequest(stream, serviceRoot);
            return(request);
        }
Ejemplo n.º 2
0
 /// <summary>Creates the in-memory request from a stream.</summary>
 /// <param name="stream">The stream to read.</param>
 /// <param name="serviceRoot">The service root uri the request was targeted at (if null the request URI will be left as is).</param>
 /// <returns>The newly created request representation.</returns>
 public static InMemoryWebRequest FromRequest(Stream stream, Uri serviceRoot)
 {
     InMemoryWebRequest request = new InMemoryWebRequest();
     request.ParseRequest(stream, serviceRoot);
     return request;
 }