99 references to GetComponents
Aspire.Dashboard (3)
Components\Dialogs\SettingsDialog.razor.cs (2)
88.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped); 125.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped);
Model\ResourceViewModel.cs (1)
68var hostAndPort = service.Url.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped);
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
633writer.WriteString(value.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
383string u1Path = u1.GetComponents(UriComponents.Path, UriFormat.Unescaped); 384string u2Path = u2.GetComponents(UriComponents.Path, UriFormat.Unescaped); 414string uriString = uri.GetComponents(components, UriFormat.Unescaped);
Metadata\MetadataFileNameManager.cs (1)
230return (new Uri(baseUri, relUrl)).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
86return builder.Uri.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped);
Microsoft.AspNetCore.Http.Abstractions (4)
FragmentString.cs (1)
98string fragmentValue = uri.GetComponents(UriComponents.Fragment, UriFormat.UriEscaped);
HostString.cs (1)
205return new HostString(uri.GetComponents(
PathString.cs (1)
205var uriComponent = uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped);
QueryString.cs (1)
95string queryValue = uri.GetComponents(UriComponents.Query, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
173return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Results (4)
Accepted.cs (1)
42Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
AcceptedOfT.cs (1)
51Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Created.cs (1)
43Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedOfT.cs (1)
51Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Mvc.Core (2)
AcceptedResult.cs (1)
57Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedResult.cs (1)
62Location = location.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.Build.Tasks.Git (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.NET.Build.Containers (2)
Registry\Registry.cs (2)
134return baseUri.GetComponents(UriComponents.HostAndPort, UriFormat.Unescaped); 139return baseUri.GetComponents(UriComponents.Host, UriFormat.Unescaped);
Microsoft.SourceLink.AzureDevOpsServer.Git (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.AzureRepos.Git (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.Bitbucket.Git (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.Common (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.Gitea (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.Gitee (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.GitHub (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.GitLab (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
Microsoft.SourceLink.GitWeb (5)
src\sourcelink\src\Common\Utilities\UriUtilities.cs (5)
77=> uri.GetComponents(UriComponents.Scheme, Format); 80=> uri.GetComponents(UriComponents.Host, Format); 83=> uri.GetComponents(UriComponents.Host | UriComponents.Port, Format); 86=> uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, Format); 89=> uri.GetComponents(UriComponents.PathAndQuery, Format);
NuGet.Configuration (1)
Proxy\ProxyCache.cs (1)
128var webProxy = new WebProxy(uri.GetComponents(
NuGet.Credentials (1)
CredentialService.cs (1)
230return new Uri(uri.GetComponents(UriComponents.SchemeAndServer, UriFormat.SafeUnescaped));
NuGet.Packaging (2)
PackageCreation\Authoring\PackageBuilder.cs (2)
1141Uri safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.Path, UriFormat.SafeUnescaped), UriKind.Relative); 1143return safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.Unescaped);
NuGet.Protocol (1)
HttpSource\TokenStore.cs (1)
67return new Uri(uri.GetComponents(UriComponents.SchemeAndServer, UriFormat.SafeUnescaped));
System.IO.Packaging (10)
System\IO\Packaging\FileFormatException.cs (1)
139info.AddValue("SourceUri", SourceUri?.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), typeof(string));
System\IO\Packaging\PackUriHelper.cs (5)
42string serializedPartUri = partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 406new Uri(s_defaultUri, partName).GetComponents(UriComponents.Path | 532safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative); 537new Uri(partUri.GetComponents(UriComponents.Path | 543string partName = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (4)
88string absolutePackageUri = packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 112packUri = new Uri(string.Concat(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment)); 118return new Uri(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped)); 303string hostAndPort = packUri.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped);
System.Net.Http (1)
System\Net\Http\Headers\UriHeaderParser.cs (1)
99return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
107string normalizedHost = constructedUri.GetComponents(
System.Net.Requests (2)
System\Net\FtpControlStream.cs (1)
778path = uri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
System\Net\WebRequest.cs (1)
259&& tempUri.GetComponents(UriComponents.PathAndQuery | UriComponents.Fragment, UriFormat.UriEscaped)
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
250string normalizedHost = constructedUri.GetComponents(
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
727_value = uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
676writer.WriteString(value?.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
System.Private.Uri (1)
System\UriCreationOptions.cs (1)
17/// <see cref="Uri.GetComponents(UriComponents, UriFormat)"/> may not be used for <see cref="UriComponents.Path"/> or <see cref="UriComponents.Query"/>.
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
178string authority = collationUri.GetComponents(UriComponents.Scheme | UriComponents.UserInfo | UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped);
System.ServiceModel.Primitives (3)
System\ServiceModel\EndpointAddress.cs (3)
349string u1Path = u1.GetComponents(UriComponents.Path, UriFormat.Unescaped); 350string u2Path = u2.GetComponents(UriComponents.Path, UriFormat.Unescaped); 380string uriString = uri.GetComponents(components, UriFormat.Unescaped);