/// <inheritdoc/>
        public IDictionary <string, string> GetQueryStrings()
        {
            var requestUri = GetRequestUri();

            var queryStrings = queryStringReader.GetQueryStrings(requestUri);

            return(queryStrings);
        }
Exemple #2
0
        private string GetActionRouteTemplate(string routeName)
        {
            var requestUri             = requestReader.GetRequestUri();
            var requestQueryCollection = queryStringReader.GetQueryStrings(requestUri);

            var query = queryStringCreator.CreateBaseQueryString(requestQueryCollection, baseQueryStringWriters);
            var attributeRouteInfo = GetActionRouteAttributeInfo(routeName);

            var routeTemplateUri = new UriBuilder(attributeRouteInfo.Template)
            {
                Query = query
            };
            var convertedUrl = UriToUrl(routeTemplateUri.Uri);
            var decodedUrl   = WebUtility.UrlDecode(convertedUrl);

            return(decodedUrl);
        }