Beispiel #1
0
        private Uri BuildUri()
        {
            var builder = new UriBuilder(_httpActionContext.Url());
            var query   = HttpUtility.ParseQueryString(builder.Query);

            query.Add(_setupContext.Queries());

            builder.Query = query.ToQueryString();
            return(new Uri(builder.ToString()));
        }
        private Uri BuildUri()
        {
            var builder = new UriBuilder(_httpActionContext.Url());
            var query   = HttpUtility.ParseQueryString(builder.Query);

            foreach (var queryString in _setupContext.Queries())
            {
                query.Add(queryString.Key, queryString.Value);
            }

            builder.Query = query.ToString();
            return(new Uri(builder.ToString()));
        }