Пример #1
0
        /// <summary>
        /// Sets Owin parameters according to the received FastCgi Params in <paramref name="stream"/>.
        /// </summary>
        public void AddParams(FastCgiStream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            using (var reader = new FastCgiNet.Streams.NvpReader(stream))
            {
                NameValuePair nvp;
                while ((nvp = reader.Read()) != null)
                {
                    SetOwinParametersFromFastCgiNvp(nvp);
                }
            }
        }