60 references to PathAndQuery
Aspire.Dashboard.Tests (3)
Integration\FrontendBrowserTokenAuthTests.cs (1)
47Assert.Equal(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.StructuredLogsUrl()), response.RequestMessage!.RequestUri!.PathAndQuery);
Integration\Playwright\BrowserTokenAuthenticationTests.cs (2)
41Assert.Equal("/login?returnUrl=%2F", uri.PathAndQuery); 67Assert.Equal("/login?returnUrl=%2F", uri.PathAndQuery);
dotnet-svcutil-lib (1)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
1440string path = uri.PathAndQuery;
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
173builder.Append(uri.PathAndQuery);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
173builder.Append(uri.PathAndQuery);
InMemory.FunctionalTests (2)
TestTransport\InMemoryHttpClientSlim.cs (2)
39await writer.WriteAsync($"GET {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false); 78await writer.WriteAsync($"POST {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false);
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
374return new Uri(navigationManager.Uri, UriKind.Absolute).PathAndQuery;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (1)
370var devToolsUrlWithProxy = $"{devToolsUrlAbsolute.Scheme}://{devToolsUrlAbsolute.Authority}{devToolsUrlAbsolute.AbsolutePath}?{underlyingV8Endpoint.Scheme}={proxyEndpoint.Authority}{underlyingV8Endpoint.PathAndQuery}";
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
60context.Response.Redirect($"{debugProxyBaseUrl}{browserUrl!.PathAndQuery}");
Microsoft.AspNetCore.Identity.FunctionalTests (1)
AuthorizationTests.cs (1)
51Assert.StartsWith("/Identity/Account/Login?", location.PathAndQuery);
Microsoft.AspNetCore.InternalTesting (2)
HttpClientSlim.cs (2)
37await writer.WriteAsync($"GET {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false); 80await writer.WriteAsync($"POST {requestUri.PathAndQuery} HTTP/1.0\r\n").ConfigureAwait(false);
Microsoft.AspNetCore.Mvc.FunctionalTests (11)
RazorPagesTest.cs (3)
618Assert.Equal("/Login?ReturnUrl=%2FHelloWorldWithAuth", response.Headers.Location.PathAndQuery); 1214Assert.Equal("/Login?ReturnUrl=%2FPages%2FModelWithAuthFilter", response.Headers.Location.PathAndQuery); 1225Assert.Equal("/Login?ReturnUrl=%2FPages%2FAdmin%2FEdit", response.Headers.Location.PathAndQuery);
RazorPagesWithBasePathTest.cs (5)
114Assert.Equal("/Login?ReturnUrl=%2FConventions%2FAuth", response.Headers.Location.PathAndQuery); 125Assert.Equal("/Login?ReturnUrl=%2FConventions%2FAuthFolder", response.Headers.Location.PathAndQuery); 393Assert.Equal("/Login?ReturnUrl=%2FAccounts%2FRequiresAuth", response.Headers.Location.PathAndQuery); 727Assert.Equal("/Login?ReturnUrl=%2FFilters%2FAuthFilterOnPage", response.Headers.Location.PathAndQuery); 738Assert.Equal("/Login?ReturnUrl=%2FFilters%2FAuthFilterOnPageWithModel", response.Headers.Location.PathAndQuery);
RazorPagesWithEndpointRoutingTest.cs (3)
38Assert.Equal("/Login?ReturnUrl=%2FConventions%2FAuthFolder", response.Headers.Location.PathAndQuery); 62Assert.Equal("/Login?ReturnUrl=%2FModelWithAuthFilter", response.Headers.Location.PathAndQuery); 73Assert.Equal("/Login?ReturnUrl=%2FAuthorizedAction%2FIndex", response.Headers.Location.PathAndQuery);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
OpaqueUpgradeTests.cs (2)
340builder.Append(uri.PathAndQuery); 411builder.Append(uri.PathAndQuery);
RequestBodyTests.cs (1)
338builder.Append(uri.PathAndQuery);
ServerTests.cs (1)
684builder.Append(uri.PathAndQuery);
Microsoft.AspNetCore.SignalR.Client.Tests (8)
ResponseUtils.cs (6)
44(request.RequestUri.PathAndQuery.Contains("?id=") || request.RequestUri.PathAndQuery.Contains("&id=")); 50(request.RequestUri.PathAndQuery.Contains("?id=") || request.RequestUri.PathAndQuery.Contains("&id=")); 61(request.RequestUri.PathAndQuery.Contains("?id=") || request.RequestUri.PathAndQuery.Contains("&id="));
TestHttpMessageHandler.cs (2)
123if (request.Method.Equals(HttpMethod.Delete) && request.RequestUri.PathAndQuery.Contains("id=")) 164if (request.Method.Equals(method) && string.Equals(request.RequestUri.PathAndQuery, pathAndQuery))
Microsoft.Extensions.Http (1)
Logging\LogHelper.cs (1)
192string pathAndQuery = uri.PathAndQuery;
Microsoft.Maui (2)
Handlers\WebView\WebViewHandler.iOS.cs (1)
151 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Platform\iOS\MauiWKWebView.cs (1)
110 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Microsoft.Maui.Controls (5)
Shell\ShellNavigationManager.cs (2)
418 var targetPaths = ShellUriHandler.RetrievePaths(targetUri.PathAndQuery); 419 var currentPaths = ShellUriHandler.RetrievePaths(currentUri.PathAndQuery);
Shell\ShellNavigationState.cs (1)
45 uri = new Uri($"/{uri.PathAndQuery}", UriKind.Relative);
Shell\ShellUriHandler.cs (2)
72 return new Uri(FormatUri(returnValue.PathAndQuery), UriKind.Relative); 141 pathAndQuery = $"{request.Host}/{request.PathAndQuery}".Split('?');
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\WkWebViewRenderer.cs (1)
182 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Microsoft.Maui.Essentials (1)
Types\Shared\WebUtils.shared.cs (1)
87 return new Uri(uri.Scheme + "://" + idn.GetAscii(uri.Authority) + uri.PathAndQuery + uri.Fragment);
MyFrontend (1)
Components\NavigationManagerExtensions.cs (1)
13return new Uri(uri).PathAndQuery;
System.Net.Http (8)
System\Net\Http\DiagnosticsHelper.cs (1)
30string pathAndQuery = uri.PathAndQuery;
System\Net\Http\HttpTelemetry.cs (2)
61request.RequestUri.PathAndQuery, 192string pathAndQuery = redirectUri.PathAndQuery;
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (2)
110sb.AppendKeyValue(Uri, request.RequestUri.PathAndQuery); 147string a2 = request.Method.Method + ":" + request.RequestUri.PathAndQuery;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1501string pathAndQuery = request.RequestUri.PathAndQuery;
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
636string pathAndQuery = request.RequestUri.PathAndQuery;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
337WriteAsciiString(request.RequestUri.PathAndQuery);
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
154path = raw_uri.PathAndQuery;
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1627string s = Address.Scheme + "://" + hostName + Address.PathAndQuery;
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1532string path = uri.PathAndQuery;
Templates.Mvc.Tests (1)
BlazorTemplateTest.cs (1)
112Assert.Equal("/Account/Login?ReturnUrl=%2Fauth", response.RequestMessage.RequestUri.PathAndQuery);