191 references to AbsolutePath
aspire (16)
Documentation\ApiDocs\ApiSitemapParser.cs (1)
89var absolutePath = uri.AbsolutePath.AsSpan();
Documentation\DocumentationCacheKey.cs (1)
31var rawSegments = uri.AbsolutePath.Split('/', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
Mcp\Tools\McpToolHelpers.cs (4)
193var isLoginPath = uri.AbsolutePath.EndsWith("/login", StringComparison.OrdinalIgnoreCase); 195? uri.AbsolutePath[..^"/login".Length] 196: uri.AbsolutePath; 210if (sanitizedUri.AbsolutePath == "/")
Npm\SigstoreNpmProvenanceChecker.cs (1)
533var segments = uri.AbsolutePath.Trim('/').Split('/');
src\Shared\DashboardUrls.cs (7)
32var isLoginPath = uri.AbsolutePath.EndsWith("/login", StringComparison.OrdinalIgnoreCase); 34? uri.AbsolutePath[..^"/login".Length] 35: uri.AbsolutePath; 44if (normalizedUri.AbsolutePath == "/") 70return normalizedUri.AbsolutePath == "/" 82uri.AbsolutePath.EndsWith("/login", StringComparison.OrdinalIgnoreCase)) 294Path = $"{baseUri.AbsolutePath.TrimEnd('/')}/{pathWithoutQuery.TrimStart('/')}",
Telemetry\InternalMicrosoftDetector.cs (1)
1881uri.AbsolutePath.TrimEnd('/').Equals(expectedPath, StringComparison.OrdinalIgnoreCase);
Utils\CliDownloader.cs (1)
108var fileName = Path.GetFileName(uri.AbsolutePath);
Aspire.Acquisition.Tests (1)
Scripts\Common\ScriptHostFixture.cs (1)
172var requestPath = ctx.Request.Url?.AbsolutePath.TrimStart('/');
Aspire.Azure.AI.Inference (1)
AspireAzureAIInferenceExtensions.cs (1)
483&& !(IsHostOrSubdomain(host, "services.ai.azure.com") && IsPathOrSubpath(endpoint.AbsolutePath, "/openai"));
Aspire.Cli.Tests (41)
Agents\AspireSkillsInstallerTests.cs (13)
156if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 206if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 257if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 323if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 992if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1286if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1342if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1601if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1637Assert.Equal($"/repos/{AspireSkillsInstaller.GitHubRepository}{ReleaseTagPath}", releaseRequestUri.AbsolutePath); 1667if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1716if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1772if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal)) 1981if (request.RequestUri!.AbsolutePath.EndsWith(ReleaseTagPath, StringComparison.Ordinal))
Commands\TelemetryCommandTests.cs (1)
342if (request.RequestUri!.AbsolutePath.EndsWith("/resources", StringComparison.Ordinal))
Commands\TelemetryFollowTests.cs (1)
254if (request.RequestUri!.AbsolutePath == "/api/telemetry/resources")
Commands\TelemetryTracesCommandTests.cs (2)
104return request.RequestUri.AbsolutePath switch 191return request.RequestUri.AbsolutePath switch
Mcp\ExcludeFromMcpTests.cs (1)
594if (request.RequestUri?.AbsolutePath.Contains("/resources") == true)
Mcp\ListStructuredLogsToolTests.cs (6)
74var isResourcesRequest = request.RequestUri!.AbsolutePath.EndsWith( 127if (request.RequestUri!.AbsolutePath.EndsWith("/resources", StringComparison.Ordinal)) 268if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 362if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 417if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 556if (request.RequestUri?.AbsolutePath.Contains("/resources") == true)
Mcp\ListTracesToolTests.cs (6)
33if (request.RequestUri!.AbsolutePath.EndsWith("/resources", StringComparison.Ordinal)) 192if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 299if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 354if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 458if (request.RequestUri?.AbsolutePath.Contains("/resources") == true) 550if (request.RequestUri?.AbsolutePath.Contains("/resources") == true)
Mcp\ListTraceStructuredLogsToolTests.cs (1)
27if (request.RequestUri!.AbsolutePath.EndsWith("/resources", StringComparison.Ordinal))
Mcp\McpToolHelpersTests.cs (1)
214Assert.Equal("/api/telemetry/resources", resourcesUri.AbsolutePath);
ProfileCaptureServiceTests.cs (1)
653if (request.RequestUri?.AbsolutePath.EndsWith("/api/telemetry/traces", StringComparison.Ordinal) is true)
Telemetry\InternalMicrosoftDetectorTests.cs (8)
1134Task.FromResult(request.RequestUri?.AbsolutePath switch 1206Task.FromResult(request.RequestUri?.AbsolutePath switch 1230Task.FromResult(request.RequestUri?.AbsolutePath switch 1253Task.FromResult(request.RequestUri?.AbsolutePath switch 1277Task.FromResult(request.RequestUri?.AbsolutePath switch 1301Task.FromResult(request.RequestUri?.AbsolutePath switch 1330Task.FromResult(request.RequestUri?.AbsolutePath switch 1886_requestPaths.Add(request.RequestUri?.AbsolutePath ?? string.Empty);
Aspire.Dashboard (11)
Components\Layout\DesktopNavMenu.razor.cs (1)
64var trimmedPath = result.AbsolutePath.TrimStart('/');
Model\BrowserLinkOutgoingPeerResolver.cs (1)
44var parts = uri.AbsolutePath.Split('/', StringSplitOptions.RemoveEmptyEntries);
Model\ConnectionStringParser.cs (1)
199var escapedDatabaseName = uri.AbsolutePath.Trim('/');
Model\TargetLocationInterceptor.cs (1)
29path = uri.AbsolutePath;
src\Shared\DashboardUrls.cs (7)
32var isLoginPath = uri.AbsolutePath.EndsWith("/login", StringComparison.OrdinalIgnoreCase); 34? uri.AbsolutePath[..^"/login".Length] 35: uri.AbsolutePath; 44if (normalizedUri.AbsolutePath == "/") 70return normalizedUri.AbsolutePath == "/" 82uri.AbsolutePath.EndsWith("/login", StringComparison.OrdinalIgnoreCase)) 294Path = $"{baseUri.AbsolutePath.TrimEnd('/')}/{pathWithoutQuery.TrimStart('/')}",
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
714Assert.Equal("/metrics/resource/TestApp2", loadRedirect.AbsolutePath);
Aspire.Dashboard.Tests (6)
Integration\FrontendOpenIdConnectAuthTests.cs (1)
49Assert.Equal("/authorize", redirectedTo.AbsolutePath);
Integration\Playwright\BrowserTokenAuthenticationTests.cs (5)
67await page.WaitForURLAsync(url => new Uri(url).AbsolutePath == "/").DefaultTimeout(); 96await page.WaitForURLAsync(url => new Uri(url).AbsolutePath == "/").DefaultTimeout(); 197Assert.Equal("/", new Uri(firstResponse!.Url).AbsolutePath); 200Assert.Equal(canAccessBoth ? "/" : "/login", new Uri(secondResponse!.Url).AbsolutePath); 290Assert.Equal("/structuredlogs", new Uri(page.Url).AbsolutePath);
Aspire.Deployment.EndToEnd.Tests (1)
FoundryHostedAgentDeploymentTests.cs (1)
462$"{projectEndpoint.AbsolutePath.TrimEnd('/')}/toolboxes/field-tools/mcp?api-version=v1");
Aspire.Hosting (2)
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
29var codespacesUrl = $"{uri.Scheme}://{options.Value.CodespaceName}-{uri.Port}.{options.Value.PortForwardingDomain}{uri.AbsolutePath}{uri.Query}";
Orchestrator\ApplicationOrchestrator.cs (1)
485var primaryPath = primaryUri?.IsAbsoluteUri == true ? primaryUri.AbsolutePath : primaryUrl.Url;
Aspire.Hosting.Azure.Tests (25)
AzureSandboxesTests.cs (8)
494Assert.Equal("/subscriptions/sub/resourceGroups/rg/sandboxGroups/sg/diskimages/v2", request.RequestUri?.AbsolutePath); 619if (request.RequestUri?.AbsolutePath.EndsWith("/sandboxes", StringComparison.Ordinal) == true) 633Assert.EndsWith("/diskimages", request.RequestUri?.AbsolutePath); 1203Assert.Contains("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/existing-rg/", requestUri?.AbsolutePath); 1204Assert.Contains("/sandboxGroups/existing-group/", requestUri?.AbsolutePath); 1721Assert.Equal("/subscriptions/sub/resourceGroups/rg/sandboxGroups/sg/sandboxes", request.RequestUri?.AbsolutePath); 1792Assert.Equal("/subscriptions/sub/resourceGroups/rg/sandboxGroups/sg/sandboxes/sandbox-1/lifecycle", request.RequestUri?.AbsolutePath); 1844Assert.Equal("/subscriptions/sub/resourceGroups/rg/sandboxGroups/sg/sandboxes/sandbox-1/ports/add", request.RequestUri?.AbsolutePath);
DefaultArmClientProviderTests.cs (17)
56static uri => uri.AbsolutePath.EndsWith($"/subscriptions/{SubscriptionId}/providers/Microsoft.Search", StringComparison.Ordinal)); 175Assert.Contains(transport.Requests, static request => request.Method == RequestMethod.Get.ToString() && request.Uri.AbsolutePath == KeyVaultResourceId); 176Assert.Contains(transport.Requests, static request => request.Method == RequestMethod.Delete.ToString() && request.Uri.AbsolutePath == KeyVaultResourceId); 179request.Uri.AbsolutePath == DeletedKeyVaultPurgePath && 183request.Uri.AbsolutePath == DeletedKeyVaultPath); 199Assert.DoesNotContain(transport.Requests, static request => request.Method == RequestMethod.Delete.ToString() && request.Uri.AbsolutePath == KeyVaultResourceId); 202request.Uri.AbsolutePath.Contains("/locations/ukwest/deletedVaults/kv-test/purge", StringComparison.Ordinal)); 203Assert.DoesNotContain(transport.Requests, static request => request.Uri.AbsolutePath == DeletedKeyVaultPurgePath); 240request.Uri.AbsolutePath == DeletedKeyVaultPurgePath && 414if (IsNestedDeploymentOperationsPath(request.Uri.AbsolutePath)) 439string.Equals(uri.AbsolutePath, KeyVaultResourceId, StringComparison.Ordinal)) 445string.Equals(uri.AbsolutePath, KeyVaultResourceId, StringComparison.Ordinal)) 451IsDeletedKeyVaultPurgePath(uri.AbsolutePath)) 453return CreateDeletedKeyVaultPurgeResponse(uri.AbsolutePath); 457IsDeletedKeyVaultPath(uri.AbsolutePath)) 459return CreateDeletedKeyVaultGetResponse(uri.AbsolutePath); 462var content = uri.AbsolutePath switch
Aspire.Hosting.DevTunnels (1)
DevTunnelOutputParser.cs (1)
142&& uri.AbsolutePath == "/"
Aspire.Hosting.Foundry (4)
FoundryExtensions.cs (2)
522if (endpoint.AbsolutePath.EndsWith('/')) 529Path = endpoint.AbsolutePath + "/"
FoundryLocalService.cs (2)
734if (endpoint.AbsolutePath.EndsWith('/')) 741Path = endpoint.AbsolutePath + "/"
Aspire.Hosting.Testing.Tests (3)
DashboardUrlTests.cs (3)
34Assert.Equal("/login", dashboardUri.AbsolutePath); 76Assert.Equal("/login", dashboardUri.AbsolutePath); 266Assert.Equal("/", dashboardUri.AbsolutePath);
blazor-gateway (1)
TelemetryFilters.cs (1)
35if (requestUri.AbsolutePath.StartsWith(excluded, StringComparison.OrdinalIgnoreCase))
BlazorHosted (1)
Program.cs (1)
28|| !request.RequestUri.AbsolutePath.StartsWith("/v1/", StringComparison.Ordinal));
dotnet-aot (3)
parent\dotnet\Commands\Test\MTP\IPC\HttpTestHostGateway.cs (3)
109if (!string.Equals(request.Url?.AbsolutePath, Endpoint.AbsolutePath, StringComparison.Ordinal)) 281uri.AbsolutePath != "/")
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
285if (!baseAddress.AbsolutePath.EndsWith("/", StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (2)
377if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0)
Metadata\MetadataFileNameManager.cs (1)
128string absolutePath = nsUri.AbsolutePath;
OutputPathHelper.cs (1)
139string absolutePath = nsUri.AbsolutePath;
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
190string absolutePath = nsUri.AbsolutePath;
Infrastructure.Tests (2)
Pipelines\NixCliPackageTests.cs (1)
48Assert.Equal($"/microsoft/aspire/releases/download/v{version}/{archiveName}", url.AbsolutePath);
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
579var path = ctx.Request.Url?.AbsolutePath ?? string.Empty;
Microsoft.AspNetCore.Components.Endpoints (1)
Routing\BasePath.cs (1)
41return absoluteUri.AbsolutePath;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
374var devToolsUrlWithProxy = $"{devToolsUrlAbsolute.Scheme}://{devToolsUrlAbsolute.Authority}{devToolsUrlAbsolute.AbsolutePath}?{underlyingV8Endpoint.Scheme}={proxyEndpoint.Authority}{underlyingV8Endpoint.PathAndQuery}";
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\Utils.cs (1)
19Path = url.AbsolutePath
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.cs (1)
730var absolutePath = uri.AbsolutePath;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
278_serviceName = (_endPoint is UriEndPoint e) ? e.Uri.AbsolutePath.Trim('/') : null;
Microsoft.Diagnostics.NETCore.Client (3)
DiagnosticsIpc\IpcEndpointConfig.cs (3)
169address = parsedAddress.AbsolutePath; 174address = parsedAddress.AbsolutePath; 178address = parsedAddress.AbsolutePath;
Microsoft.DotNet.Cli.InternalMicrosoft (1)
Providers\MacPlatformSsoDetectionProvider.cs (1)
218uri.AbsolutePath.Equals(
Microsoft.Extensions.AI.Abstractions (1)
Contents\UriContent.cs (1)
102path = uri.AbsolutePath;
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIHostedFileClientTests.cs (4)
572request.RequestUri!.AbsolutePath.EndsWith("/content", StringComparison.Ordinal) 606request.RequestUri!.AbsolutePath.EndsWith("/content", StringComparison.Ordinal) 701request.RequestUri!.AbsolutePath.EndsWith("/content", StringComparison.Ordinal) 831Assert.Contains("/containers/default-ctr/", request.RequestUri!.AbsolutePath);
Microsoft.Extensions.Http.Diagnostics (5)
Http\HttpDependencyMetadataResolver.cs (1)
72return GetRequestMetadataInternal(requestMessage.Method.Method, requestMessage.RequestUri.AbsolutePath, hostMetadata);
Logging\Internal\HttpClientLogger.cs (1)
92? request.RequestUri?.AbsolutePath
Logging\Internal\HttpRequestReader.cs (3)
230logRecord.Path = request.RequestUri.AbsolutePath; 257logRecord.Path = _routeFormatter.Format(in routeSegments, request.RequestUri.AbsolutePath, _routeParameterRedactionMode, _defaultSensitiveParameters); 268if (_httpRouteParser.TryExtractParameters(request.RequestUri.AbsolutePath, in routeSegments, _routeParameterRedactionMode, _defaultSensitiveParameters, ref routeParams))
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\AcceptanceTests.cs (1)
387loggedPath.Should().Be(httpRequestMessage.RequestUri.AbsolutePath);
Microsoft.Extensions.ServiceDiscovery (3)
Http\ResolvingHttpDelegatingHandler.cs (3)
78if (ep.AbsolutePath.Length > 1) 80result.Path = $"{ep.AbsolutePath.TrimEnd('/')}/{uri.AbsolutePath.TrimStart('/')}";
Microsoft.Maui.Controls (1)
ResourceDictionary.cs (1)
450 return resourceUri.AbsolutePath.Substring(1);
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
199destFileName = Path.GetFileName(new Uri(url).AbsolutePath); ;
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Devices\Network.DownloadFile.vb (1)
349Dim dialog As ProgressDialog = GetProgressDialog(address.AbsolutePath, fullFilename, showUI)
Microsoft\VisualBasic\Devices\Network.UploadFile.vb (2)
146If String.IsNullOrEmpty(IO.Path.GetFileName(addressUri.AbsolutePath)) Then 298address.AbsolutePath)
NuGet.Credentials (1)
SecurePluginCredentialProvider.cs (1)
233uri.AbsolutePath,
NuGet.Protocol (4)
Resources\PackageStagingResourceV3.cs (1)
96Path = _endpoint.AbsolutePath.TrimEnd('/') + "/" + route,
Resources\PackageUpdateResource.cs (3)
693var pathResolver = new PackagePathResolver(sourceUri.AbsolutePath, useSideBySidePaths: true); 800var resolver = new PackagePathResolver(sourceuri.AbsolutePath, useSideBySidePaths: true); 853if (string.IsNullOrEmpty(baseUri.AbsolutePath.TrimStart('/')) && !noServiceEndpoint)
PresentationCore (5)
System\Windows\Media\ColorContext.cs (3)
541throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath); 545FromStream(profileStream, profileUri.AbsolutePath);
System\Windows\Navigation\BaseUriHelper.cs (2)
165Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 444source = new Uri(uri.AbsolutePath, UriKind.Relative);
PresentationFramework (1)
System\Windows\Navigation\JournalEntry.cs (1)
334string relativeUri = uri.AbsolutePath + uri.Query + uri.Fragment;
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
92return new Uri(resolvedUri.AbsolutePath, UriKind.Relative);
System.Net.Http (4)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 81return uri.AbsolutePath.AsSpan(0, compareLength).Equals(uriPrefix.AbsolutePath.AsSpan(0, compareLength), StringComparison.Ordinal); 124int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
183string path = WebUtility.UrlDecode(uri.AbsolutePath);
System.Net.Primitives (6)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 81return uri.AbsolutePath.AsSpan(0, compareLength).Equals(uriPrefix.AbsolutePath.AsSpan(0, compareLength), StringComparison.Ordinal); 124int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System\Net\Cookie.cs (1)
362string path = uri.AbsolutePath;
System\Net\CookieContainer.cs (1)
723if (PathMatch(uri.AbsolutePath, path))
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
987string originalPath = baseUri.AbsolutePath;
System.Private.Uri (5)
System\Uri.cs (4)
1867string otherPath = uri.AbsolutePath; 1870string relativeUriString = PathDifference(AbsolutePath, otherPath, !IsUncOrDosPath); 4709return PathDifference(AbsolutePath, toUri.AbsolutePath, !IsUncOrDosPath);
System\UriBuilder.cs (1)
308_path = _uri.AbsolutePath;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
105if (!baseAddress.AbsolutePath.EndsWith("/", StringComparison.Ordinal))
System.ServiceModel.Primitives (2)
System\ServiceModel\EndpointAddress.cs (2)
343if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0)
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
36return via.AbsolutePath;
System.Speech (1)
Internal\SrgsCompiler\SRGSCompiler.cs (1)
51srgsPath = Path.GetDirectoryName(uri.IsAbsoluteUri ? uri.AbsolutePath : uri.OriginalString);