106 references to Query
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
115var query = HttpUtility.ParseQueryString(loadRedirect.Query);
Aspire.Dashboard.Tests (3)
Integration\FrontendBrowserTokenAuthTests.cs (2)
208var queryString = HttpUtility.ParseQueryString(uri.Query); 238var queryString = HttpUtility.ParseQueryString(uri.Query);
Integration\FrontendOpenIdConnectAuthTests.cs (1)
52var query = HttpUtility.ParseQueryString(redirectedTo.Query);
BasicTestApp (1)
Program.cs (1)
74if (uri != null && HttpUtility.ParseQueryString(uri.Query)["culture"] is string cultureName)
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
305string query = this.HttpRequestMessage.RequestUri.Query;
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (1)
69if (!string.IsNullOrEmpty(uri.Query))
Metadata\MetadaExchangeResolver.cs (1)
90string uriQuery = this.EndpointAddress.Uri.Query;
Metadata\MetadataDocumentLoader.cs (2)
711if (!string.IsNullOrEmpty(metadataUri.Query)) 713key = key.Remove(key.Length - metadataUri.Query.Length);
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
72var queryStrings = QueryHelpers.ParseQuery(new Uri(base.BuildChallengeUrl(properties, redirectUri)).Query);
Microsoft.AspNetCore.Authentication.Test (73)
CookieTests.cs (2)
1263Assert.Equal("?ReturnUrl=%2F", location.Query); 1490Assert.Equal("?ReturnUrl=%2F", location.Query);
FacebookTests.cs (5)
111var query = transaction.Response.Headers.Location.Query; 142Assert.Contains("scope=foo,bar", res.Headers.Location.Query); 174Assert.Contains("scope=baz,qux", res.Headers.Location.Query); 206Assert.Contains("scope=baz,qux", res.Headers.Location.Query); 438var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
GoogleTests.cs (7)
60var queryParams = QueryHelpers.ParseQuery(location.Query); 152var query = transaction.Response.Headers.Location.Query; 190var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 242var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 298var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 335var query = transaction.Response.Headers.Location.Query; 1071var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
MicrosoftAccountTests.cs (6)
66var query = transaction.Response.Headers.Location.Query; 146Assert.Contains("scope=foo%20bar", res.Headers.Location.Query); 164Assert.Contains("scope=baz%20qux", res.Headers.Location.Query); 182Assert.Contains("scope=baz%20qux", res.Headers.Location.Query); 270var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 338var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
OAuthTests.cs (4)
193Assert.Contains("scope=foo%20bar", res.Headers.Location.Query); 219Assert.Contains("prompt=login&audience=https%3A%2F%2Fapi.example.com", res.Headers.Location.Query); 248Assert.Contains("scope=baz%20qux", res.Headers.Location.Query); 277Assert.Contains("scope=baz%20qux", res.Headers.Location.Query);
OpenIdConnect\OpenIdConnectChallengeTests.cs (30)
74Assert.Contains("code_challenge=", res.Headers.Location.Query); 75Assert.Contains("code_challenge_method=S256", res.Headers.Location.Query); 79Assert.DoesNotContain("code_challenge=", res.Headers.Location.Query); 80Assert.DoesNotContain("code_challenge_method=", res.Headers.Location.Query); 107Assert.DoesNotContain("code_challenge=", res.Headers.Location.Query); 108Assert.DoesNotContain("code_challenge_method=", res.Headers.Location.Query); 126Assert.DoesNotContain(OpenIdConnectParameterNames.SkuTelemetry, res.Headers.Location.Query); 127Assert.DoesNotContain(OpenIdConnectParameterNames.VersionTelemetry, res.Headers.Location.Query); 322var actual = res.Headers.Location.Query.Trim('?').Split('&').Single(seg => seg.StartsWith($"{OpenIdConnectParameterNames.ClientId}=", StringComparison.Ordinal)); 534Assert.Contains("prompt=consent", res.Headers.Location.Query); 558Assert.Contains("prompt=login", res.Headers.Location.Query); 580Assert.Contains("prompt=login", res.Headers.Location.Query); 604Assert.Contains("scope=baz%20qux", res.Headers.Location.Query); 628Assert.Contains("scope=baz%20qux", res.Headers.Location.Query); 652Assert.Contains("max_age=1234", res.Headers.Location.Query); 674Assert.Contains("max_age=1234", res.Headers.Location.Query); 695Assert.Contains("prompt=login&audience=https%3A%2F%2Fapi.example.com", res.Headers.Location.Query); 723Assert.Contains("request_uri=my_reference_value", res.Headers.Location.Query); 724Assert.Contains("client_id=Test%20Id", res.Headers.Location.Query); 727Assert.DoesNotContain("redirect_uri", res.Headers.Location.Query); 728Assert.DoesNotContain("scope", res.Headers.Location.Query); 729Assert.DoesNotContain("client_secret", res.Headers.Location.Query); 813Assert.DoesNotContain("request_uri=my_reference_value", res.Headers.Location.Query); 817Assert.Contains("redirect_uri", res.Headers.Location.Query); 818Assert.Contains("scope", res.Headers.Location.Query); 851Assert.Contains("request_uri=request_uri_from_event", res.Headers.Location.Query); 886Assert.DoesNotContain("scope", res.Headers.Location.Query); 917Assert.Contains("request_uri=my_reference_value", res.Headers.Location.Query); 918Assert.Contains("client_id=Test%20Id", res.Headers.Location.Query); 921Assert.DoesNotContain("prompt", res.Headers.Location.Query);
OpenIdConnect\OpenIdConnectTests.cs (4)
183Assert.DoesNotContain(OpenIdConnectParameterNames.SkuTelemetry, res.Headers.Location.Query); 184Assert.DoesNotContain(OpenIdConnectParameterNames.VersionTelemetry, res.Headers.Location.Query); 242var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&') 273var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&')
OpenIdConnect\TestSettings.cs (2)
139var queryDict = string.IsNullOrEmpty(redirectUri.Query) ? 141redirectUri.Query.TrimStart('?').Split('&').Select(part => part.Split('=')).ToDictionary(parts => parts[0], parts => parts[1]);
TwitterTests.cs (1)
72var query = transaction.Response.Headers.Location.Query;
WsFederation\WsFederationTest.cs (6)
77var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 93var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 109var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 124var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 175var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 234Assert.Contains("CustomKey=CustomValue", result.Headers.Location.Query);
WsFederation\WsFederationTest_Handler.cs (6)
75var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 91var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 107var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 122var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 173var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 232Assert.Contains("CustomKey=CustomValue", result.Headers.Location.Query);
Microsoft.AspNetCore.Diagnostics.Tests (1)
StatusCodeMiddlewareTest.cs (1)
68Assert.Equal(expectedQueryString, response.RequestMessage.RequestUri.Query);
Microsoft.AspNetCore.SignalR.Tests (1)
EndToEndTests.cs (1)
727Assert.True(QueryHelpers.ParseQuery(url.Query).TryGetValue("id", out var id));
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Extensions\SourceGeneratedDocumentUri.cs (6)
64var query = System.Web.HttpUtility.ParseQueryString(documentUri.Query); 65var documentIdGuid = Guid.ParseExact(GetRequiredQueryValue(DocumentIdParam, query, documentUri.Query), GuidFormat); 66var hintName = GetRequiredQueryValue(HintNameParam, query, documentUri.Query); 67var assemblyName = GetRequiredQueryValue(AssemblyNameParam, query, documentUri.Query); 70var assemblyVersion = Version.Parse(GetRequiredQueryValue(AssemblyVersionParam, query, documentUri.Query)); 71var typeName = GetRequiredQueryValue(TypeNameParam, query, documentUri.Query);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\BlobUrlInfo.cs (1)
67if (!String.IsNullOrEmpty(uri.Query))
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
199string jobListUriForLogging = jobListUri.ToString().Replace(jobListUri.Query, "");
Microsoft.Extensions.Http.Resilience (1)
Internal\UriExtensions.cs (1)
36Query = currentUri.Query.TrimStart('?')
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewHandler.iOS.cs (1)
186 var invokeQueryString = HttpUtility.ParseQueryString(fullUri.Query);
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
35 var query = new Uri(url).Query;
Microsoft.Maui.Controls (1)
Shell\ShellUriHandler.cs (1)
217 var navigationRequest = new ShellNavigationRequest(definition, whatDoIDo, request.Query, request.Fragment);
Microsoft.Maui.Essentials (2)
Types\Shared\WebUtils.shared.cs (2)
17 if (!string.IsNullOrEmpty(uri.Query)) 18 UnpackParameters(uri.Query.AsSpan(1), parameters);
PresentationFramework (1)
System\Windows\Navigation\JournalEntry.cs (1)
343string relativeUri = uri.AbsolutePath + uri.Query + uri.Fragment;
System.Net.HttpListener (2)
System\Net\HttpListenerRequest.cs (1)
196Helpers.FillFromString(queryString, Url!.Query, true, ContentEncoding);
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
177_requestUri.Authority, _requestUri.LocalPath, _requestUri.Query);
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
809if (string.IsNullOrEmpty(uri.Query) && _requestParameters != null)
System.Private.Uri (1)
System\UriBuilder.cs (1)
285_query = _uri.Query;
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
216string query = collationUri.Query;