91 references to GetComponents
Aspire.Dashboard (1)
Components\Dialogs\SettingsDialog.razor.cs (1)
70
.
GetComponents
(UriComponents.PathAndQuery, UriFormat.Unescaped);
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
633
writer.WriteString(value.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
383
string u1Path = u1.
GetComponents
(UriComponents.Path, UriFormat.Unescaped);
384
string u2Path = u2.
GetComponents
(UriComponents.Path, UriFormat.Unescaped);
414
string uriString = uri.
GetComponents
(components, UriFormat.Unescaped);
Metadata\MetadataFileNameManager.cs (1)
230
return (new Uri(baseUri, relUrl)).
GetComponents
(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Microsoft.AspNetCore.Authentication.Test (12)
FacebookTests.cs (4)
333
if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == FacebookDefaults.TokenEndpoint)
340
if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) ==
341
new Uri(customUserInfoEndpoint).
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped))
410
else if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.facebook.com/v14.0/me")
GoogleTests.cs (2)
1049
else if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://www.googleapis.com/oauth2/v3/userinfo")
1104
else if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://www.googleapis.com/oauth2/v3/userinfo")
MicrosoftAccountTests.cs (2)
208
else if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.microsoft.com/v1.0/me")
316
else if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.microsoft.com/v1.0/me")
TwitterTests.cs (4)
397
if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://api.twitter.com/oauth/access_token")
466
if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://api.twitter.com/oauth/access_token")
479
if (req.RequestUri.
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) ==
480
new Uri(verifyCredentialsEndpoint).
GetComponents
(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped))
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
86
return builder.Uri.
GetComponents
(UriComponents.SchemeAndServer, UriFormat.Unescaped);
Microsoft.AspNetCore.Http.Abstractions (4)
FragmentString.cs (1)
98
string fragmentValue = uri.
GetComponents
(UriComponents.Fragment, UriFormat.UriEscaped);
HostString.cs (1)
205
return new HostString(uri.
GetComponents
(
PathString.cs (1)
202
var uriComponent = uri.
GetComponents
(UriComponents.Path, UriFormat.UriEscaped);
QueryString.cs (1)
95
string queryValue = uri.
GetComponents
(UriComponents.Query, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
173
return uri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Results (4)
Accepted.cs (1)
42
Location = locationUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
AcceptedOfT.cs (1)
51
Location = locationUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Created.cs (1)
43
Location = locationUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedOfT.cs (1)
51
Location = locationUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Mvc.Core (2)
AcceptedResult.cs (1)
57
Location = locationUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedResult.cs (1)
62
Location = location.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (2)
462
string serializedSafe = parserContext.BaseUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped);
464
string cannonicalString = sameUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (2)
62
string basePath = baseUri.
GetComponents
(UriComponents.Path, UriFormat.UriEscaped);
63
string sourcePath = sourceUri.
GetComponents
(UriComponents.Path, UriFormat.UriEscaped);
PresentationCore (17)
MS\Internal\FontCache\FontCacheUtil.cs (5)
314
_windowsFontsUriString = _windowsFontsUriObject.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
489
string fragment = fontUri.
GetComponents
(UriComponents.Fragment, UriFormat.SafeUnescaped);
503
fontSourceUri = new Uri(fontUri.
GetComponents
(Util.UriWithoutFragment, UriFormat.SafeUnescaped));
520
string canonicalPathUri = new Uri(fontUri).
GetComponents
(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
588
string unescapedPath = uri.
GetComponents
(UriComponents.Path, UriFormat.Unescaped);
MS\Internal\FontCache\FontResourceCache.cs (1)
100
string path = uri.
GetComponents
(UriComponents.Path, UriFormat.SafeUnescaped);
MS\Internal\FontCache\FontSource.cs (1)
106
return _fontUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
212
streamUri.
GetComponents
(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (2)
59
uri.
GetComponents
(
163
referer = sourceUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
System\Windows\Media\Color.cs (2)
292
Uri safeUnescapedUri = new Uri(context.ProfileUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
295
String uriString = safeUnescapedUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Windows\Media\Fonts.cs (1)
97
location = fontLocation.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
System\Windows\Navigation\BaseUriHelper.cs (4)
152
string.Equals(PackUriHelper.GetPackageUri(uri).
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped),
188
Debug.Assert(string.Equals(partName, uri.
GetComponents
(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase));
358
if (string.Equals(packageUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped), _packageSiteOfOriginBaseUriEscaped, StringComparison.OrdinalIgnoreCase))
360
return (new Uri(sUri.
GetComponents
(UriComponents.SchemeAndServer, UriFormat.UriEscaped))).MakeRelativeUri(sUri);
PresentationFramework (5)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (2)
59
uri.
GetComponents
(
163
referer = sourceUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
System\Windows\Markup\ParserContext.cs (2)
462
string serializedSafe = parserContext.BaseUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped);
464
string cannonicalString = sameUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Windows\Markup\XamlParseException.cs (1)
280
bamlFilePath = resourceUri.
GetComponents
(UriComponents.Path, UriFormat.Unescaped);
PresentationUI (2)
MS\Internal\Documents\Application\AddressUtility.cs (2)
50
mailtoUri.
GetComponents
(UriComponents.UserInfo, UriFormat.Unescaped),
51
mailtoUri.
GetComponents
(UriComponents.Host, UriFormat.Unescaped));
ReachFramework (14)
Packaging\XpsManager.cs (2)
1522
Uri unescapedUri = new Uri(relativeUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
1524
return unescapedUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Packaging\XPSSignatureDefinition.cs (2)
361
Uri pageUri = new Uri(SpotLocation.PageUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
362
string pageUriAsString = pageUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Serialization\ColorTypeConverter.cs (2)
355
Uri safeUnescapedUri = new Uri(profileUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
358
String uriString = safeUnescapedUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Serialization\VisualSerializer.cs (1)
1653
return uri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped);
Serialization\XpsFontSubsetter.cs (6)
455
Uri fontUri = new Uri(_fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
456
string fontUriAsString = fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
601
Uri fontUri = new Uri(_fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
602
string fontUriAsString = fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
637
Uri fontUri = new Uri(_fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
638
string fontUriAsString = fontUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
59
uri.
GetComponents
(
System.IO.Packaging (10)
System\IO\Packaging\FileFormatException.cs (1)
139
info.AddValue("SourceUri", SourceUri?.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), typeof(string));
System\IO\Packaging\PackUriHelper.cs (5)
45
string serializedPartUri = partUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped);
436
new Uri(s_defaultUri, partName).
GetComponents
(UriComponents.Path |
562
safeUnescapedUri = new Uri(partUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative);
567
new Uri(partUri.
GetComponents
(UriComponents.Path |
573
string partName = safeUnescapedUri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (4)
88
string absolutePackageUri = packageUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
112
packUri = new Uri(string.Concat(packUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment));
118
return new Uri(packUri.
GetComponents
(UriComponents.AbsoluteUri, UriFormat.UriEscaped));
307
string hostAndPort = packUri.
GetComponents
(UriComponents.HostAndPort, UriFormat.UriEscaped);
System.Net.Http (1)
System\Net\Http\Headers\UriHeaderParser.cs (1)
99
return uri.
GetComponents
(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
107
string normalizedHost = constructedUri.
GetComponents
(
System.Net.Requests (2)
System\Net\FtpControlStream.cs (1)
778
path = 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)
250
string 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)
644
writer.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)
178
string authority = collationUri.
GetComponents
(UriComponents.Scheme | UriComponents.UserInfo | UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped);