Base:
method
ToString
System.Object.ToString()
355 references to ToString
Aspire.Azure.Storage.Blobs.Tests (1)
AzureBlobStorageContainerSettingsTests.cs (1)
35Assert.Equal("https://example.blob.core.windows.net/", settings.ServiceUri?.ToString());
Aspire.Azure.Storage.Files.DataLake.Tests (1)
AzureDataLakeFileSystemSettingsTests.cs (1)
35Assert.Equal("https://example.dfs.core.windows.net/", settings.ServiceUri?.ToString());
Aspire.Azure.Storage.Queues.Tests (1)
AzureStorageQueueSettingsTests.cs (1)
35Assert.Equal("https://example.queuename.core.windows.net/", settings.ServiceUri?.ToString());
Aspire.Cli.Tests (4)
Commands\ExportCommandTests.cs (2)
243var url = request.RequestUri!.ToString(); 720var url = request.RequestUri!.ToString();
Commands\TelemetryTestHelper.cs (1)
91var url = request.RequestUri!.ToString();
Mcp\ListTracesToolTests.cs (1)
398capturedUrl = request.RequestUri?.ToString();
Aspire.Dashboard (3)
Components\Dialogs\McpServerDialog.razor.cs (1)
71_mcpUrl = uri.ToString();
Model\Assistant\AIHelpers.cs (1)
68["url"] = u.Url.ToString()
Model\TelemetryExportService.cs (1)
737Url = u.Url.ToString()
Aspire.Dashboard.Tests (1)
Telemetry\DashboardTelemetrySenderTests.cs (1)
125Assert.Equal(expectedUrl, client.BaseAddress?.ToString());
Aspire.Hosting (13)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
522EndpointUrl = endpointUri.ToString(),
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
26return uri.ToString();
ExternalServiceBuilderExtensions.cs (3)
95resourceBuilder.WithUrl(resource.Uri.ToString()); 160if (urlSnapshots.Any(u => string.Equals(u.Url, uri.ToString(), StringComparisons.Url))) 165return urlSnapshots.Add(new(Name: null, uri.ToString(), IsInternal: false));
Orchestrator\ApplicationOrchestrator.cs (1)
418url.Url = uriBuilder.Uri.ToString();
ProjectResourceBuilderExtensions.cs (1)
640url.Url = (new Uri(baseUri, launchUri)).ToString();
ResourceBuilderExtensions.cs (6)
204builder.WithEnvironment(name, externalService.Resource.Uri.ToString()); 862builder.WithEnvironment($"services__{name}__default__0", uri.ToString()); 867builder.WithEnvironment(EnvironmentVariableNameEncoder.Encode(name), uri.ToString()); 899builder.WithEnvironment(encodedResourceName.ToUpperInvariant(), uri.ToString()); 905builder.WithEnvironment(envVarName, uri.ToString()); 1394u.Url = uri.ToString();
Aspire.Hosting.DevTunnels (4)
DevTunnelResourceBuilderExtensions.cs (4)
616tunnelUrl.Url = new UriBuilder(tunnelUrl.Url).Uri.ToString().TrimEnd('/'); 643Url = new UriBuilder(portUri) { Host = $"{hostPrefix}-inspect{hostSuffix}" }.Uri.ToString(), 716? new UriBuilder(portResource.TunnelEndpoint.Url).Uri.ToString().TrimEnd('/') 724portLogger.LogInformation("Forwarding from {PortUrl} to {TargetUrl} ({TargetResourceName}/{TargetEndpointName})", tunnelPortStatus.PortUri.ToString().TrimEnd('/'), portResource.TargetEndpoint.Url, portResource.TargetEndpoint.Resource.Name, portResource.TargetEndpoint.EndpointName);
Aspire.Hosting.Foundry (2)
FoundryResource.cs (2)
48ReferenceExpression.Create($"{EmulatorServiceUri.ToString()}") : 57? ReferenceExpression.Create($"Endpoint={EmulatorServiceUri?.ToString()};Key={ApiKey}")
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
115["endpoint"] = s_statusPageUri.ToString()
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresMcpBuilderTests.cs (1)
67Assert.Equal("http://db-mcp.dev.internal:8000/sse", resolvedUri!.ToString());
Aspire.Hosting.Tests (20)
ApplicationModel\McpServerEndpointAnnotationTests.cs (7)
81Assert.Equal("http://localhost:8080/mcp", result.ToString()); 96Assert.Equal("http://localhost:8080/sse", result.ToString()); 112Assert.Equal("http://localhost:8080/", result.ToString()); 128Assert.Equal("http://localhost:8080/", result.ToString()); 143Assert.Equal("http://localhost:8080/custom/path", result.ToString()); 158Assert.Equal("http://localhost:8080/mcp", result.ToString()); 190Assert.Equal("https://localhost:8443/mcp", result.ToString());
DistributedApplicationTests.cs (2)
1582Assert.Contains(httpEndPoint.ToString().Trim('/'), urls); 1586Assert.DoesNotContain(httpsEndpoint.ToString().Trim('/'), urls);
ExternalServiceTests.cs (6)
23Assert.Equal("https://nuget.org/", externalService.Resource.Uri?.ToString()); 36Assert.Equal("https://nuget.org/", externalService.Resource.Uri?.ToString()); 104Assert.Equal(validUrl, externalService.Resource.Uri?.ToString()); 275Assert.Equal("https://nuget.org/", uri!.ToString()); 290Assert.Equal("https://gateway/orders-service/", validPathUri!.ToString()); 489Assert.Equal(validUrl, externalService.Resource.Uri?.ToString());
WithMcpServerTests.cs (5)
62Assert.Equal("https://localhost:8443/mcp", resolvedUri!.ToString()); 87Assert.Equal("http://localhost:8080/mcp", resolvedUri!.ToString()); 112Assert.Equal("http://localhost:8080/mcp", resolvedUri!.ToString()); 137Assert.Equal("http://localhost:8080/sse", resolvedUri!.ToString()); 163Assert.Equal("http://localhost:8080/", resolvedUri!.ToString());
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpCluster.cs (1)
97return externalService.Uri.ToString();
Aspire.Microsoft.Azure.Cosmos.Tests (15)
AspireMicrosoftAzureCosmosExtensionsTests.cs (12)
33Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 62Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 83Assert.Equal(expectedEndpoint, database.Client.Endpoint.ToString()); 107Assert.Equal(expectedEndpoint, container.Database.Client.Endpoint.ToString()); 129Assert.Equal(expectedEndpoint, database.Client.Endpoint.ToString()); 154Assert.Equal(expectedEndpoint, container.Database.Client.Endpoint.ToString()); 240Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 292Assert.Equal(expectedEndpoint, database.Client.Endpoint.ToString()); 320Assert.Equal(expectedEndpoint, container.Database.Client.Endpoint.ToString()); 348Assert.Equal(expectedEndpoint, database.Client.Endpoint.ToString()); 377Assert.Equal(expectedEndpoint, container.Database.Client.Endpoint.ToString()); 517Assert.Equal("https://localhost:8081/", container.Database.Client.Endpoint.ToString());
ConformanceTests.cs (3)
100Assert.Equal("https://example1.documents.azure.com/", client1.Endpoint.ToString()); 101Assert.Equal("https://example2.documents.azure.com/", client2.Endpoint.ToString()); 102Assert.Equal("https://example3.documents.azure.com/", client3.Endpoint.ToString());
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (4)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (4)
236Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 257Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 280Assert.Equal(expectedEndpoint, client.Endpoint.ToString()); 302Assert.Equal(expectedEndpoint, client.Endpoint.ToString());
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
43output.Add(containerClient.Uri.ToString());
AzureVirtualNetworkEndToEnd.ApiService (1)
Program.cs (1)
72output.Add(containerClient.Uri.ToString());
DevTunnels.ApiService (1)
Program.cs (1)
19url = response.RequestMessage?.RequestUri?.ToString(),
dotnet (4)
Commands\Sdk\Check\ProductCollectionProvider.cs (1)
17return uri != null ? Task.Run(() => ProductCollection.GetAsync(uri.ToString())).Result :
Commands\Test\MTP\Terminal\AnsiTerminal.cs (1)
221linkPath = uri.ToString();
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
321return GetNupkgUrl(packageBaseAddress[0].ToString(), packageId, resolvedPackageVersion);
SdkVulnerability\SdkVulnerabilityChecker.cs (1)
89Url = cve.DescriptionLink?.ToString() ?? $"https://cve.mitre.org/cgi-bin/cvename.cgi?name={cve.Id}"
dotnet-svcutil-lib (52)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (1)
471baseUriString = baseUri.ToString();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (7)
596_ps.baseUriStr = _ps.baseUri.ToString(); 609string baseUriStr = baseUri.ToString(); 2888InitStreamInput(baseUri, baseUri.ToString(), stream, null, 0, encoding); 2900Debug.Assert(baseUri == null || (baseUri.ToString().Equals(baseUriStr))); 3145_ps.baseUriStr = _ps.baseUri.ToString(); 8073Throw(new XmlException(entityName == null ? ResXml.Xml_ErrorOpeningExternalDtd : ResXml.Xml_ErrorOpeningExternalEntity, new string[] { uri.ToString(), innerMessage }, e, 0, 0)); 8105InitTextReaderInput(uri.ToString(), uri, textReader);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
238throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
35throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (2)
37throw new XmlException(ResXml.Xml_SystemPathResolverCannotOpenUri, uri.ToString()); 48throw new XmlException(ResXml.Xml_SystemPathResolverCannotOpenUri, uri.ToString(), e, null);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (7)
271_documentBaseUri = baseUri.ToString(); 330_documentBaseUri = baseUriOb.ToString(); 521_externalDtdBaseUri = baseUri.ToString(); 3520return (tmp != null) ? tmp.ToString() : string.Empty; 3539_readerAdapter.Throw(new XmlException(res, arg, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString())); 3545_readerAdapter.Throw(new XmlException(res, args, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString())); 3551_readerAdapter.Throw(new XmlException(res, arg, (int)lineNo, (int)linePos, baseUri == null ? null : baseUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (2)
385reader = XmlReader.Create((Stream)obj, _readerSettings, ruri.ToString()); 395reader = XmlReader.Create((TextReader)obj, _readerSettings, ruri.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
233XmlTextReader reader = new XmlTextReader(ruri.ToString(), stream, NameTable);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
532reader = new XmlTextReader(ruri.ToString(), stm, _NameTable);
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
344reader = new XmlTextReader(ruri.ToString(), stm, NameTable);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (3)
294_sourceUriString = _sourceUri.ToString(); 359SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { schema.BaseUri.ToString(), e.Message }, e); 1872Reader = XmlReader.Create(stm, readerSettings, ruri.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
590reader = new XmlTextReader(ruri.ToString(), stm, NameTable);
FrameworkFork\Microsoft.Xml\Xml\XmlXapResolver.cs (1)
29throw new XmlException(ResXml.Xml_XapResolverCannotOpenUri, absoluteUri.ToString(), default(Exception), null);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
1804if (uri.ToString() == Globals.SerializationNamespace)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (2)
467FaultStringDecoder.GetFaultException(decoder.Fault, via.ToString(), contentType)); 507FaultStringDecoder.GetFaultException(decoder.Fault, via.ToString(), contentType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
94assertion.InnerText = settings.Url.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
364throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(FaultStringDecoder.GetFaultException(_decoder.Fault, _channel.RemoteAddress.Uri.ToString(), _messageEncoder.ContentType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (7)
434address.ToString(), MetadataExchangeClientMode.HttpGet.ToString()); 728throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("location", string.Format(SRServiceModel.SFxCannotGetMetadataFromLocation, location.ToString())); 840get { return _responseLocation.ToString(); } 903_section = MetadataRetriever.CreateMetadataSection(reader, request.RequestUri.ToString()); 943get { return _address.Uri.ToString(); } 1137((IClientChannel)metadataClient).RemoteAddress.Uri.ToString()))); 1143_section = MetadataRetriever.CreateMetadataSection(reader, ((IClientChannel)metadataClient).RemoteAddress.Uri.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
198_newBaseAddress = UpdateUri(listenUri).ToString(); 243text = newUri.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (1)
1212endpointIdentifier = endpoint.Address.Uri.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
578(this.Listener != null) ? this.Listener.Uri.ToString() : string.Empty, Guid.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
1001return _uri.ToString();
Metadata\MetadataDocumentLoader.cs (1)
723var orderedFileNames = this.metadataSourceFiles.Select(u => u.ToString().ToUpperInvariant()).OrderBy(u => u);
Metadata\MetadataFileNameManager.cs (2)
212Uri.TryCreate(filePath1, UriKind.Relative, out uri1) && Uri.TryCreate(filePath2, UriKind.Relative, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.ToString(), uri2.ToString()) == 0;
Shared\Utilities\PathHelper.cs (1)
77return fileUri.IsAbsoluteUri && fileUri.IsFile || IsFile(fileUri.ToString(), basePath, out fileUri);
Tool.cs (2)
205new ServiceDescriptor(options.Inputs[0].ToString(), credsProvider, credsProvider, credsProvider) : 206new ServiceDescriptor(options.Inputs.Select(i => i.ToString()).ToList(), credsProvider, credsProvider, credsProvider);
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
566return new Uri(baseUri, $"{TestHostUtilitiesService}/{resource}").ToString();
Microsoft.Arcade.Common (2)
ArcadeHttpMessageHandler.cs (2)
21if(request.RequestUri.ToString().StartsWith(requestResponse.RequestMessage.RequestUri.ToString()) &&
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
384 launchBrowser.StartInfo.FileName = uri.ToString();
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
384 launchBrowser.StartInfo.FileName = uri.ToString();
Microsoft.AspNetCore.Connections.Abstractions (1)
UriEndPoint.cs (1)
29public override string ToString() => Uri.ToString();
Microsoft.Build.Tasks.Core (2)
ManifestUtil\SecurityUtil.cs (2)
733manifest.Sign(signer, timestampUrl.ToString(), disallowMansignTimestampFallback); 841timestampUrl.ToString());
Microsoft.CodeAnalysis (1)
CommandLine\SarifErrorLogger.cs (1)
161return s_fileRoot.MakeRelativeUri(new Uri(s_fileRoot, uri)).ToString();
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
748return element.WithStartTag(element.StartTag.AddAttributes(XmlTextAttribute(DocumentationCommentXmlNames.HrefAttributeName, linkAddress.ToString())));
Microsoft.DotNet.HotReload.Watch (2)
Browser\BrowserLauncher.cs (1)
58Uri.TryCreate(outputLaunchUrl, UriKind.Absolute, out var launchUri) ? new Uri(launchUri, profileLaunchUrl).ToString() :
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
86return builder.Uri.ToString().TrimEnd('/');
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataContent.cs (1)
69: this(Throw.IfNull(uri).ToString(), mediaType)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\ImageGenerationToolResultContentTests.cs (1)
91Assert.Equal("http://example.com/image.jpg", ((UriContent)deserializedSut.Outputs[1]).Uri.ToString());
Image\ImageGenerationResponseTests.cs (2)
49Assert.Equal($"https://example.com/image-{i}.png", uc.Uri.ToString()); 113Assert.Equal("https://example.com/image1.png", uriContent.Uri.ToString());
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimMultiPartHttpHandler.cs (1)
55Assert.Contains(ExpectedRequestUriContains!, request.RequestUri!.ToString());
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIConversionTests.cs (2)
824Assert.Equal("http://example.com/image.png", Assert.IsType<UriContent>(message.Contents[1], exactMatch: false).Uri.ToString()); 855Assert.Equal("http://example.com/image.png", Assert.IsType<UriContent>(message.Contents[1], exactMatch: false).Uri.ToString());
OpenAIResponseClientIntegrationTests.cs (1)
533var imageBytes = Convert.FromBase64String(imageUri.ToString().Split(',')[1]);
OpenAIResponseClientTests.cs (1)
5598Assert.Equal("https://example.com/image.png", imageContent.Uri.ToString());
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
60return uri.IsAbsoluteUri ? uri.AbsoluteUri : uri.ToString();
Microsoft.Extensions.Http.Resilience.Tests (2)
Hedging\HedgingTests.cs (1)
350Requests.Add(request.RequestUri!.ToString());
Routing\RoutingStrategyTest.cs (1)
162yield return route.ToString();
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
UriEndPoint.cs (1)
38public override string? ToString() => Uri.ToString();
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
ServiceDiscoveryDestinationResolver.cs (2)
82var resolvedAddress = uriBuilder.Uri.ToString(); 88healthAddress = healthUriBuilder.Uri.ToString();
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
130Assert.Equal(props.P5.ToString(), state!.GetValue("p.P5"));
Microsoft.Maui.Controls (4)
AppLinkEntry.cs (1)
85 return AppLinkUri.ToString();
ImageSourceConverter.cs (1)
39 return uis.Uri.ToString();
ResourceDictionary.cs (1)
460 return uri.ToString();
UriTypeConverter.cs (1)
30 return uri.ToString();
Microsoft.ML.Parquet (1)
PartitionedPathUtils.cs (1)
42relativePath = Uri.UnescapeDataString(baseUri.MakeRelativeUri(uri).ToString());
Microsoft.NET.Build.Containers (7)
AmazonECRMessageHandler.cs (1)
29throw new ContainerHttpException(message, request.RequestUri?.ToString(), e.StatusCode);
FallbackToHttpMessageHandler.cs (1)
52string uri = request.RequestUri.ToString();
Registry\DefaultBlobOperations.cs (1)
78throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\DefaultManifestOperations.cs (2)
51throw new ContainerHttpException(Resource.FormatString(nameof(Strings.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode); 58throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\HttpExtensions.cs (1)
72s.AppendLine($"Request URI: {response.RequestMessage?.Method} {response.RequestMessage?.RequestUri?.ToString()}");
Registry\Registry.cs (1)
116baseUri = new UriBuilder(baseUri.ToString()) { Host = DockerHubRegistry1 }.Uri;
Microsoft.NET.Sdk.Publish.Tasks (3)
Tasks\OneDeploy\OneDeploy.cs (2)
110string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, fileToPublishPath, oneDeployPublishUri.ToString())); 235return Uri.TryCreate(publishUri.ToString(), UriKind.Absolute, out var _);
Tasks\OneDeploy\OneDeploy.WebJob.cs (1)
60return Uri.TryCreate(publishUri.ToString(), UriKind.Absolute, out _);
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
GetSourceLinkUrl.cs (1)
35UriUtilities.Combine(contentUri.ToString(), projectPath), $"_apis/git/repositories/{repositoryName}/items") +
Microsoft.SourceLink.AzureRepos.Git (1)
GetSourceLinkUrl.cs (1)
46UriUtilities.Combine(contentUri.ToString(), projectPath), $"_apis/git/repositories/{repositoryName}/items") +
Microsoft.SourceLink.Bitbucket.Git (2)
GetSourceLinkUrl.cs (2)
60return UriUtilities.Combine(contentUri.ToString(), UriUtilities.Combine(relativeBaseUrl, relativeUrl)); 114return UriUtilities.Combine(apiUriBuilder.Uri.ToString(), relativeApiUrl);
Microsoft.SourceLink.Gitea (1)
GetSourceLinkUrl.cs (1)
22=> UriUtilities.Combine(UriUtilities.Combine(contentUri.ToString(), relativeUrl), "raw/commit/" + revisionId + "/*");
Microsoft.SourceLink.Gitee (1)
GetSourceLinkUrl.cs (1)
25=> UriUtilities.Combine(UriUtilities.Combine(contentUri.ToString(), relativeUrl), "raw/"+ revisionId + "/*");
Microsoft.SourceLink.GitHub (1)
GetSourceLinkUrl.cs (1)
25=> UriUtilities.Combine(UriUtilities.Combine(contentUri.ToString(), relativeUrl), revisionId + "/*");
Microsoft.SourceLink.GitLab (1)
GetSourceLinkUrl.cs (1)
31return UriUtilities.Combine(UriUtilities.Combine(contentUri.ToString(), relativeUrl), path);
Microsoft.SourceLink.GitWeb (1)
GetSourceLinkUrl.cs (1)
28var trimmedContentUrl = contentUri.ToString().TrimEnd('/', '\\');
Microsoft.TemplateEngine.Cli (2)
TemplatePackageCoordinator.cs (2)
522var licenseUrl = packageMetadata.LicenseUrl?.ToString(); 530var projectUrl = packageMetadata.ProjectUrl?.ToString();
Microsoft.TestPlatform.CrossPlatEngine (5)
Client\TestLoggerManager.cs (3)
161!StringUtils.IsNullOrWhiteSpace(logger.Uri?.ToString())) 179: !StringUtils.IsNullOrWhiteSpace(logger.Uri?.ToString()) 180? logger.Uri.ToString()
DataCollection\DataCollectionLauncherFactory.cs (1)
32|| string.Equals(dataCollectorSettings.Uri?.ToString(), @"datacollector://Microsoft/EventLog/2.0", StringComparison.OrdinalIgnoreCase))
Discovery\DiscovererEnumerator.cs (1)
294if (Constants.DefaultAdapters.Contains(discoverer.Metadata.DefaultExecutorUri.ToString(), StringComparer.OrdinalIgnoreCase))
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
133var uriDataAttachment = attachmentSet.Attachments.LastOrDefault((attachment) => attachment.Uri.ToString().EndsWith(".xml"));
Microsoft.TestPlatform.Utilities (2)
InferRunSettingsHelper.cs (2)
303(CodeCoverageCollectorUri.Equals(collectorRef.Uri.ToString(), StringComparison.OrdinalIgnoreCase) || 304FakesCollectorUri.Equals(collectorRef.Uri.ToString(), StringComparison.OrdinalIgnoreCase)))
Microsoft.VisualStudio.TestPlatform.Common (3)
DataCollection\DataCollectionManager.cs (1)
492var dataCollectorUri = dataCollectorSettings.Uri?.ToString();
DataCollection\DataCollectorConfig.cs (2)
53return TypeUri?.ToString(); 62return new object?[] { TypeUri?.ToString(), FriendlyName, AttachmentsProcessorType != null };
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Converter.cs (2)
58var testElement = CreateTestElement(testId, testName, rockSteadyTestCase.FullyQualifiedName, rockSteadyTestCase.ExecutorUri.ToString(), rockSteadyTestCase.Source, testType); 515string sourceFile = uriDataAttachment.Uri.IsAbsoluteUri ? uriDataAttachment.Uri.LocalPath : uriDataAttachment.Uri.ToString();
Microsoft.VisualStudio.TestPlatform.ObjectModel (8)
DataCollector\DataCollectorSettings.cs (2)
81AppendAttribute(doc, root, "uri", Uri?.ToString()); 105AppendAttribute(doc, root, "uri", Uri.ToString());
Logger\LoggerRunSettings.cs (4)
210if (logger.Uri?.ToString() != null && 211loggerSettings.Uri?.ToString() != null && 212logger.Uri.ToString().Equals(loggerSettings.Uri.ToString(), StringComparison.OrdinalIgnoreCase))
Logger\LoggerSettings.cs (2)
97AppendAttribute(doc, root, Constants.LoggerUriName, Uri?.ToString()); 184StringUtils.IsNullOrWhiteSpace(settings.Uri?.ToString()) &&
NuGet.CommandLine.XPlat (3)
Commands\PackageSearch\JsonFormat\SearchResultPackagesConverter.cs (1)
73WriteStringIfNotNullOrWhiteSpace(writer, JsonProperties.ProjectUrl, value.ProjectUrl?.ToString());
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (1)
112projectUri = result.ProjectUrl.ToString();
Utility\ProjectPackagesPrintUtility.cs (1)
186: vulnerabilityMetadata.Select(v => new FormattedCell(v.AdvisoryUrl?.ToString() ?? string.Empty, foregroundColor: null));
NuGet.Packaging (3)
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (1)
58var licenseUrlToWrite = metadata.LicenseUrl?.ToString();
Signing\Signatures\RepositoryCountersignature.cs (1)
100issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetV3ServiceIndexUrl, V3ServiceIndexUrl.ToString())));
Signing\Signatures\RepositoryPrimarySignature.cs (1)
39issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.NuGetV3ServiceIndexUrl, V3ServiceIndexUrl.ToString())));
NuGet.Protocol (2)
HttpSource\HttpRetryHandler.cs (1)
173var timeoutStream = new DownloadTimeoutStream(requestUri.ToString(), networkStream, request.DownloadTimeout);
LegacyFeed\ODataServiceDocumentUtils.cs (1)
38return Task.FromResult(response.RequestMessage.RequestUri.ToString());
PresentationCore (8)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
124string original = Uri.ToString();
MS\Internal\WpfWebRequestHelper.cs (3)
77throw new WebException(requestUri.ToString(), WebExceptionStatus.RequestCanceled); 190throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 206throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
System\Windows\Media\FontEmbeddingManager.cs (2)
102return String.Equals(x.ToString(), y.ToString(), StringComparison.OrdinalIgnoreCase);
System\Windows\Media\MediaTimeline.cs (1)
248return Source.ToString();
System\Windows\Navigation\BaseUriHelper.cs (1)
231string original = uri.ToString(); // only relative Uri here (enforced by Package)
PresentationFramework (38)
MS\Internal\AppModel\AppSecurityManager.cs (1)
134sei.lpFile = uri.ToString(); // It's safe to use Uri.ToString since there's an inheritance demand on it that prevents spoofing by subclasses.
MS\Internal\AppModel\ContentFilePart.cs (2)
75throw new IOException(SR.Format(SR.UnableToLocateResource, Uri.ToString())); 83return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(), UriKind.RelativeOrAbsolute)).ToString();
System\Windows\Annotations\Storage\XmlStreamStore.cs (4)
825supportedNamespaces.Add(name.ToString()); 834supportedNamespaces.Add(knownNamespace.ToString()); 853reader.DeclareNamespaceCompatibility(item.Key.ToString(), name.ToString());
System\Windows\Controls\Frame.cs (1)
705return Source.ToString();
System\Windows\Data\XmlDataProvider.cs (1)
564TraceData.Identify(request.RequestUri.ToString())));
System\Windows\Documents\DocumentReference.cs (3)
146DocumentsTrace.FixedDocumentSequence.IDF.Trace($"====Replace old doc {(oldSource == null ? "null" : oldSource.ToString())} with new {(newSource == null ? "null" : newSource.ToString())}"); 200Source {(this.Source == null ? "null" : this.Source.ToString())}
System\Windows\Documents\FixedPage.cs (4)
639String inputUriString = inputUri.ToString(); 660absoluteUri = new Uri(absoluteUri.ToString() + fragment, UriKind.RelativeOrAbsolute); 1090String startPartUriString = startPartUri.ToString(); 1102fixedPage.StartPartUriString = startPartUri.ToString();
System\Windows\Documents\FixedTextBuilder.cs (4)
1467|| navUri != _currentNavUri || (navUri != null && navUri.ToString() != _currentNavUri.ToString()); 1720if (navUri != _currentNavUri || (navUri != null && navUri.ToString() != _currentNavUri.ToString()))
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1194if (_settings.BaseUri != null && !String.IsNullOrEmpty(_settings.BaseUri.ToString())) 1197_xamlNodesWriter.WriteValue(_settings.BaseUri.ToString());
System\Windows\Markup\XamlReader.cs (5)
329String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 472if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 871String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 946if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 1053if (readerSettings.BaseUri == null || String.IsNullOrEmpty(readerSettings.BaseUri.ToString()))
System\Windows\Navigation\JournalEntry.cs (3)
321return uri.ToString(); 330displayName = (new Uri(siteOfOrigin, relative)).ToString(); 349displayName = uri.ToString();
System\Windows\Navigation\NavigationService.cs (3)
2616throw new Exception(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 2849throw new Exception(SR.Format(SR.GetStreamFailed, requestUri.ToString())); 2951destinationUri.ToString());
System\Windows\ResourceDictionary.cs (2)
136throw new ArgumentException(SR.Format(SR.ResourceDictionaryLoadFromFailure, value == null ? "''" : value.ToString())); 223throw new InvalidOperationException(SR.Format(SR.ResourceDictionaryLoadFromFailure, _source.ToString()));
System\Windows\ThemeManager.cs (3)
375string sourceString = source.ToString(); 423if (rd.MergedDictionaries[i].Source.ToString().StartsWith(FluentThemeResourceDictionaryUri, 443if (rd.MergedDictionaries[i].Source.ToString().StartsWith(FluentThemeResourceDictionaryUri,
PresentationUI (5)
MS\Internal\Documents\Application\CriticalFileToken.cs (2)
67result = a._location.ToString().Equals( 68b._location.ToString(),
MS\Internal\Documents\Application\DocumentStream.cs (1)
664(_xpsFileToken != null) ? _xpsFileToken.Location.ToString() : string.Empty,
MS\Internal\Documents\RMPermissions.cs (1)
61requestFromLabel.Text = referralUri.ToString();
TenFeetInstallationProgress.xaml.cs (1)
76DownloadFrom.Text = (value as Uri).ToString();
ReachFramework (4)
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
783IOpcPartUri partUri = _xpsOMFactory.CreatePartUri(uri.ToString());
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (3)
65return String.Equals(a.ToString(), b.ToString(), StringComparison.Ordinal); 84string uriAsString = uri.ToString();
System.Configuration.ConfigurationManager (1)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
25return GetStrongHashSuitableForObjectName(uri.ToString());
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (2)
598byteArray = encoder.GetBytes(uri.ToString()); 1303byteArray = encoder.GetBytes(((Uri)modAttribute[j]).ToString());
System.IO.IsolatedStorage (1)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
25return GetStrongHashSuitableForObjectName(uri.ToString());
System.Net.Http (5)
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
60return uri.IsAbsoluteUri ? uri.AbsoluteUri : uri.ToString();
System\Net\Http\NetEventSource.Http.cs (3)
25Log.UriBaseAddress(baseAddress?.ToString(), IdOf(obj)); 59Log.AuthenticationInfo(uri?.ToString(), message); 70Log.AuthenticationError(uri?.ToString(), message);
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
236ReadOnlySpan<char> uriSpan = uri.ToString();
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
715result += SeparatorLiteral + CookieFields.CommentUrlAttributeName + EqualsLiteral + QuotesLiteral + m_commentUri.ToString() + QuotesLiteral;
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
155get { return _baseAddress != null ? _baseAddress.ToString() : string.Empty; }
System.Net.WebSockets.Client (1)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (1)
307_innerWebSocket = BrowserInterop.UnsafeCreate(uri.ToString(), subProtocols, responseStatusHandle.Value);
System.Private.Uri (2)
System\Uri.cs (2)
1657ToString(); 4699return toUri.ToString();
System.Private.Xml (39)
System\Xml\Core\XmlReaderSettings.cs (1)
347baseUriString ??= baseUri?.ToString() ?? string.Empty;
System\Xml\Core\XmlTextReaderImpl.cs (7)
576_ps.baseUriStr = _ps.baseUri.ToString(); 589string baseUriStr = baseUri.ToString(); 2832InitStreamInput(baseUri, baseUri.ToString(), stream, null, 0, encoding); 2844Debug.Assert(baseUri == null || (baseUri.ToString().Equals(baseUriStr))); 3063_ps.baseUriStr = _ps.baseUri.ToString(); 7947Throw(new XmlException(entityName == null ? SR.Xml_ErrorOpeningExternalDtd : SR.Xml_ErrorOpeningExternalEntity, new string[] { uri.ToString(), innerMessage }, e, 0, 0)); 7979InitTextReaderInput(uri.ToString(), uri, textReader);
System\Xml\Core\XmlTextReaderImplAsync.cs (4)
863return InitStreamInputAsync(baseUri, baseUri.ToString(), stream, null, 0, encoding); 870Debug.Assert(baseUri == null || (baseUri.ToString().Equals(baseUriStr))); 5139Throw(new XmlException(entityName == null ? SR.Xml_ErrorOpeningExternalDtd : SR.Xml_ErrorOpeningExternalEntity, new string[] { uri.ToString(), innerMessage }, e, 0, 0)); 5173await InitTextReaderInputAsync(uri.ToString(), uri, textReader).ConfigureAwait(false);
System\Xml\Schema\DtdParser.cs (7)
262_documentBaseUri = baseUri.ToString(); 318_documentBaseUri = baseUriOb.ToString(); 509_externalDtdBaseUri = baseUri.ToString(); 3441return (tmp != null) ? tmp.ToString() : string.Empty; 3461_readerAdapter.Throw(new XmlException(res, arg, (int)LineNo, (int)LinePos, baseUri?.ToString())); 3469_readerAdapter.Throw(new XmlException(res, args, (int)LineNo, (int)LinePos, baseUri?.ToString())); 3476_readerAdapter.Throw(new XmlException(res, arg, (int)lineNo, (int)linePos, baseUri?.ToString()));
System\Xml\Schema\DtdParserAsync.cs (1)
153_externalDtdBaseUri = baseUri.ToString();
System\Xml\Schema\Preprocessor.cs (2)
364reader = XmlReader.Create((Stream)obj, _readerSettings, ruri.ToString()); 374reader = XmlReader.Create((TextReader)obj, _readerSettings, ruri.ToString());
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
225XmlTextReader reader = new XmlTextReader(ruri.ToString(), stream, NameTable);
System\Xml\Schema\XdrBuilder.cs (1)
525reader = new XmlTextReader(ruri.ToString(), stm, _NameTable);
System\Xml\Schema\XdrValidator.cs (1)
346reader = new XmlTextReader(ruri.ToString(), stm, NameTable);
System\Xml\Schema\XmlSchemaValidator.cs (3)
290_sourceUriString = _sourceUri.ToString(); 347SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { schema.BaseUri!.ToString(), e.Message }, e); 1856Reader = XmlReader.Create(stm, readerSettings, ruri.ToString());
System\Xml\Schema\XsdValidator.cs (1)
579reader = new XmlTextReader(ruri.ToString(), stm, NameTable);
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
172XmlReader reader = _readerSettings.CreateReader(stream, uriResolved?.ToString());
System\Xml\Xsl\Xslt\XsltLoader.cs (4)
207return _readerSettings.CreateReader(stream, uri.ToString()); 222throw new XslLoadException(SR.Xslt_CannotLoadStylesheet, uri.ToString(), input == null ? "null" : input.GetType().ToString()); 490if (_documentUriInUse.Contains(uri.ToString())) 518if (_documentUriInUse.Contains(uri.ToString()))
System\Xml\Xsl\XsltOld\Compiler.cs (1)
582string resolved = absoluteUri.ToString();
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
241string resolved = uri.ToString(); 521string resolved = uri.ToString();
System\Xml\Xsl\XsltOld\Processor.cs (2)
179XmlTextReaderImpl tr = new XmlTextReaderImpl(ruri.ToString(), (Stream)input); 192throw XsltException.Create(SR.Xslt_CantResolve, ruri.ToString());
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\FramingChannels.cs (1)
396FaultStringDecoder.GetFaultException(decoder.Fault, via.ToString(), contentType));
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(FaultStringDecoder.GetFaultException(_decoder.Fault, _channel.RemoteAddress.Uri.ToString(), _messageEncoder.ContentType));
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
151new StringTraceRecord("Uri", remoteUri.ToString()), this, null);
System.ServiceModel.Primitives (2)
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
559(Listener != null) ? Listener.Uri.ToString() : string.Empty, Guid.Empty);
System\ServiceModel\EndpointAddress.cs (1)
948return Uri.ToString();
System.ServiceModel.Syndication (4)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
1115WriteElement(writer, Atom10Constants.LogoTag, feed.ImageUrl.ToString());
System\ServiceModel\Syndication\FeedUtils.cs (1)
126return uri.ToString();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
900writer.WriteElementString(Rss20Constants.DocumentationTag, Feed.InternalDocumentation.Uri.ToString()); 938writer.WriteElementString(Rss20Constants.LinkTag, Feed.InternalTextInput.Link.GetAbsoluteUri().ToString());
System.Speech (17)
Internal\SrgsCompiler\BackEnd.cs (1)
716_basePath = uri.ToString();
Internal\SrgsCompiler\GrammarElement.cs (1)
127_backend.SetBasePath(value.ToString());
Internal\Synthesis\AudioBase.cs (1)
145throw new FormatException(SR.Get(SRID.NotValidAudioFile, audio._uri.ToString()));
Internal\Synthesis\TextWriterEngine.cs (1)
246_writer.WriteAttributeString("uri", uri.ToString());
Internal\Synthesis\VoiceSynthesis.cs (1)
524throw new InvalidOperationException(SR.Get(SRID.FileNotFound, uri.ToString()));
Recognition\RecognizerBase.cs (2)
1511pbstrRedirectUrl = redirectedUri.ToString(); 1596sapiGrammar.LoadCmdFromMemory2(dataPtr, SPLOADOPTIONS.SPLO_STATIC, null, baseUri?.ToString());
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
108writer.WriteAttributeString("xml:base", _xmlBase.ToString());
Recognition\SrgsGrammar\SrgsGrammarCompiler.cs (2)
27using (XmlTextReader reader = new(new Uri(inputPath, UriKind.RelativeOrAbsolute).ToString())) 72readers[iFile] = new XmlTextReader(new Uri(inputPaths[iFile], UriKind.RelativeOrAbsolute).ToString());
Recognition\SrgsGrammar\SrgsRuleRef.cs (4)
133writer.WriteAttributeString("uri", _uri.ToString()); 187string sUri = _uri.ToString(); 224sb.Append(_uri.ToString()); 253_uri = new Uri(uri.ToString() + "#" + rule, UriKind.RelativeOrAbsolute);
Synthesis\Prompt.cs (1)
71_text = promptFile.ToString();
Synthesis\PromptBuilder.cs (2)
687audioElement._attributes.Add(new AttributeItem("src", audioFile.ToString())); 701audioElement._attributes.Add(new AttributeItem("src", audioFile.ToString()));
System.Windows.Forms (6)
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
72public void Go(Uri url) => Go(url.ToString());
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (3)
310using BSTR bstrUrl = new(url.ToString()); 341Open(url.ToString(), target, windowOptions, replaceEntry); 359OpenNew(url.ToString(), windowOptions);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
588if (value is not null && value.ToString().Length == 0)
System\Windows\Forms\Help\Help.cs (1)
215string fileName = file.ToString();
System.Xaml (1)
System\Xaml\Parser\NodeStreamSorter.cs (1)
239EnqueueOneXmlDirectiveProperty(XamlLanguage.Base, _settings.BaseUri.ToString());