コード例 #1
0
        public override String Get(String name)
        {
            if (!_populated)
            {
                String value = GetSimpleServerVar(name);

                if (value != null)
                {
                    return(value);
                }

                Populate();
            }

            if (_iis7workerRequest != null)
            {
                string var = GetServerVar(BaseGet(name));

                if (String.IsNullOrEmpty(var))
                {
                    var = _request.FetchServerVariable(name);
                }

                return(var);
            }
            else
            {
                return(GetServerVar(BaseGet(name)));
            }
        }