216 references to OriginalString
Aspire.Dashboard.Components.Tests (3)
Pages\StructuredLogsTests.cs (3)
36navigationManager.NavigateTo(uri.OriginalString); 76navigationManager.NavigateTo(uri.OriginalString); 114navigationManager.NavigateTo(uri.OriginalString);
Aspire.Dashboard.Tests (6)
Middleware\ValidateTokenMiddlewareTests.cs (6)
23Assert.Equal("/", response.Headers.Location?.OriginalString); 31Assert.Equal("/test", response.Headers.Location?.OriginalString); 39Assert.Equal("/login", response.Headers.Location?.OriginalString); 47Assert.Equal("/login?returnUrl=%2ftest", response.Headers.Location?.OriginalString); 55Assert.Equal("/", response.Headers.Location?.OriginalString); 63Assert.Equal("/test", response.Headers.Location?.OriginalString);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
163return new CosmosClient(uri.OriginalString, new DefaultAzureCredential(), clientOptions);
Aspire.Microsoft.Azure.Cosmos (1)
AspireMicrosoftAzureCosmosExtensions.cs (1)
132return new CosmosClient(settings.AccountEndpoint.OriginalString, credential, clientOptions);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
AspireAzureEFCoreCosmosExtensions.cs (1)
81dbContextOptionsBuilder.UseCosmos(settings.AccountEndpoint.OriginalString, credential, databaseName, UseCosmosBody);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
198FilenameFromUri_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
dotnet-svcutil-lib (19)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
33string filePath = uri.OriginalString;
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (3)
38if (chameleonLocation.OriginalString.Length == 0) 70Debug.Assert((chameleonLocation.OriginalString.Length == 0 && originalSchema != null) 71|| (chameleonLocation.OriginalString.Length != 0 && originalSchema == null));
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
2683string stringValue = uri.OriginalString;
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
1435if (value.Equals(((Uri)enumeration[i]).OriginalString))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (5)
1000if (schemaUri == null || schemaUri.OriginalString.Length == 0) 1272if (_schemas.ContainsKey(currentSchema.SchemaId) || (baseUri != null && baseUri.OriginalString.Length != 0 && _schemaLocations[baseUri] != null)) 1278if (baseUri != null && baseUri.OriginalString.Length != 0) 1441if (schemaUri == null || schemaUri.OriginalString.Length == 0) 1483if (reprocessList[i].BaseUri != null && reprocessList[i].BaseUri.OriginalString.Length != 0)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
758return value.OriginalString;
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (2)
44if (baseUri == null || (!baseUri.IsAbsoluteUri && baseUri.OriginalString.Length == 0)) 47if (!uri.IsAbsoluteUri && uri.OriginalString.Length > 0)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
1429AddToNamespace(builder, uri.OriginalString, fragments);
Metadata\MetadaExchangeResolver.cs (1)
403throw new MetadataExchangeException(MetadataResources.ErrCannotCreateAMetadataExchangeClientFormat, endpointAddress.Uri.OriginalString, scheme);
Metadata\MetadataFileNameManager.cs (1)
138FileNameFromNS_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
OutputPathHelper.cs (1)
147FilenameFromUri_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
Shared\Options\OptionValueParser.cs (1)
110value = (uri.IsAbsoluteUri && uri.IsFile ? uri.LocalPath : uri.OriginalString).Replace("\\", "/");
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (2)
1392Assert.Equal("/page", location.OriginalString); 1440Assert.Equal("/page", location.OriginalString);
GoogleTests.cs (1)
1016Assert.StartsWith("https://www.facebook.com/", transaction.Response.Headers.Location.OriginalString);
Microsoft.AspNetCore.Components (19)
NavigationManager.cs (19)
58return _baseUri!.OriginalString; 230if (uri.StartsWith(_baseUri!.OriginalString, StringComparison.Ordinal)) 234return uri.Substring(_baseUri.OriginalString.Length); 239if (_baseUri.OriginalString.EndsWith('/') && uriPathOnly.Equals(_baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal)) 247return uri.Substring(_baseUri.OriginalString.Length - 1); 256if (MemoryExtensions.StartsWith(uri, _baseUri!.OriginalString.AsSpan(), StringComparison.Ordinal)) 260return uri[_baseUri.OriginalString.Length..]; 265if (_baseUri.OriginalString.EndsWith('/') && MemoryExtensions.Equals(uriPathOnly, _baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal)) 273return uri[(_baseUri.OriginalString.Length - 1)..]; 521if (uri.StartsWith(baseUri.OriginalString, StringComparison.Ordinal)) 525length = baseUri.OriginalString.Length; 531if (baseUri.OriginalString.EndsWith('/') && uriPathOnly.Equals(baseUri.OriginalString.AsSpan(0, baseUri.OriginalString.Length - 1), StringComparison.Ordinal)) 539length = baseUri.OriginalString.Length - 1;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
1885string uriParsing(Uri uri) => $"Uri: {uri.OriginalString}";
Microsoft.AspNetCore.Mvc.Core.Test (4)
ControllerBaseTest.cs (4)
1332Assert.Equal(uri.OriginalString, result.Location); 1363Assert.Equal(uri.OriginalString, result.Location); 1542Assert.Equal(uri.OriginalString, result.Location); 1558Assert.Equal(uri.OriginalString, result.Location);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureTests.cs (1)
123Assert.Equal("/Testing/Builder", response.Headers.Location?.OriginalString);
Microsoft.AspNetCore.Rewrite.Tests (34)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (3)
381Assert.Equal("/", response.Headers.Location.OriginalString); 435Assert.Equal("/foo", response.Headers.Location.OriginalString); 464Assert.Equal("http://localhost:80/home/report/123", response.Headers.Location.OriginalString);
IISUrlRewrite\MiddleWareTests.cs (10)
47Assert.Equal("/article.aspx?id=10&title=hey", response.Headers.Location.OriginalString); 147Assert.Equal("/hello", response.Headers.Location.OriginalString); 182Assert.Equal("/hey/hello", response.Headers.Location.OriginalString); 217Assert.Equal("/hey/hello/", response.Headers.Location.OriginalString); 251Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 365Assert.Equal("/", response.Headers.Location.OriginalString); 434Assert.Equal("/foo", response.Headers.Location.OriginalString); 472Assert.Equal("/hey/hello/", response.Headers.Location.OriginalString); 508Assert.Equal("/blogposts/article/abc?p1=123&p2=abc", response.Headers.Location.OriginalString); 544Assert.Equal("/blog/article/23/abc?p1=123&p2=abc", response.Headers.Location.OriginalString);
MiddlewareTests.cs (21)
174Assert.Equal(expectedUrl, response.Headers.Location.OriginalString); 204Assert.Equal("http://example.com/foo", response.Headers.Location.OriginalString); 228Assert.Equal("http://example.com/foo?bar=1", response.Headers.Location.OriginalString); 256Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 285Assert.Equal($"https://example.com:{sslPort.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)}/", response.Headers.Location.OriginalString); 289Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 329Assert.Equal("https://" + expectedHostPathAndQuery, response.Headers.Location.OriginalString); 359Assert.Equal(redirectReplacement, response.Headers.Location.OriginalString); 383Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 410Assert.Equal(expected, response.Headers.Location.OriginalString); 439Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString); 468Assert.Equal(redirectUri, response.Headers.Location.OriginalString); 493Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString); 556Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 585Assert.Equal(redirectUri, response.Headers.Location.OriginalString); 610Assert.Equal("https://example.com/", response.Headers.Location.OriginalString); 634Assert.Equal("/", response.Headers.Location.OriginalString); 726Assert.Equal("/foo", response.Headers.Location.OriginalString); 783Assert.Equal(redirectUri, response.Headers.Location.OriginalString); 808Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString); 837Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
UriTests.cs (4)
81Assert.Equal(looseFileUri.OriginalString, document.FilePath); 227"uri": "{{{upperCaseUri.OriginalString}}}", 275"uri": "{{{upperCaseUri.OriginalString}}}", 313Assert.Equal(looseFileUri.OriginalString, document.FilePath);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
134string relativePath = part.Uri.OriginalString;
src\ReplacePackageParts.cs (1)
132string relativePath = part.Uri.OriginalString;
Microsoft.Maui (1)
ImageSources\UriImageSourceService\UriImageSourceService.iOS.cs (1)
121 var hash = Crc64.ComputeHashString(imageSource.Uri.OriginalString);
Microsoft.Maui.Controls (19)
ResourceDictionary.cs (3)
445 var resourceUri = uri.OriginalString.StartsWith("/", StringComparison.Ordinal) 446 ? new Uri($"{GetResourcePathUriScheme}{uri.OriginalString}", UriKind.Absolute) 447 : new Uri($"{GetResourcePathUriScheme}/{rootTargetPath}/../{uri.OriginalString}", UriKind.Absolute);
Routing.cs (1)
247 var parts = uri.OriginalString.Split(new[] { '/', '\\' }, StringSplitOptions.RemoveEmptyEntries);
Shell\ShellNavigationState.cs (2)
70 if (!uri.OriginalString.StartsWith("//", StringComparison.Ordinal)) 73 string[] parts = uri.OriginalString.TrimEnd(Routing.PathSeparator[0]).Split(Routing.PathSeparator[0]);
Shell\ShellUriHandler.cs (13)
19 if (path.OriginalString.StartsWith("..", StringComparison.Ordinal) && shell?.CurrentState != null) 21 var pathAndQueryString = path.OriginalString.Split(new[] { '?' }, 2); 77 return new Uri(FormatUri(path.OriginalString), UriKind.Absolute); 80 return new Uri(FormatUri(path.OriginalString), UriKind.Relative); 106 if (request?.TargetState?.Location?.OriginalString == null) 115 var dest = request.TargetState?.Location?.OriginalString; 143 pathAndQuery = request.OriginalString.Split('?'); 169 else if (uri.OriginalString.StartsWith("//", StringComparison.Ordinal) || uri.OriginalString.StartsWith("\\\\", StringComparison.Ordinal)) 243 !originalRequest.OriginalString.StartsWith("//", StringComparison.Ordinal)) 318 if (routeKey == originalRequest.OriginalString) 335 var replaced = originalRequest.OriginalString.Replace("//", "", StringComparison.Ordinal); 436 var currentSegments = RetrievePaths(startingFrom.OriginalString);
Microsoft.VisualStudio.LanguageServices (3)
Progression\GraphBuilder.cs (2)
82var docIdsWithPath = _solution.GetDocumentIdsWithFilePath(filePath.OriginalString); 95if (string.Equals(projectState.FilePath, projectPath.OriginalString))
Progression\GraphQueries\ContainsChildrenGraphQuery.cs (1)
61var path = uri.OriginalString;
PresentationCore (4)
MS\Internal\FontCache\FontSource.cs (2)
356string fontFilename = _fontUri.OriginalString.Substring(_fontUri.OriginalString.LastIndexOf('/') + 1).ToLowerInvariant();
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1078bitmapStream = new System.IO.FileStream(uri.OriginalString, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Windows\Navigation\BaseUriHelper.cs (1)
391string.Compare(uri.OriginalString, 0, Uri.UriSchemeFile, 0, Uri.UriSchemeFile.Length, StringComparison.OrdinalIgnoreCase) != 0)
PresentationFramework (12)
MS\Internal\Utility\BindUriHelper.cs (1)
147return uri.OriginalString.StartsWith(FRAGMENTMARKER, StringComparison.Ordinal);
System\Windows\Application.cs (5)
378if (resourceLocator.OriginalString == null) 467if (resourceLocator.OriginalString == null) 602if (uriResource.OriginalString == null) 634if (uriContent.OriginalString == null) 663if (uriRemote.OriginalString == null)
System\Windows\Data\XmlNamespaceMappingCollection.cs (3)
93this.AddNamespace(mapping.Prefix, mapping.Uri.OriginalString); 125return (this.LookupNamespace(mapping.Prefix) == mapping.Uri.OriginalString); 162this.RemoveNamespace(mapping.Prefix, mapping.Uri.OriginalString);
System\Windows\Markup\XamlParseException.cs (1)
284bamlFilePath = resourceUri.OriginalString;
System\Windows\ResourceDictionary.cs (2)
135if (value == null || String.IsNullOrEmpty(value.OriginalString)) 2576public ResourceDictionarySourceUriWrapper(Uri originalUri, Uri versionedUri) : base(originalUri.OriginalString, UriKind.RelativeOrAbsolute)
ReachFramework (5)
Packaging\XpsFixedPageReaderWriter.cs (2)
1855ReadOnlySpan<char> path = imageUri.OriginalString.AsSpan(); 1900String path = fontUri.OriginalString;
Serialization\Manager\ReachSerializationUtils.cs (3)
947return uri.OriginalString.StartsWith(FRAGMENTMARKER,StringComparison.Ordinal); 984string documentFragmentUri = relativeUri.OriginalString + navigateUri.OriginalString;
System.ComponentModel.TypeConverter (4)
System\ComponentModel\UriTypeConverter.cs (4)
55return new Uri(uri.OriginalString, GetUriKind(uri)); 75return new InstanceDescriptor(ctor, new object[] { uri.OriginalString, GetUriKind(uri) }); 80return uri.OriginalString; 85return new Uri(uri.OriginalString, GetUriKind(uri));
System.IO.Packaging (2)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
511writer.WriteAttributeString(TargetAttributeName, relationship.TargetUri.OriginalString);
System\IO\Packaging\PackUriHelper.cs (1)
449if (!string.Equals(partUri.OriginalString, wellFormedPartName, StringComparison.OrdinalIgnoreCase))
System.Net.Mail (1)
System\Net\Mail\Attachment.cs (1)
271_part.ContentLocation = value == null ? null : value.IsAbsoluteUri ? value.AbsoluteUri : value.OriginalString;
System.Net.Requests (1)
System\Net\FtpWebRequest.cs (1)
492if (uri.OriginalString.Contains("\r\n", StringComparison.Ordinal))
System.Private.Uri (17)
System\Uri.cs (13)
641result = baseUri.OriginalString; 1522return OriginalString.GetHashCode(); 1703if (ReferenceEquals(s, OriginalString)) 1733if (ReferenceEquals(OriginalString, other.OriginalString)) 1742return OriginalString.Equals(other.OriginalString); 1989Debug.Assert(ReferenceEquals(_string, OriginalString)); 2353fixed (char* userString = OriginalString) 4707int idx = basePart.OriginalString.IndexOf(':'); 4710return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart); 4714idx = basePart.OriginalString.IndexOf(':', idx + 1); 4715return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart);
System\UriExt.cs (3)
403return uri1.IsAbsoluteUri ? 1 : uri2.IsAbsoluteUri ? -1 : string.Compare(uri1.OriginalString, 404uri2.OriginalString, comparisonType); 823relativeStr = relativeUri.OriginalString;
System\UriScheme.cs (1)
113return result.OriginalString;
System.Private.Xml (13)
System\Xml\Schema\Chameleonkey.cs (3)
34if (chameleonLocation.OriginalString.Length == 0) 66Debug.Assert((chameleonLocation.OriginalString.Length == 0 && originalSchema != null) 67|| (chameleonLocation.OriginalString.Length != 0 && originalSchema == null));
System\Xml\Schema\DataTypeImplementation.cs (1)
2629string stringValue = uri.OriginalString;
System\Xml\Schema\FacetChecker.cs (1)
1414if (value.Equals(((Uri)enumeration[i]!).OriginalString))
System\Xml\Schema\XmlSchemaSet.cs (5)
845if (schemaUri == null || schemaUri.OriginalString.Length == 0) 1115if (_schemas.ContainsKey(currentSchema.SchemaId) || (baseUri != null && baseUri.OriginalString.Length != 0 && _schemaLocations[baseUri] != null)) 1121if (baseUri != null && baseUri.OriginalString.Length != 0) 1280if (schemaUri == null || schemaUri.OriginalString.Length == 0) 1315if (reprocessList[i].BaseUri != null && reprocessList[i].BaseUri!.OriginalString.Length != 0)
System\Xml\Schema\XmlValueConverter.cs (1)
673return value.OriginalString;
System\Xml\XmlResolver.cs (2)
43if (baseUri == null || (!baseUri.IsAbsoluteUri && baseUri.OriginalString.Length == 0)) 46if (!uri.IsAbsoluteUri && uri.OriginalString.Length > 0)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1521AddToNamespace(builder, uri.OriginalString, fragments);
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
154AppliesTo = new AppliesTo(new EndpointReference(target.Uri.OriginalString)),
System.Text.Json (2)
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (2)
25writer.WriteStringValue(value.OriginalString); 53writer.WritePropertyName(value.OriginalString);
System.Windows.Forms (3)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1298urlString = url.IsFile ? url.OriginalString : url.AbsoluteUri;
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (2)
15if (uri is not null && !string.IsNullOrEmpty(uri.OriginalString) && !uri.IsAbsoluteUri) 19uri = new Uri($"http://{uri.OriginalString.AsSpan().Trim()}");
System.Windows.Forms.Tests (17)
System\Windows\Forms\HtmlDocumentTests.cs (1)
1947Assert.Equal("about:blank", newDocument.Url.OriginalString);
System\Windows\Forms\WebBrowserTests.cs (16)
581Assert.Equal("about:blank", control.Url.OriginalString); 587Assert.Equal("about:blank", control.Url.OriginalString); 741Assert.Equal("about:blank", e.Url.OriginalString); 750Assert.Equal("about:blank", e.Url.OriginalString); 764Assert.Equal("about:blank", e.Url.OriginalString); 789Assert.Equal("about:blank", control.Url.OriginalString); 803Assert.Equal("about:blank", control.Url.OriginalString); 817Assert.Equal("about:blank", control.Url.OriginalString); 823Assert.Equal("about:blank", control.Url.OriginalString); 2080Assert.Equal("about:blank", control.Url.OriginalString); 3296Assert.Equal("about:blank", control.Url.OriginalString); 3414Assert.Equal("about:blank", control.Url.OriginalString); 4046Assert.Equal("about:blank", control.Url.OriginalString); 4058Assert.Equal("about:blank", control.Url.OriginalString); 4195Assert.Equal("about:blank", control.Url.OriginalString); 4207Assert.Equal("about:blank", control.Url.OriginalString);
System.Xaml (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (5)
47return new InstanceDescriptor(constructor, new object[] { uri.OriginalString, uriKind }); 51return uri.OriginalString; 55return new Uri(uri.OriginalString, uriKind); 83return new Uri(uri.OriginalString, uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 86return new Uri(uri.OriginalString, UriKind.RelativeOrAbsolute);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
293result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
293result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
293result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
293result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
293result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";