77 references to AbsolutePath
Aspire.Dashboard (2)
Model\BrowserLinkOutgoingPeerResolver.cs (1)
45var parts = uri.AbsolutePath.Split('/', StringSplitOptions.RemoveEmptyEntries);
Model\TargetLocationInterceptor.cs (1)
29path = uri.AbsolutePath;
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
113Assert.Equal("/metrics/resource/TestApp", loadRedirect.AbsolutePath);
Aspire.Dashboard.Tests (1)
Integration\FrontendOpenIdConnectAuthTests.cs (1)
50Assert.Equal("/authorize", redirectedTo.AbsolutePath);
Aspire.Hosting (2)
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
29var codespacesUrl = $"{uri.Scheme}://{options.Value.CodespaceName}-{uri.Port}.{options.Value.PortForwardingDomain}{uri.AbsolutePath}";
ResourceBuilderExtensions.cs (1)
402if (uri.AbsolutePath != "/")
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
190string absolutePath = nsUri.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;
Microsoft.AspNetCore.Authentication.Test (7)
OpenIdConnect\OpenIdConnectChallengeTests.cs (3)
974if (string.Equals("/tokens", request.RequestUri.AbsolutePath, StringComparison.Ordinal)) 982if (string.Equals("/user", request.RequestUri.AbsolutePath, StringComparison.Ordinal)) 986if (string.Equals("/par", request.RequestUri.AbsolutePath, StringComparison.Ordinal))
OpenIdConnect\OpenIdConnectEventTests.cs (2)
1393if (string.Equals("/tokens", request.RequestUri.AbsolutePath, StringComparison.Ordinal)) 1401if (string.Equals("/user", request.RequestUri.AbsolutePath, StringComparison.Ordinal))
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (2)
1388if (string.Equals("/tokens", request.RequestUri.AbsolutePath, StringComparison.Ordinal)) 1396if (string.Equals("/user", request.RequestUri.AbsolutePath, StringComparison.Ordinal))
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
370var 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)
86 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
86 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
86 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\Utils.cs (1)
18Path = url.AbsolutePath
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
AntiforgeryAuthTests.cs (2)
39Assert.Equal("/Home/Login", response.Headers.Location.AbsolutePath, StringComparer.OrdinalIgnoreCase); 51Assert.Equal("/Home/Login", response.Headers.Location.AbsolutePath, StringComparer.OrdinalIgnoreCase);
RoutingTestsBase.cs (2)
563var expectedUrl = new Uri(url).AbsolutePath; 606var expectedUrl = new Uri(url).AbsolutePath;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
244_serviceName = (_endPoint is UriEndPoint e) ? e.Uri.AbsolutePath.Trim('/') : null;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\TextDocumentIdentifier.cs (1)
78return this.Uri == null ? string.Empty : this.Uri.AbsolutePath;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
UriTests.cs (2)
119Assert.NotEqual(expectedDocumentUri.AbsolutePath, lowercaseUri.AbsolutePath);
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
51string path = new Uri(codeBaseUri).AbsolutePath;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\BlobUrlInfo.cs (1)
52String path = uri.AbsolutePath;
Microsoft.DotNet.Git.IssueManager (1)
Clients\GitHubClient.cs (1)
102Match match = repositoryUriPattern.Match(uri.AbsolutePath);
Microsoft.Extensions.Http.Diagnostics (6)
Http\DownstreamDependencyMetadataManager.cs (2)
52return GetRequestMetadataInternal(requestMessage.Method.Method, requestMessage.RequestUri.AbsolutePath, hostMetadata); 68return GetRequestMetadataInternal(requestMessage.Method, requestMessage.RequestUri.AbsolutePath, hostMetadata);
Logging\Internal\HttpClientLogger.cs (1)
94? request.RequestUri?.AbsolutePath
Logging\Internal\HttpRequestReader.cs (3)
145logRecord.Path = request.RequestUri.AbsolutePath; 170logRecord.Path = _routeFormatter.Format(in routeSegments, request.RequestUri.AbsolutePath, _routeParameterRedactionMode, _defaultSensitiveParameters); 181if (_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.Http.Polly.Tests (3)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (3)
82.AddPolicyHandler((req) => req.RequestUri.AbsolutePath == "/" ? RetryPolicy : NoOpPolicy) 120.AddPolicyHandler((req) => req.RequestUri.AbsolutePath == "/" ? RetryPolicy : NoOpPolicy) 202return req.RequestUri.AbsolutePath == "/" ?
Microsoft.Extensions.ServiceDiscovery (1)
Http\ResolvingHttpDelegatingHandler.cs (1)
80result.Path = $"{ep.AbsolutePath.TrimEnd('/')}/{uri.AbsolutePath.TrimStart('/')}";
Microsoft.Maui (1)
ImageSources\UriImageSourceService\UriImageSourceService.iOS.cs (1)
122 var ext = Path.GetExtension(imageSource.Uri.AbsolutePath);
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.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
43string path = new Uri(codeBaseUri).AbsolutePath;
PresentationCore (5)
System\Windows\Media\ColorContext.cs (3)
534throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath); 538FromStream(profileStream, profileUri.AbsolutePath);
System\Windows\Navigation\BaseUriHelper.cs (2)
174Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 452source = new Uri(uri.AbsolutePath, UriKind.Relative);
PresentationFramework (1)
System\Windows\Navigation\JournalEntry.cs (1)
343string relativeUri = uri.AbsolutePath + uri.Query + uri.Fragment;
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
100return new Uri(resolvedUri.AbsolutePath, UriKind.Relative);
System.Net.Http (4)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0; 116int 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\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0; 116int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System\Net\Cookie.cs (1)
330string path = uri.AbsolutePath;
System\Net\CookieContainer.cs (1)
885if (PathMatch(uri.AbsolutePath, path))
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
985string originalPath = baseUri.AbsolutePath;
System.Private.Uri (5)
System\Uri.cs (4)
1851string otherPath = uri.AbsolutePath; 1854string relativeUriString = PathDifference(AbsolutePath, otherPath, !IsUncOrDosPath); 4979return PathDifference(AbsolutePath, toUri.AbsolutePath, !IsUncOrDosPath);
System\UriBuilder.cs (1)
284_path = _uri.AbsolutePath;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
105if (!baseAddress.AbsolutePath.EndsWith("/", StringComparison.Ordinal))
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
36return via.AbsolutePath;
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
243string codeBasePath = Uri.UnescapeDataString(codeBaseUrl.AbsolutePath);