3 types derived from Uri
PresentationFramework (1)
System\Windows\ResourceDictionary.cs (1)
2587internal class ResourceDictionarySourceUriWrapper : Uri
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
605internal sealed class ValidatedPartUri : Uri, IComparable<ValidatedPartUri>, IEquatable<ValidatedPartUri>
System.Xaml.Tests (1)
System\Windows\Markup\ValueSerializerTests.cs (1)
386public class CustomUri : Uri
1333 instantiations of Uri
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureAIOpenAIExtensionsTests.cs (1)
87var uri = new Uri("https://aspireopenaitests.openai.azure.com/");
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
125TableServiceClient tableClient = new(new Uri(ServiceUri), new DefaultAzureCredential(), clientOptions);
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
95: new Uri(settings.FullyQualifiedNamespace).Host;
Aspire.Azure.Messaging.EventHubs.Tests (2)
AspireEventHubsExtensionsTests.cs (2)
62var blobClient = new BlobServiceClient(new Uri(BlobsConnectionString), new DefaultAzureCredential()); 617var blobClient = new BlobServiceClient(new Uri(BlobsConnectionString), new BlobClientOptions() { Transport = mockTransport });
Aspire.Azure.Messaging.WebPubSub (1)
AzureMessagingWebPubSubSettings.cs (1)
82Endpoint = new Uri(endpoint.ToString()!);
Aspire.Azure.Search.Documents.Tests (5)
AspireAzureSearchExtensionsTests.cs (5)
42Assert.Equal(new Uri(SearchEndpoint), client.Endpoint); 50var searchEndpoint = new Uri("https://aspireazuresearchtests.search.windows.net/"); 69Assert.Equal(new Uri(SearchEndpoint), client.Endpoint); 98Assert.Equal(new Uri("https://aspireazuresearchtests2.search.windows.net/"), client2.Endpoint); 99Assert.Equal(new Uri("https://aspireazuresearchtests3.search.windows.net/"), client3.Endpoint);
Aspire.Azure.Security.KeyVault.Tests (5)
AspireKeyVaultExtensionsTests.cs (4)
22var vaultUri = new Uri(ConformanceTests.VaultUri); 73Assert.Equal(new Uri(ConformanceTests.VaultUri), client.VaultUri); 201Assert.Equal(new Uri("https://aspiretests2.vault.azure.net/"), client2.VaultUri); 202Assert.Equal(new Uri("https://aspiretests3.vault.azure.net/"), client3.VaultUri);
ConformanceTests.cs (1)
117SecretClient secretClient = new(new Uri(VaultUri), new DefaultAzureCredential(), clientOptions);
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
126BlobServiceClient tableClient = new(new Uri(ServiceUri), new DefaultAzureCredential(), clientOptions);
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
128QueueServiceClient tableClient = new(new Uri(ServiceUri), new DefaultAzureCredential(), clientOptions);
Aspire.Dashboard (6)
Model\DebugSessionHelpers.cs (1)
56debugSessionUri = new Uri($"{scheme}://localhost:{debugSession.Port}");
Model\TargetLocationInterceptor.cs (3)
16var uri = new Uri(originalTargetLocation, UriKind.RelativeOrAbsolute); 22var targetBaseUri = new Uri(uri.GetLeftPart(UriPartial.Authority)); 23if (targetBaseUri != new Uri(appBaseUri))
src\Shared\IConfigurationExtensions.cs (2)
116return new Uri(uri, UriKind.Absolute); 152.Select(url => new Uri(url, UriKind.Absolute))
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
84loadRedirect = new Uri(a.Location);
Aspire.Dashboard.Tests (32)
Integration\FrontendBrowserTokenAuthTests.cs (10)
39using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 61using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 92using var client = new HttpClient { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") }; 116using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 141using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 180var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 187var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 194var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 206var uri = new Uri((string)GetValue(w.State, "DashboardLoginUrl")!, UriKind.Absolute); 236var uri = new Uri((string)GetValue(loginLinkLog.State, "DashboardLoginUrl")!, UriKind.Absolute);
Integration\FrontendOpenIdConnectAuthTests.cs (2)
36using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 81using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") };
Integration\IntegrationTestHelpers.cs (1)
133return new HttpClient(handler) { BaseAddress = new Uri(address) };
Integration\OtlpHttpServiceTests.cs (5)
227using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 255using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 280using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 309using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 338using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") };
Integration\Playwright\BrowserTokenAuthenticationTests.cs (2)
40var uri = new Uri(response!.Url); 66var uri = new Uri(response!.Url);
Integration\ResponseCompressionTests.cs (2)
22using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 44using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\StartupTests.cs (9)
330BaseAddress = new Uri($"https://{app.FrontendSingleEndPointAccessor().EndPoint}") 431BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") 605var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 612var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 619var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 685var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 694var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 701var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 726using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
ResourceOutgoingPeerResolverTests.cs (1)
21urls: serviceAddress is null || servicePort is null ? [] : [new UrlViewModel(name, new($"http://{serviceAddress}:{servicePort}"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)]);
Aspire.Hosting (8)
Dcp\DcpKubernetesClient.cs (2)
99RequestUri = new Uri(this.BaseUri, ExecutionDocumentPath) 125RequestUri = new Uri(this.BaseUri, ExecutionDocumentPath)
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
19return RewriteUrl(new Uri(url));
ProjectResourceBuilderExtensions.cs (1)
485url.Url = (new Uri(baseUri, launchUri)).ToString();
ResourceBuilderExtensions.cs (2)
1278var baseUri = new Uri(endpoint.Url, UriKind.Absolute); 1279uri = new Uri(baseUri, path);
src\Shared\IConfigurationExtensions.cs (2)
116return new Uri(uri, UriKind.Absolute); 152.Select(url => new Uri(url, UriKind.Absolute))
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
67elasticsearchClient = new ElasticsearchClient(new Uri(connectionString));
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
129? connectionString!.Replace(new Uri(connectionString).UserInfo, null)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
68Uri = new Uri(connectionString)
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
42BaseAddress = new Uri(url)
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
31client.BaseAddress = new(baseUri); 72return new(GetEndpointUriStringCore(app, resourceName, endpointName));
Aspire.Hosting.Tests (4)
Utils\PasswordGeneratorTests.cs (1)
111Exception? exception = Record.Exception(() => new Uri($"https://guest:{password}@localhost:12345"));
WithReferenceTests.cs (3)
370Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("petstore.swagger.io", UriKind.Relative))); 378Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("https://petstore.swagger.io/v2"))); 387.WithReference("petstore", new Uri("https://petstore.swagger.io/"));
Aspire.Milvus.Client.Tests (2)
AspireMilvusExtensionTests.cs (2)
65builder.AddKeyedMilvusClient(DefaultKeyName, settings => { settings.Endpoint = new Uri("http://localhost:19530"); settings.Key = DefaultApiKey; }); 69builder.AddMilvusClient(DefaultKeyName, settings => { settings.Endpoint = new Uri("http://localhost:19530"); settings.Key = DefaultApiKey; });
Aspire.OpenAI.Tests (1)
AspireOpenAIExtensionsTests.cs (1)
50var uri = new Uri("https://api.openai.com/");
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
105factory.Uri = new(connectionString);
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQExtensionsTests.cs (1)
197var uri = new Uri(expectedUri);
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQExtensionsTests.cs (1)
197var uri = new Uri(expectedUri);
Aspire.Seq (2)
AspireSeqExtensions.cs (2)
57settings.Logs.Endpoint = new Uri($"{settings.ServerUrl}/ingest/otlp/v1/logs"); 58settings.Traces.Endpoint = new Uri($"{settings.ServerUrl}/ingest/otlp/v1/traces");
Aspire.Seq.Tests (4)
SeqEndpointCanBeConfigured.cs (4)
40s.Logs.Endpoint = new Uri("http://localhost:1234/ingest/otlp/v1/logs"); 41s.Traces.Endpoint = new Uri("http://localhost:1234/ingest/otlp/v1/traces"); 44Assert.Equal(settings.Logs.Endpoint, new Uri("http://localhost:9876/ingest/otlp/v1/logs")); 45Assert.Equal(settings.Traces.Endpoint, new Uri("http://localhost:9876/ingest/otlp/v1/traces"));
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
45target = new Uri(formaction, UriKind.Relative);
AutobahnTestApp (1)
Program.cs (1)
54var uri = new Uri(urls);
BasicTestApp (3)
AuthTest\ServerAuthenticationStateProvider.cs (1)
24var uri = new Uri(_httpClient.BaseAddress, "/subdir/api/User");
Program.cs (2)
34builder.Services.AddSingleton(new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); 67uri = new Uri(host.Services.GetService<NavigationManager>().Uri);
BasicWebSite (1)
StartupWithoutEndpointRouting.cs (1)
67client.BaseAddress = new Uri($"{httpContext.Request.Scheme}://{httpContext.Request.Host}");
Binding.Custom.IntegrationTests (1)
CustomBindingTests.4.1.0.cs (1)
35factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(new Uri(Endpoints.Tcp_CustomBinding_SslStreamSecurity_Address), endpointIdentity));
Binding.UDS.IntegrationTests (4)
ServiceHelper.cs (1)
26options.Listen(new Uri("net.uds://" + linuxSocketFilepath));
UDSBindingTests.cs (3)
78var uri = new Uri("net.uds://" + UDS.GetUDSFilePath()); 116new System.ServiceModel.EndpointAddress(new Uri(uriBuilder.ToString()), identity)); 160new System.ServiceModel.EndpointAddress(new Uri("net.uds://" + UDS.GetUDSFilePath())));
Binding.WS.FederationHttp.IntegrationTests (6)
WSFederationHttpBindingTests.cs (6)
37issuerAddress = new EndpointAddress(new Uri(Endpoints.WSFederationAuthorityLocalSTS + endpointSuffix)); 39serviceEndpointAddress = new EndpointAddress(new Uri(tokenTargetAddress)); 97issuerAddress = new EndpointAddress(new Uri(Endpoints.WSFederationAuthorityLocalSTS + "wsHttp/wstrustFeb2005")); 99serviceEndpointAddress = new EndpointAddress(new Uri(tokenTargetAddress)); 148issuerAddress = new EndpointAddress(new Uri(Endpoints.WSFederationAuthorityLocalSTS + "wsHttp/wstrust13")); 150serviceEndpointAddress = new EndpointAddress(new Uri(tokenTargetAddress));
BuildActionTelemetryTable (2)
Program.cs (2)
94var currentDirectory = new Uri(Environment.CurrentDirectory + "\\"); 106var relativePath = baseUri.MakeRelativeUri(new Uri(rootedPath));
BuildBoss (1)
SharedUtil.cs (1)
20internal static Uri MSBuildNamespaceUri { get; } = new Uri(MSBuildNamespaceUriRaw);
CdkSample.ApiService (1)
Program.cs (1)
31clients.AddConfigurationClient(new Uri(builder.Configuration.GetConnectionString("appConfig")!));
Client.ChannelLayer.IntegrationTests (3)
DuplexChannelWithSynchronizationContext.cs (3)
34EndpointAddress endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_Certificate_Duplex_Address)); 94EndpointAddress endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_Certificate_Duplex_Address)); 172EndpointAddress endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_Certificate_Duplex_Address));
Client.ClientBase.IntegrationTests (2)
ClientBaseTests.4.1.0.cs (2)
35cookieManager.CookieContainer.Add(new Uri(Endpoints.HttpBaseAddress_Basic_Text), new System.Net.Cookie(cookieName, cookieValue)); 62Uri uri = new Uri(Endpoints.HttpBaseAddress_Basic_Text);
Client.ExpectedExceptions.IntegrationTests (4)
ExpectedExceptionTests.4.1.0.cs (3)
92string hostName = new Uri(Endpoints.HttpBaseAddress_Basic_Text).Host; 388endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_RevokedServerCertResource_Address), new DnsEndpointIdentity(Endpoints.Tcp_RevokedServerCertResource_HostName)); 435endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_InvalidEkuServerCertResource_Address), new DnsEndpointIdentity(Endpoints.Tcp_InvalidEkuServerCertResource_HostName));
ExpectedExceptionTests.4.1.1.cs (1)
33endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_VerifyDNS_Address), new DnsEndpointIdentity(Endpoints.Tcp_VerifyDNS_HostName));
ClientSample (3)
HubSample.cs (2)
30var uri = baseUrl == null ? new Uri("net.tcp://127.0.0.1:9001") : new Uri(baseUrl);
RawSample.cs (1)
39Url = new Uri(baseUrl),
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
37Client.BaseAddress = new Uri("http://localhost");
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
382var uri = new Uri(url);
dotnet-svcutil-lib (47)
CommandProcessorOptions.cs (1)
740this.Inputs.Insert(idx, new Uri(file));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
1067_validator.BaseUri = (resolver == null) ? new Uri(_outerReader.BaseURI, UriKind.RelativeOrAbsolute) : resolver.ResolveUri(null, _outerReader.BaseURI);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (4)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative); 379_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 380_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (1)
89_schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
54_schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (3)
374Uri schemaUri = new Uri(schemaDocument.BaseURI, UriKind.RelativeOrAbsolute); 951if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) 963if (IsSchemaLoaded(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, out schema))
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (3)
46Uri uri = new Uri(relativeUri, UriKind.RelativeOrAbsolute); 49uri = new Uri(Path.GetFullPath(relativeUri)); 64return new Uri(baseUri, relativeUri);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
1788return new Uri(Globals.DataContractXsdBaseNamespaceUri, clrNs).AbsoluteUri;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
1000s_dataContractXsdBaseNamespaceUri = new Uri(DataContractXsdBaseNamespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
579return new Uri(str, UriKind.RelativeOrAbsolute);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
206claims.Add(Claim.CreateUriClaim(new Uri(value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Addressing.cs (2)
447return new Uri(toString); 746internal static readonly Uri ReplyRelationshipType = new Uri(Addressing10Strings.ReplyRelationship);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressingVersion.cs (2)
52_anonymousUri = new Uri(anonymous); 57_noneUri = new Uri(none);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1430_toHeader = ToHeader.Create(new Uri(toString.Value), _messageVersion.Addressing);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (1)
29: this(factory, settings, s_anonymousEndpointAddress, settings.MessageVersion.Addressing == AddressingVersion.None ? null : new Uri("http://www.w3.org/2005/08/addressing/anonymous"),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (1)
225_via = new Uri(value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1117_httpRequestMessage.Headers.Referrer = new Uri(value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
2045uri = new Uri(uriString);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElementImporter.cs (1)
38settings.Url = new Uri(privacyNoticeAssertion.InnerText);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
293fullUri = new Uri(baseAddress, relativeAddress);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (2)
587return new Uri(new Uri(baseUri), relativeUri);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
98Uri u = new Uri(uri); 234s_anonymousUri = new Uri(AddressingStrings.AnonymousUri); 244s_noneUri = new Uri(AddressingStrings.NoneUri);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2831private static readonly Uri s_selfIssuerUri = new Uri(WSIdentityNamespace + "/issuer/self");
Metadata\MetadaExchangeResolver.cs (6)
109metadataResolved = await ResolveMetadataAsync(new Uri(baseUri + mexUri), MetadataExchangeClientMode.MetadataExchange, false, cancellationToken).ConfigureAwait(false); 118metadataResolved = await ResolveMetadataAsync(new Uri(baseUri + wsdlQuery), MetadataExchangeClientMode.HttpGet, false, cancellationToken).ConfigureAwait(false); 134metadataResolved = await ResolveMetadataAsync(new Uri(baseUri + wsdlQuery), MetadataExchangeClientMode.HttpGet, false, cancellationToken).ConfigureAwait(false); 138metadataResolved = await ResolveMetadataAsync(new Uri(baseUri), MetadataExchangeClientMode.HttpGet, true, cancellationToken).ConfigureAwait(false); 146metadataResolved = await ResolveMetadataAsync(new Uri(baseUri), MetadataExchangeClientMode.MetadataExchange, false, cancellationToken).ConfigureAwait(false); 149metadataResolved = await ResolveMetadataAsync(new Uri(baseUri + mexUri), MetadataExchangeClientMode.MetadataExchange, false, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentLoader.cs (2)
107this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute))); 148this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute)));
Metadata\MetadataFileNameManager.cs (2)
225var baseUri = new Uri(baseUrl, UriKind.RelativeOrAbsolute); 230return (new Uri(baseUri, relUrl)).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Shared\Options\OptionValueParser.cs (1)
52value = CreateValue<Uri>(() => new Uri(stringValue, UriKind.RelativeOrAbsolute), option, stringValue);
Shared\Options\UpdateOptions.cs (1)
100this.Inputs[idx] = new Uri(relPath, UriKind.Relative);
dotnet-svcutil-lib.Tests (1)
GlobalToolTests.cs (1)
189options.Inputs.Add(new Uri(url));
HostedBlazorWebassemblyApp.Client (1)
Program.cs (1)
24builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
HtmlGenerationWebSite (2)
Controllers\HtmlGeneration_HomeController.cs (2)
18HomePage = new Uri("http://www.contoso.com") 82HomePage = new System.Uri("http://www.contoso.com"),
IIS.FunctionalTests (10)
Http3Tests.cs (2)
62var altsvc = $@"h3="":{new Uri(address).Port}"""; 86var altsvc = $@"h3="":{new Uri(address).Port}""";
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
66Assert.Equal(port, new Uri(responseText).Port); 82Assert.InRange(new Uri(responseText).Port, _minPort, _maxPort);
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (6)
69await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketLifetimeEvents"), default); 82await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketReadBeforeUpgrade"), default); 94await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketEcho"), default); 112await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketAllowCompression"), default); 130Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketNotUpgradable"); 150Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketUpgradeFails");
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.Tests (1)
Utilities\TestServer.cs (1)
51private Uri BaseUri => new Uri(_protocol + "://localhost:" + _currentPort);
IISExpress.FunctionalTests (9)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
66Assert.Equal(port, new Uri(responseText).Port); 82Assert.InRange(new Uri(responseText).Port, _minPort, _maxPort);
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (6)
69await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketLifetimeEvents"), default); 82await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketReadBeforeUpgrade"), default); 94await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketEcho"), default); 112await cws.ConnectAsync(new Uri(webSocketUri + "WebSocketAllowCompression"), default); 130Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketNotUpgradable"); 150Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketUpgradeFails");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
InMemory.FunctionalTests (10)
EventSourceTests.cs (1)
190RequestUri = new Uri("https://localhost/"),
Http2\Http2EndToEndTests.cs (1)
67RequestUri = new Uri("http://localhost/"),
KestrelMetricsTests.cs (5)
569RequestUri = new Uri("http://localhost/"), 648RequestUri = new Uri("http://localhost/"), 726RequestUri = new Uri("https://localhost/"), 807RequestUri = new Uri("http://localhost/"), 895RequestUri = new Uri("https://localhost/"),
RequestTests.cs (1)
245var requestTarget = new Uri(requestUrl, UriKind.Absolute);
TestTransport\InMemoryHttpClientSlim.cs (2)
30=> await GetStringAsync(new Uri(requestUri), validateCertificate).ConfigureAwait(false); 69=> await PostAsync(new Uri(requestUri), content, validateCertificate).ConfigureAwait(false);
Interop.FunctionalTests (4)
Http2WebSocketInteropTests.cs (2)
83await wsClient.ConnectAsync(new Uri(url), client, default); 147await wsClient.ConnectAsync(new Uri(url), client, default);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
31.Select(a => new Uri(a));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
27.Select(a => new Uri(a));
Keycloak.Web (1)
Program.cs (1)
26client.BaseAddress = new("https+http://apiservice");
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
72var queryStrings = QueryHelpers.ParseQuery(new Uri(base.BuildChallengeUrl(properties, redirectUri)).Query);
Microsoft.AspNetCore.Authentication.Test (5)
CookieTests.cs (3)
368}, SignInAsAlice, baseAddress: new Uri("http://example.com/base")); 390}, SignInAsAlice, baseAddress: new Uri("http://example.com/base")); 1162new Uri("http://example.com/base"));
FacebookTests.cs (1)
341new Uri(customUserInfoEndpoint).GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped))
TwitterTests.cs (1)
480new Uri(verifyCredentialsEndpoint).GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped))
Microsoft.AspNetCore.Components (2)
NavigationManager.cs (2)
88_baseUri = new Uri(value!, UriKind.Absolute); 258return new Uri(_baseUri!, relativeUri);
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Binding\FormDataMapperTests.cs (4)
228{ "http://www.example.com", new Uri("http://www.example.com") }, 229{ "http://www.example.com/path", new Uri("http://www.example.com/path") }, 230{ "http://www.example.com/path/", new Uri("http://www.example.com/path/") }, 231{ "/path", new Uri("/path", UriKind.Relative) },
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
374return new Uri(navigationManager.Uri, UriKind.Absolute).PathAndQuery;
Microsoft.AspNetCore.Components.WebAssembly (1)
HotReload\WebAssemblyHotReload.cs (1)
93BaseAddress = new Uri(WebAssemblyNavigationManager.Instance.BaseUri, UriKind.Absolute)
Microsoft.AspNetCore.Components.WebAssembly.Server (6)
TargetPickerUi.cs (5)
367var underlyingV8Endpoint = new Uri(tabToDebug.WebSocketDebuggerUrl); 368var proxyEndpoint = new Uri(_debugProxyUrl); 369var devToolsUrlAbsolute = new Uri(_browserHost + tabToDebug.DevtoolsFrontendUrl); 377var debuggerPort = new Uri(_browserHost).Port; 403var debuggerPort = new Uri(_browserHost).Port;
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
31browserUrl = new Uri(browserParam);
Microsoft.AspNetCore.Components.WebView (3)
StaticContentProvider.cs (1)
25var fileUri = new Uri(requestUri);
WebViewManager.cs (2)
67=> NavigateCore(new Uri(_appBaseUri, url)); 244=> uri.AbsoluteUri.EndsWith('/') ? uri : new Uri(uri.AbsoluteUri + '/');
Microsoft.AspNetCore.Components.WebView.Maui (2)
Extensions\UriExtensions.cs (1)
16 var uri = new Uri(uriString!);
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.Photino (3)
BlazorWindow.cs (2)
59var appBaseUri = new Uri(new Uri(PhotinoWebViewManager.AppBaseOrigin), _pathBase);
PhotinoWebViewManager.cs (1)
53if (_appBaseUri.IsBaseOf(new Uri(url))
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\TestWebViewManager.cs (2)
10private static readonly Uri AppBaseUri = new Uri("app://testhost/"); 33MessageReceived(new Uri(AppBaseUri, "/page"), IpcCommon.Serialize(messageType, args));
StaticContentProviderTests.cs (1)
24var scp = new StaticContentProvider(inMemoryFileProvider, new Uri(appBase), "fakehost.html");
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
59 internal static readonly Uri AppOriginUri = new(AppOrigin); 291 _webview.CoreWebView2.WebMessageReceived += (s, e) => MessageReceived(new Uri(e.Source), e.TryGetWebMessageAsString());
Microsoft.AspNetCore.Components.WebView.Wpf (3)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
59 internal static readonly Uri AppOriginUri = new(AppOrigin); 291 _webview.CoreWebView2.WebMessageReceived += (s, e) => MessageReceived(new Uri(e.Source), e.TryGetWebMessageAsString());
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyExtensions.cs (1)
32return new Uri(origin.Replace(_WildcardSubdomain, string.Empty), UriKind.Absolute);
Microsoft.AspNetCore.Cors.Test (24)
UriHelpersTests.cs (24)
36new object[] {new Uri("http://sub.domain"), new Uri("http://domain")}, 37new object[] {new Uri("https://sub.domain"), new Uri("https://domain")}, 38new object[] {new Uri("https://sub.domain:5678"), new Uri("https://domain:5678")}, 39new object[] {new Uri("http://sub.sub.domain"), new Uri("http://domain")}, 40new object[] {new Uri("http://sub.sub.domain"), new Uri("http://sub.domain")} 51new object[] {new Uri("http://subdomain"), new Uri("http://domain")}, 52new object[] {new Uri("https://sub.domain"), new Uri("http://domain")}, 53new object[] {new Uri("https://sub.domain:1234"), new Uri("https://domain:5678")}, 54new object[] {new Uri("http://domain.tld"), new Uri("http://domain")}, 55new object[] {new Uri("http://sub.domain.tld"), new Uri("http://domain")}, 56new object[] {new Uri("/relativeUri", UriKind.Relative), new Uri("http://domain")}, 57new object[] {new Uri("http://sub.domain"), new Uri("/relative", UriKind.Relative)}
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (1)
209var client = services.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
HeaderPropagationMessageHandlerTest.cs (1)
29BaseAddress = new Uri("http://example.com")
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (3)
PathStringBenchmark.cs (3)
16public IEnumerable<object> TestUris => new[] { new Uri($"https://localhost:5001/{TestPath}"), new Uri($"https://localhost:5001/{LongTestPath}"), new Uri($"https://localhost:5001/{LongTestPathEarlyPercent}") };
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
PathStringTests.cs (3)
331var uri = new Uri($"https://localhost:5001{input}"); 352var uri = new Uri($"https://localhost:5001{input}"); 401var sut = PathString.FromUriComponent(new Uri(localhost + testString));
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
335uri = new Uri(negotiationResponse.Url);
Microsoft.AspNetCore.Http.Connections.Tests (9)
HttpConnectionDispatcherTests.cs (8)
3257client.BaseAddress = new Uri(url); 3268Url = new Uri(url), 3320client.BaseAddress = new Uri(url); 3330Url = new Uri(url), 3419client.BaseAddress = new Uri(url); 3430Url = new Uri(url), 3471Url = new Uri(url), 3544Url = new Uri(url + "/foo"),
MapConnectionHandlerTests.cs (1)
402await client.ConnectAsync(new Uri(address), CancellationToken.None);
Microsoft.AspNetCore.Http.Extensions.Tests (15)
RequestDelegateFactoryTests.cs (7)
325new object[] { (Action<HttpContext, Uri[]>)Store, new[] { "https://example.org" }, new[] { new Uri("https://example.org") } }, 339new object[] { (Action<HttpContext, MyTryParseRecord[]>)Store, new[] { "https://example.org" },new[] { new MyTryParseRecord(new Uri("https://example.org")) } }, 376new object[] { (Action<HttpContext, Uri>)Store, "https://example.org", new Uri("https://example.org") }, 390new object[] { (Action<HttpContext, MyTryParseRecord>)Store, "https://example.org", new MyTryParseRecord(new Uri("https://example.org")) }, 704Assert.Equal(new MyAwaitedBindAsyncRecord(new Uri("https://example.org")), httpContext.Items["myAwaitedBindAsyncRecord"]); 705Assert.Equal(new MyAwaitedBindAsyncStruct(new Uri("https://example.org")), httpContext.Items["myAwaitedBindAsyncStruct"]); 1699Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (2)
132new object[] { "Uri[]", new[] { "https://example.org" }, new[] { new Uri("https://example.org") } }, 146new object[] { "MyTryParseRecord[]", new[] { "https://example.org" },new[] { new MyTryParseRecord(new Uri("https://example.org")) } },
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (2)
60Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]); 81Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
905Assert.Equal(new Uri("https://example.org"), content.Uri);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (3)
39new object[] { "Uri", "https://example.org", new Uri("https://example.org") }, 40new object[] { "Uri?", "https://example.org", new Uri("https://example.org") }, 56new object[] { "MyTryParseRecord", "https://example.org", new MyTryParseRecord(new Uri("https://example.org")) },
Microsoft.AspNetCore.Http.Results.Tests (7)
ResultsTests.cs (3)
630var uri = new Uri("https://example.com/entity"); 646var uri = new Uri("https://example.com/entity"); 662var uri = new Uri("https://example.com/entity");
TypedResultsTests.cs (4)
70var uri = new Uri("https://example.org"); 86var uri = new Uri("https://example.org"); 611var uri = new Uri("https://example.com/entity"); 627var uri = new Uri("https://example.com/entity");
Microsoft.AspNetCore.HttpsPolicy.Tests (9)
HstsMiddlewareTests.cs (8)
64client.BaseAddress = new Uri("https://example.com:5050"); 111client.BaseAddress = new Uri("https://example.com:5050"); 157client.BaseAddress = new Uri("https://example.com:5050"); 202client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 257client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 312client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 359client.BaseAddress = new Uri("http://example.com:5050"); 405client.BaseAddress = new Uri("https://example.com:5050");
HttpsPolicyTests.cs (1)
73client.BaseAddress = new Uri(response.Headers.Location.ToString());
Microsoft.AspNetCore.Identity.FunctionalTests (3)
Extensions\HttpClientExtensions.cs (1)
47target = new Uri(formaction, UriKind.Relative);
Infrastructure\ServerFactory.cs (1)
29ClientOptions.BaseAddress = new Uri("https://localhost");
MapIdentityApiTests.cs (1)
37private static Uri BaseAddress { get; } = new Uri("http://example.com");
Microsoft.AspNetCore.InternalTesting (2)
HttpClientSlim.cs (2)
26=> await GetStringAsync(new Uri(requestUri), validateCertificate).ConfigureAwait(false); 69=> await PostAsync(new Uri(requestUri), content, validateCertificate).ConfigureAwait(false);
Microsoft.AspNetCore.InternalTesting.Tests (2)
HttpClientSlimTest.cs (2)
57var requestUri = new Uri("http://[fe80::5d2a:d070:6fd6:1bac%7]:5003/"); 64var requestUri = new Uri("http://[fe80::5d2a:d070:6fd6:1bac%7]:80/");
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
Internal\DictionaryAdapterTest.cs (1)
278var uriKey = new Uri("http://www.test.com/name");
Microsoft.AspNetCore.JsonPatch.Tests (1)
Internal\DictionaryAdapterTest.cs (1)
280var uriKey = new Uri("http://www.test.com/name");
Microsoft.AspNetCore.Mvc.Core.Test (11)
ControllerBaseTest.cs (4)
1324var uri = new Uri("http://test/url"); 1355var uri = new Uri("/test/url", UriKind.Relative); 1534var uri = new Uri("http://test/url"); 1550var uri = new Uri("/test/url", UriKind.Relative);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (3)
889new Uri("http://example.com/1"), 890new Uri("http://example.com/2"), 891new Uri("http://example.com/3"),
RequireHttpsAttributeTests.cs (1)
169var uri = new Uri(url);
TypeFilterAttributeTest.cs (3)
16var uri = new Uri("http://www.asp.net"); 38var uri = new Uri("http://www.asp.net"); 63var uri = new Uri("http://www.asp.net");
Microsoft.AspNetCore.Mvc.FunctionalTests (8)
JsonPatchInputFormatterTest.cs (1)
169RequestUri = new Uri("http://localhost/jsonpatch/PatchProduct")
LinkGenerationTests.cs (2)
68TestPlatformHelper.IsMono ? new Uri(expected) : new Uri(expected, UriKind.Relative),
RealServerBackedIntegrationTests.cs (1)
44var baseAddress = new Uri("http://localhost:5000");
RealServerWithSpecifiedPortBackedIntegrationTests.cs (1)
26var baseAddress = new Uri($"http://localhost:{ServerPort}");
RequestSizeLimitTest.cs (1)
84request.RequestUri = new Uri("http://localhost/RequestSizeLimit/DisableRequestSizeLimit");
RoutingTestsBase.cs (2)
563var expectedUrl = new Uri(url).AbsolutePath; 606var expectedUrl = new Uri(url).AbsolutePath;
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
BsonTempDataSerializerTest.cs (3)
78{ new Uri("http://Foo") }, 84{ new Uri[] { new Uri("http://Foo"), new Uri("http://Bar") } },
Microsoft.AspNetCore.Mvc.Testing (4)
Handlers\RedirectHandler.cs (1)
144location = new Uri(requestUri, location);
WebApplicationFactory.cs (2)
323_webHostAddress = new Uri(serverAddressFeature.Addresses.Last()); 707client.BaseAddress = new Uri("http://localhost");
WebApplicationFactoryClientOptions.cs (1)
17internal static readonly Uri DefaultBaseAddres = new Uri("http://localhost");
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
30[() => new Uri("http://example.com"), "application/json", JsonSchemaType.String, "uri"]
Microsoft.AspNetCore.ResponseCompression.Tests (3)
ResponseCompressionMiddlewareTest.cs (3)
470server.BaseAddress = new Uri("https://localhost/"); 533server.BaseAddress = new Uri("https://localhost/"); 596server.BaseAddress = new Uri("https://localhost/");
Microsoft.AspNetCore.Rewrite.Tests (30)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (2)
431server.BaseAddress = new Uri("http://localhost:5000/foo"); 461server.BaseAddress = new Uri("http://localhost:5000/foo");
IISUrlRewrite\MiddleWareTests.cs (7)
249var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 289var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com")); 326var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com/")); 363var response = await server.CreateClient().GetAsync(new Uri("http://example.com/")); 397var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com/")); 430server.BaseAddress = new Uri("http://localhost:5000/foo"); 661var response = await server.CreateClient().GetStringAsync(new Uri(requestUri));
MiddlewareTests.cs (21)
169server.BaseAddress = new Uri(baseAddress); 254var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 281var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 324server.BaseAddress = new Uri("http://" + baseAddress); 327var response = await server.CreateClient().GetAsync(new Uri("http://" + hostPathAndQuery)); 354server.BaseAddress = new Uri("http://example.com"); 355var response = await server.CreateClient().GetAsync(new Uri(hostSchemePathAndQuery)); 381var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 408var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 437var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 466var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 491var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 526var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 554var response = await server.CreateClient().GetAsync(new Uri("https://www.example.com")); 583var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 608var response = await server.CreateClient().GetAsync(new Uri("https://www.example.com")); 722server.BaseAddress = new Uri("http://localhost:5000/foo"); 753var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 781var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 806var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 835var response = await server.CreateClient().GetAsync(new Uri("https://example.com"));
Microsoft.AspNetCore.Routing.FunctionalTests (6)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
35_client.BaseAddress = new Uri("http://localhost");
Benchmarks\RouterBenchmarkTest.cs (1)
36_client.BaseAddress = new Uri("http://localhost");
EndpointRoutingSampleTest.cs (1)
27_client.BaseAddress = new Uri("http://localhost");
RouterSampleTest.cs (1)
25_client.BaseAddress = new Uri("http://localhost");
RoutingTestFixture.cs (2)
31Client.BaseAddress = new Uri("http://localhost"); 39client.BaseAddress = new Uri(baseAddress);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (26)
Http3Tests.cs (2)
67altsvc = $@"h3="":{new Uri(address).Port}"""; 107altsvc = $@"h3="":{new Uri(address).Port}""";
Listener\RequestHeaderTests.cs (11)
71Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 72Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 98Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 99Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 126Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 127Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 167Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 168Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 192Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 193Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 207var uri = new Uri(address);
Listener\RequestTests.cs (1)
174var uri = new Uri(address);
OpaqueUpgradeTests.cs (2)
328Uri uri = new Uri(address); 381Uri uri = new Uri(address);
RequestBodyTests.cs (1)
312Uri uri = new Uri(address);
RequestHeaderTests.cs (2)
57var uri = new Uri(address); 254var uri = new Uri(address);
RequestTests.cs (5)
374var uri = new Uri(root); 530var uri = new Uri(address); 577var uri = new Uri(address); 605var rootUri = new Uri(root); 627var uri = new Uri(address);
ResponseTests.cs (1)
255var uri = new Uri(address);
ServerTests.cs (1)
658Uri uri = new Uri(address);
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Common\DeploymentResult.cs (1)
67BaseAddress = new Uri(ApplicationBaseUri),
Common\TestUriHelper.cs (1)
52var uriHint = new Uri(hint);
Deployers\NginxDeployer.cs (2)
35new Uri("http://localhost:0") : 36new Uri(DeploymentParameters.ApplicationBaseUriHint);
Deployers\SelfHostDeployer.cs (1)
158actualUrl = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
214url = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (1)
426var customEndpoint = new UriEndPoint(new("http://localhost:5000"));
ListenOptionsTests.cs (1)
71var listenOptions = new ListenOptions(new UriEndPoint(new Uri("http://127.0.0.1:5555")));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
31.Select(a => new Uri(a));
Microsoft.AspNetCore.SignalR.Client (4)
HubConnectionBuilderHttpExtensions.cs (4)
42hubConnectionBuilder.WithUrlCore(new Uri(url), null, null); 55hubConnectionBuilder.WithUrlCore(new Uri(url), null, configureHttpConnection); 68hubConnectionBuilder.WithUrlCore(new Uri(url), transports, null); 82hubConnectionBuilder.WithUrlCore(new Uri(url), transports, configureHttpConnection);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (8)
HubConnectionTests.cs (1)
1715cookieJar.Add(new System.Net.Cookie("Foo", "Bar", "/", new Uri(server.Url).Host));
HubConnectionTests.Tracing.cs (6)
128var port = new Uri(server.Url).Port; 300var port = new Uri(server.Url).Port; 429var port = new Uri(server.Url).Port; 526var port = new Uri(server.Url).Port; 621var port = new Uri(server.Url).Port; 720var port = new Uri(server.Url).Port;
HubProtocolVersionTests.cs (1)
118.WithUrl(new Uri(server.Url + "/version"))
Microsoft.AspNetCore.SignalR.Client.Tests (29)
HttpConnectionFactoryTests.cs (4)
40await Assert.ThrowsAnyAsync<Exception>(async () => await factory.ConnectAsync(new UriEndPoint(new Uri("http://example.com")))); 61var url1 = new Uri("http://example.com/1"); 62var url2 = new Uri("http://example.com/2"); 90{ $"{nameof(HttpConnectionOptions.Url)}", new Uri("https://example.com") },
HttpConnectionTests.cs (4)
66var connection = new HttpConnection(new Uri("http://fakeuri.org/")); 87httpOptions.Url = new Uri("http://fakeuri.org/"); 133httpOptions.Url = new Uri("http://fakeuri.org/"); 181Url = new Uri("http://fakeurl.org/"),
HttpConnectionTests.Helpers.cs (2)
37httpOptions.Url = new Uri(url); 51httpConnectionOptions.Url ??= new Uri("http://fakeuri.org/");
HubConnectionBuilderExtensionsTests.cs (3)
29Assert.Equal(new Uri("http://tempuri.org"), value.Url); 49var uri = new Uri("http://tempuri.org"); 65var uri = new Uri("http://tempuri.org");
HubConnectionTests.Tracing.cs (2)
147connection.RemoteEndPoint = new UriEndPoint(new Uri("http://example.net")); 187connection.RemoteEndPoint = new UriEndPoint(new Uri("http://example.net:5050"));
LongPollingTransportTests.cs (1)
28private static readonly Uri TestUri = new Uri("http://example.com/?id=1234");
SendUtilsTests.cs (1)
44await SendUtils.SendMessages(new Uri("http://fakeuri.org"), application, httpClient, logger: Logger).DefaultTimeout();
ServerSentEventsTransportTests.cs (11)
54new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 103new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 153new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 209new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 259new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 286new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 340new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 374var ex = await Assert.ThrowsAsync<ArgumentException>(() => sseTransport.StartAsync(new Uri("http://fakeuri.org"), TransferFormat.Binary).DefaultTimeout()); 401sseTransport.StartAsync(new Uri("http://fakeuri.org"), transferFormat)); 433await sseTransport.StartAsync(new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout(); 487new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout();
WebSocketsTransportTests.cs (1)
33new Uri("http://fakeuri.org"), TransferFormat.Text).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests (24)
EndToEndTests.cs (15)
44var connection = new HttpConnection(new Uri(url), HttpTransports.All, LoggerFactory); 66var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), DefaultTransferFormat = TransferFormat.Text }, LoggerFactory, new TestTransportFactory()); 80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 100await ws.ConnectAsync(new Uri(socketUrl), CancellationToken.None).DefaultTimeout(); 138await ws.ConnectAsync(new Uri(socketUrl), CancellationToken.None).DefaultTimeout(); 180Url = new Uri(url), 230Url = new Uri(url), 267var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat }, LoggerFactory); 323var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 387var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 413Url = new Uri(url), 441var connection = new HttpConnection(new Uri(url), transportType, LoggerFactory); 479client.BaseAddress = new Uri(server.Url); 489Url = new Uri(url), 653client.BaseAddress = new Uri(server.Url);
WebSocketsTransportTests.cs (9)
47await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/echo"), 81await webSocketsTransport.StartAsync(new Uri("http://FakeEndpot.com/echo"), TransferFormat.Binary).DefaultTimeout(); 95await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/echo"), 109await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/httpheader"), 140await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/httpheader"), 163await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/echo"), 179await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/echoAndClose"), transferFormat); 202await webSocketsTransport.StartAsync(new Uri(server.WebSocketsUrl + "/echo"), 220webSocketsTransport.StartAsync(new Uri("http://fakeuri.org"), transferFormat));
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyMiddleware.cs (1)
46if (context.Request.Path.Equals(new Uri(_options.Value.ServerUrl).LocalPath))
Microsoft.AspNetCore.SpaServices.Extensions (3)
AngularCli\AngularCliMiddleware.cs (1)
88var uri = new Uri(openBrowserLine.Groups[1].Value);
Proxying\SpaProxy.cs (1)
72var targetUri = new Uri((baseUriAsString.EndsWith("/", StringComparison.OrdinalIgnoreCase) ? baseUriAsString[..^1] : baseUriAsString)
Proxying\SpaProxyingExtensions.cs (1)
30new Uri(baseUri));
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
57var baseUriTask = Task.FromResult(new Uri(baseUrl));
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (2)
57using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 106using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) })
StaticFileMiddlewareTests.cs (6)
36using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 81using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 106using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 156using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 198using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 295var uri = new Uri(address);
Microsoft.AspNetCore.TestHost (2)
TestServer.cs (1)
107public Uri BaseAddress { get; set; } = new Uri("http://localhost/");
TestServerOptions.cs (1)
26public Uri BaseAddress { get; set; } = new Uri("http://localhost/");
Microsoft.AspNetCore.TestHost.Tests (11)
HttpContextBuilderTests.cs (2)
22server.BaseAddress = new Uri("https://example.com/A/Path/"); 53server.BaseAddress = new Uri("https://example.com/");
TestClientTests.cs (5)
615var clientSocket = await client.ConnectAsync(new System.Uri("http://localhost"), CancellationToken.None); 682var clientSocket = await client.ConnectAsync(new Uri("wss://localhost"), CancellationToken.None); 734await Assert.ThrowsAnyAsync<OperationCanceledException>(async () => await client.ConnectAsync(new Uri("http://localhost"), tokenSource.Token)); 774var clientSocket = await client.ConnectAsync(new System.Uri("http://localhost"), CancellationToken.None); 807var clientSocket = await client.ConnectAsync(new System.Uri("http://localhost"), CancellationToken.None);
TestServerTests.cs (1)
365var baseAddress = new Uri("http://localhost/test");
WebSocketClientTests.cs (3)
42uri: new Uri(requestUri), 82uri: new Uri("http://localhost/connect"), 118uri: new Uri("http://localhost/connect"),
Microsoft.AspNetCore.Testing (1)
ServiceFakesHostExtensions.cs (1)
79.Select(x => new Uri(x.Replace("[::]", "localhost", StringComparison.OrdinalIgnoreCase)));
Microsoft.AspNetCore.WebSockets.Tests (29)
IHostPortExtensions.cs (1)
27.Select(a => new Uri(a));
WebSocketCompressionMiddlewareTests.cs (4)
30var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 58var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 92var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 142await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None);
WebSocketMiddlewareTests.cs (24)
29await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 49await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 79await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 105await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 130await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 158await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 205await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 231await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 256await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 281await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 316await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 363await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 385await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 421await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 451await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 483await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 558await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 625await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 671var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 705var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 735await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 754var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/")); 793await client.ConnectAsync(new Uri($"ws://127.0.0.1:{port}/"), CancellationToken.None); 827var uri = new UriBuilder(new Uri($"ws://127.0.0.1:{port}/"));
Microsoft.Build (1)
BuildEventFileInfo.cs (1)
88_file = (e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath;
Microsoft.Build.Tasks.Core (7)
BootstrapperUtil\Util.cs (1)
49var uri = new Uri(path);
GetSDKReferenceFiles.cs (1)
1098var codeBase = new Uri(currentAssembly);
ManifestUtil\PathUtil.cs (4)
31Uri uri = new Uri(url); 52Uri u = new Uri(resolvedPath); 127Uri u = new Uri(path, UriKind.RelativeOrAbsolute); 222var u = new Uri(path);
SignFile.cs (1)
55TimestampUrl == null ? null : new Uri(TimestampUrl),
Microsoft.Build.Tasks.UnitTests (4)
FormatUrl_Tests.cs (3)
77t.OutputUrl.ShouldBe(new Uri(Path.Combine(Environment.CurrentDirectory, t.InputUrl)).AbsoluteUri); 119t.OutputUrl.ShouldBe(new Uri(t.InputUrl).AbsoluteUri); 134t.OutputUrl.ShouldBe(new Uri(Environment.CurrentDirectory).AbsoluteUri);
SecurityUtil_Tests.cs (1)
24Uri timestampUrl = new("http://timestamp.comodoca.com/rfc3161");
Microsoft.CodeAnalysis (2)
CommandLine\SarifErrorLogger.cs (2)
123private static readonly Uri s_fileRoot = new Uri("file:///"); 161return s_fileRoot.MakeRelativeUri(new Uri(s_fileRoot, uri)).ToString();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests.cs (1)
526Uri u = new Uri("http://www.microsoft.com");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\XmlDocCommentTests.cs (1)
3017SyntaxFactory.XmlSeeAlsoElement(new Uri("https://dotnet.microsoft.com/"),
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
143System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/quickinfo/ontheflydocsview.x" +
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\ProtocolConversions.cs (1)
202return new(uriString, UriKind.Absolute);
Protocol\Converters\DocumentUriConverter.cs (1)
17=> new(reader.GetString());
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (8)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
260var looseFileUri = new Uri("untitled:untitledFile"); 293var looseFileUri = new Uri("untitled:untitledFile");
UriTests.cs (6)
142var gitDocumentUri = new Uri(fileDocumentUri.ToString().Replace("file", "git")); 195var encodedUri = new Uri(encodedUriString, UriKind.Absolute); 219var upperCaseUri = new Uri(@"file:///C:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 220var lowerCaseUri = new Uri(@"file:///c:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 267var upperCaseUri = new Uri(@"git:/Blah", UriKind.Absolute); 268var lowerCaseUri = new Uri(@"git:/blah", UriKind.Absolute);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.cs (1)
62Uri codeUri = new(codePath);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
504var uri = new Uri(path, UriKind.RelativeOrAbsolute);
Microsoft.CodeAnalysis.Workspaces (1)
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
137? $"attach database '{new Uri(databasePath.Replace("'", "''")).AbsoluteUri}?mode=memory&cache=shared' as {Database.WriteCache.GetName()};"
Microsoft.DotNet.Build.Tasks.Feed (4)
src\BlobUrlInfo.cs (2)
31: this(new Uri(url)) 81Uri = new Uri($"https://{accountName}.{endpoint}/{containerName}/{blobPath}");
src\common\AzureStorageUtils.cs (1)
53Uri endpoint = new Uri($"https://{AccountName}.blob.core.windows.net");
src\CreateAzureDevOpsFeed.cs (1)
111BaseAddress = new Uri(azureDevOpsFeedsBaseUrl)
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Vsix\FinalizeInsertionVsixFile.cs (2)
47var part = package.GetPart(new Uri(VsixManifestPartName, UriKind.Relative)); 110var part = package.GetPart(new Uri("/manifest.json", UriKind.Relative));
Microsoft.DotNet.Git.IssueManager (2)
Clients\AzureDevOpsClient.cs (1)
54BaseAddress = new Uri($"https://dev.azure.com/{accountName}/{projectName}/")
Clients\GitHubClient.cs (1)
83Uri uri = new Uri(repositoryUri);
Microsoft.DotNet.Helix.Client (4)
ApiFactory.cs (2)
43return new HelixApi(new HelixApiOptions(new Uri(baseUri), new HelixApiTokenCredential(accessToken))); 56return new HelixApi(new HelixApiOptions(new Uri(baseUri)));
generated-code\HelixApi.cs (2)
45: this(new Uri("https://helix.dot.net/")) 55: this(new Uri("https://helix.dot.net/"), credentials)
Microsoft.DotNet.Helix.JobSender (1)
StorageHelpers\ApiBlobHelper.cs (1)
23var client = new CloudBlobClient(new Uri($"https://{info.StorageAccountName}.blob.core.windows.net/"), new StorageCredentials(info.WriteToken));
Microsoft.DotNet.Helix.JobSender.Tests (1)
Payloads\ArchivePayloadTests.cs (1)
20.Returns(Task.FromResult(new Uri("http://microsoft.com/blob")));
Microsoft.DotNet.Helix.Sdk (5)
DownloadFromResultsContainer.cs (1)
102var uri = new Uri($"{ResultsContainer}{workItemName}/1/{file}");
ProvisioningProfileProvider.cs (1)
189var uri = new Uri(GetProvisioningProfileUrl(platform));
SendHelixJob.cs (3)
372wi = wiWithPayload.WithPayloadUri(new Uri(payloadUri)); 516return def.WithCorrelationPayloadUris(new Dictionary<Uri, string>() { { new Uri(uri), destination } }); 520return def.WithCorrelationPayloadUris(new Uri(uri));
Microsoft.Extensions.AI.Abstractions (1)
Contents\UriContent.cs (1)
40: this(new Uri(Throw.IfNull(uri)), mediaType)
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatClientMetadataTests.cs (1)
23var uri = new Uri("https://example.com");
ChatCompletion\ChatMessageTests.cs (1)
243new DataContent(new Uri("data:text/plain;base64,aGVsbG8="), "mime-type/2")
Contents\DataContentTests.cs (2)
76content = new DataContent(new Uri("data:text/plain,"), mediaType); 95content = new DataContent(new Uri("data:image/png;base64,aGVsbG8="));
Contents\UriContentTests.cs (3)
23Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), null!)); 24Assert.Throws<ArgumentException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), "")); 25Assert.Throws<ArgumentException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), "audio"));
Embeddings\EmbeddingGeneratorMetadataTests.cs (1)
24var uri = new Uri("https://example.com");
SpeechToText\SpeechToTextClientMetadataTests.cs (1)
23var uri = new Uri("https://example.com");
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
102yield return new TestData<Uri>(new("http://example.com"), """{"type":["string","null"], "format":"uri"}""");
Microsoft.Extensions.AI.AzureAIInference.Tests (10)
AzureAIInferenceChatClientTests.cs (4)
31ChatCompletionsClient client = new(new("http://somewhere"), new AzureKeyCredential("key")); 38Uri endpoint = new("http://localhost/some/endpoint"); 53ChatCompletionsClient client = new(new("http://localhost"), new AzureKeyCredential("key")); 893new("http://somewhere"),
AzureAIInferenceEmbeddingGeneratorTests.cs (4)
25EmbeddingsClient client = new(new("http://somewhere"), new AzureKeyCredential("key")); 34Uri endpoint = new("http://localhost/some/endpoint"); 49var client = new EmbeddingsClient(new("http://somewhere"), new AzureKeyCredential("key")); 101using IEmbeddingGenerator<string, Embedding<float>> generator = new EmbeddingsClient(new("http://somewhere"), new AzureKeyCredential("key"), new()
IntegrationTestHelpers.cs (2)
27new ChatCompletionsClient(new Uri(_endpoint), new AzureKeyCredential(apiKey), CreateOptions()) : 33new EmbeddingsClient(new Uri(_endpoint), new AzureKeyCredential(apiKey), CreateOptions()) :
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Setup.cs (1)
18var endpoint = new Uri(Settings.Current.Endpoint);
test\Shared\ImageDataUri\ImageDataUri.cs (1)
18return new Uri($"data:image/png;base64,{Convert.ToBase64String(ms.ToArray())}");
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
AzureStorage\AzureResponseCacheTests.cs (2)
24new Uri( 25baseUri: new Uri(Settings.Current.StorageAccountEndpoint),
AzureStorage\AzureResultStoreTests.cs (2)
24new Uri( 25baseUri: new Uri(Settings.Current.StorageAccountEndpoint),
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
237Uri discoveryUri = new Uri(discoveryUrl);
Microsoft.Extensions.AI.Integration.Tests (1)
test\Shared\ImageDataUri\ImageDataUri.cs (1)
18return new Uri($"data:image/png;base64,{Convert.ToBase64String(ms.ToArray())}");
Microsoft.Extensions.AI.Ollama (4)
OllamaChatClient.cs (2)
48: this(new Uri(Throw.IfNull(endpoint)), modelId, httpClient) 69_apiChatEndpoint = new Uri(endpoint, "api/chat");
OllamaEmbeddingGenerator.cs (2)
37: this(new Uri(Throw.IfNull(endpoint)), modelId, httpClient) 58_apiEmbeddingsEndpoint = new Uri(endpoint, "api/embed");
Microsoft.Extensions.AI.Ollama.Tests (4)
IntegrationTestHelpers.cs (1)
17? new Uri(endpoint)
OllamaChatClientTests.cs (1)
70Uri endpoint = new("http://localhost/some/endpoint");
OllamaEmbeddingGeneratorTests.cs (2)
21Assert.Throws<ArgumentException>("modelId", () => new OllamaEmbeddingGenerator(new Uri("http://localhost"), " ")); 49Uri endpoint = new("http://localhost/some/endpoint");
Microsoft.Extensions.AI.OpenAI (3)
OpenAIChatClient.cs (1)
28private static Uri DefaultOpenAIEndpoint { get; } = new("https://api.openai.com/v1");
OpenAIResponseChatClient.cs (1)
28private static Uri DefaultOpenAIEndpoint { get; } = new("https://api.openai.com/v1");
OpenAISpeechToTextClient.cs (1)
26private static readonly Uri _defaultOpenAIEndpoint = new("https://api.openai.com/v1");
Microsoft.Extensions.AI.OpenAI.Tests (7)
IntegrationTestHelpers.cs (2)
31return new AzureOpenAIClient(new Uri(endpoint), new ApiKeyCredential(apiKey)); 35return new AzureOpenAIClient(new Uri(endpoint), new DefaultAzureCredential());
OpenAIChatClientTests.cs (1)
36Uri endpoint = new("http://localhost/some/endpoint");
OpenAIEmbeddingGeneratorTests.cs (1)
33Uri endpoint = new("http://localhost/some/endpoint");
OpenAIResponseClientTests.cs (1)
35Uri endpoint = new("http://localhost/some/endpoint");
OpenAISpeechToTextClientTests.cs (1)
34Uri endpoint = new("http://localhost/some/endpoint");
test\Shared\ImageDataUri\ImageDataUri.cs (1)
18return new Uri($"data:image/png;base64,{Convert.ToBase64String(ms.ToArray())}");
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
60serviceType == typeof(ChatClientMetadata) ? new ChatClientMetadata("testservice", new Uri("http://localhost:12345/something"), "amazingmodel") :
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
24var uri = new Uri(assemblyFileLocation).LocalPath;
NoRemoteCallNotSeekableHandler.cs (1)
27var uri = new Uri(assemblyFileLocation).LocalPath;
Microsoft.Extensions.Http.Diagnostics.Tests (28)
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (1)
60RequestUri = new($"http://default-uri.com/foo")
Logging\AcceptanceTests.cs (4)
25private static readonly Uri _unreachableRequestUri = new("https://we.wont.hit.this.domain.anyway"); 311RequestUri = new Uri(RequestPath), 358RequestUri = new Uri(RequestPath) 423RequestUri = new Uri(RequestPath),
Logging\HttpClientLoggerTest.cs (13)
86RequestUri = new("http://default-uri.com"), 124RequestUri = new("http://default-uri.com"), 186RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 282RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 387RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 483RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 598RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 690RequestUri = new($"http://default-uri.com/foo/bar"), 733RequestUri = new($"http://default-uri.com/foo/bar"), 771RequestUri = new($"http://default-uri.com/foo/bar"), 815RequestUri = new($"http://default-uri.com/foo/bar"), 865RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.Path}"), 960RequestUri = new($"http://default-uri.com/foo/bar"),
Logging\HttpRequestReaderTest.cs (7)
83RequestUri = new Uri("http://default-uri.com/foo"), 209RequestUri = new Uri("http://default-uri.com/foo/bar/123"), 284RequestUri = new Uri($"http://{RequestedHost}/foo/bar/123"), 356RequestUri = new Uri("http://default-uri.com/foo/bar/123"), 414RequestUri = new Uri("http://default-uri.com/foo/bar/123"), 485RequestUri = new Uri("http://default-uri.com/foo/bar/123"), 552RequestUri = new Uri("http://default-uri.com/foo/bar/123"),
Logging\Internal\NoRemoteCallHandler.cs (1)
20var uri = new Uri(assemblyFileLocation).LocalPath;
Telemetry\DownstreamDependencyMetadataManagerTests.cs (2)
51RequestUri = new Uri(uriString: urlString) 71RequestUri = new Uri(uriString: urlString)
Microsoft.Extensions.Http.Polly.Tests (8)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (8)
46serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 81serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 119serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 160serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 199serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 257serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 302serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 416serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
Microsoft.Extensions.Http.Resilience.PerformanceTests (8)
HedgingBenchmark.cs (1)
15private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
HttpClientFactory.cs (4)
90Uri = new Uri(PrimaryEndpoint) 94Uri = new Uri(SecondaryEndpoint) 113Uri = new Uri(PrimaryEndpoint) 117Uri = new Uri(SecondaryEndpoint)
HttpResilienceBenchmark.cs (1)
15private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
RetryBenchmark.cs (1)
19private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
StandardResilienceBenchmark.cs (1)
19private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
Microsoft.Extensions.Http.Resilience.Tests (17)
Hedging\HedgingTests.cs (1)
371uri = new Uri(string.Format(CultureInfo.InvariantCulture, pattern, attemptCount));
Hedging\StandardHedgingTests.cs (2)
317Endpoints = [new WeightedUriEndpoint { Uri = new Uri($"https://{FailingEndpoint}:3000") }] 322Endpoints = [new WeightedUriEndpoint { Uri = new Uri("https://microsoft.com") }]
Resilience\RequestMessageSnapshotTests.cs (2)
23RequestUri = new Uri("https://dummy-uri.com?query=param"), 57RequestUri = new Uri("https://dummy-uri.com?query=param"),
Resilience\UriExtensionsTests.cs (6)
25var fallbackUri = new Uri("https://fallback-uri.com"); 26var initialUri = new Uri(initialUriString); 28initialUri.ReplaceHost(fallbackUri).Should().Be(new Uri(expectedUriString)); 40var initialUri = new Uri(initialUriString); 44initialUri.ReplaceHost(new Uri(replacementUri)).Should().BeSameAs(initialUri); 48initialUri.ReplaceHost(new Uri(replacementUri)).Should().NotBeSameAs(initialUri);
Routing\EndpointTests.cs (2)
17Uri = new Uri("https://localhost:5001") 20endpoint.Uri.Should().Be(new Uri("https://localhost:5001"));
Routing\OrderedRoutingStrategyTest.cs (3)
62CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://b/"), Weight = 20 }), 70options.Groups.Add(CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://c/"), Weight = 30 })); 109return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Routing\WeightedRoutingStrategyTest.cs (1)
169return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Microsoft.Extensions.ML (4)
Builder\BuilderExtensions.cs (4)
28return builder.FromUri(string.Empty, new Uri(uri)); 49return builder.FromUri(modelName, new Uri(uri)); 87return builder.FromUri(string.Empty, new Uri(uri), period); 111return builder.FromUri(modelName, new Uri(uri), period);
Microsoft.Extensions.ML.Tests (2)
UriLoaderTests.cs (2)
48loaderUnderTest.Start(new Uri("https://microsoft.com"), TimeSpan.FromMilliseconds(1)); 70loaderUnderTest.Start(new Uri("https://microsoft.com"), TimeSpan.FromMilliseconds(1));
Microsoft.Extensions.ServiceDiscovery.Tests (17)
ConfigurationServiceEndpointResolverTests.cs (13)
102Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 117Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 132Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 172Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 194Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 209Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 265Assert.Equal(new UriEndPoint(new Uri(expectedResult)), initialResult.EndpointSource.Endpoints[0].EndPoint); 303Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 304Assert.Equal(new UriEndPoint(new Uri("http://remotehost:9090")), initialResult.EndpointSource.Endpoints[1].EndPoint); 325Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 326Assert.Equal(new UriEndPoint(new Uri("http://remotehost:9090")), initialResult.EndpointSource.Endpoints[1].EndPoint); 372Assert.Equal(new UriEndPoint(new Uri("http://remotehost:4444")), initialResult.EndpointSource.Endpoints[2].EndPoint); 421Assert.Equal(new UriEndPoint(new Uri("https://remotehost:5555")), initialResult.EndpointSource.Endpoints[2].EndPoint);
PassThroughServiceEndpointResolverTests.cs (1)
72Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint);
ServiceEndpointResolverTests.cs (1)
60serviceCollection.AddHttpClient("foo", c => c.BaseAddress = new("http://foo")).AddServiceDiscovery();
ServiceEndpointTests.cs (2)
15(EndPoint)new UriEndPoint(new Uri("https://microsoft.com")) 22(EndPoint)new UriEndPoint(new Uri("https://microsoft.com:8443"))
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
ServiceDiscoveryDestinationResolver.cs (3)
57var originalUri = new Uri(originalConfig.Address); 63var healthUri = originalConfig.Health is { Length: > 0 } health ? new Uri(health) : null; 72uri = new Uri($"{scheme}://{addressString}");
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
95P5 = new Uri("https://www.microsoft.com"),
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
66 internal static readonly Uri AppOriginUri = new(AppOrigin);
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
35 var query = new Uri(url).Query;
Microsoft.Maui.Controls (15)
ResourceDictionary.cs (3)
438 return new Uri($"{value};assembly={assembly.GetName().Name}", UriKind.Relative); 446 ? new Uri($"{GetResourcePathUriScheme}{uri.OriginalString}", UriKind.Absolute) 447 : new Uri($"{GetResourcePathUriScheme}/{rootTargetPath}/../{uri.OriginalString}", UriKind.Absolute);
Routing.cs (1)
245 var uri = new Uri(route, UriKind.RelativeOrAbsolute);
Shell\ShellNavigationState.cs (2)
45 uri = new Uri($"/{uri.PathAndQuery}", UriKind.Relative); 101 return new Uri(string.Join(Routing.PathSeparator, toKeep), UriKind.Relative);
Shell\ShellUriHandler.cs (8)
71 var returnValue = ConvertToStandardFormat("scheme", "host", null, new Uri(result, UriKind.Relative)); 72 return new Uri(FormatUri(returnValue.PathAndQuery), UriKind.Relative); 77 return new Uri(FormatUri(path.OriginalString), UriKind.Absolute); 80 return new Uri(FormatUri(path.OriginalString), UriKind.Relative); 96 return new Uri(path, UriKind.Relative); 101 return new Uri(path, UriKind.Relative); 160 return new Uri(uri); 794 return new Uri($"{Shell.RouteScheme}://{uri}");
UriTypeConverter.cs (1)
23 return new Uri(strValue, UriKind.RelativeOrAbsolute);
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\RDSourceTypeConverter.cs (1)
43 var uri = new Uri(value, UriKind.Relative);
CompiledValueProviders\StyleSheetProvider.cs (1)
56 var uri = new Uri(source, UriKind.Relative);
Microsoft.Maui.Controls.Xaml (4)
ApplyPropertiesVisitor.cs (1)
379 VisualDiagnostics.RegisterSourceInfo(target, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), lineInfo.LineNumber, lineInfo.LinePosition);
CreateValuesVisitor.cs (2)
173 VisualDiagnostics.RegisterSourceInfo(value, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition); 192 VisualDiagnostics.RegisterSourceInfo(rnode.Root, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition);
ResourceDictionaryHelpers.cs (1)
32 var resourcePath = ResourceDictionary.RDSourceTypeConverter.GetResourcePath(new Uri(value, UriKind.Relative), rootTargetPath);
Microsoft.Maui.Essentials (7)
Browser\Browser.shared.cs (3)
96 browser.OpenAsync(new Uri(uri), new BrowserLaunchOptions()); 106 browser.OpenAsync(new Uri(uri), new BrowserLaunchOptions { LaunchMode = launchMode }); 116 browser.OpenAsync(new Uri(uri), options);
Launcher\Launcher.shared.cs (3)
187 launcher.CanOpenAsync(new Uri(uri)); 197 launcher.OpenAsync(new Uri(uri)); 207 launcher.TryOpenAsync(new Uri(uri));
Types\Shared\WebUtils.shared.cs (1)
87 return new Uri(uri.Scheme + "://" + idn.GetAscii(uri.Authority) + uri.PathAndQuery + uri.Fragment);
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
199destFileName = Path.GetFileName(new Uri(url).AbsolutePath); ;
Microsoft.ML.Core (1)
Utilities\ResourceManagerUtils.cs (1)
160var t = Task.Run(() => DownloadResource(env, ch, client, new Uri(url), filePath, fileName, downloadCancel.Token));
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
43string path = new Uri(codeBaseUri).AbsolutePath;
Microsoft.ML.Parquet (3)
PartitionedPathUtils.cs (3)
26Uri baseUri = new Uri(basepath); 27Uri uri = new Uri(path); 39baseUri = new Uri(baseUri.AbsoluteUri + "/");
Microsoft.ML.Samples (5)
Dynamic\TensorFlow\ImageClassification.cs (1)
125var response = await client.GetStreamAsync(new Uri($"{baseGitPath}")).ConfigureAwait(false);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
274var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
306var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
262var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
283var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
Microsoft.ML.Samples.GPU (5)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
125var response = await client.GetStreamAsync(new Uri($"{baseGitPath}")).ConfigureAwait(false);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
274var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
306var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
262var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
283var response = await client.GetStreamAsync(new Uri($"{url}")).ConfigureAwait(false);
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
198var response = await client.GetStreamAsync(new Uri($"{baseGitPath}")).ConfigureAwait(false);
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\NetworkTests.cs (1)
45network.Ping(new Uri("http://127.0.0.1")).Should().BeTrue();
Microsoft.VisualStudio.LanguageServices (42)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
206System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/addparameterdi" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
238System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/changesignatur" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/memberselection" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/newtypedestinat" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
89System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/documentoutline/documentoutlin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/common/en" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
149System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/settingse" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
79System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/errorreporting/detailederrorin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
86System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractclass/extractclassdialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
96System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractinterface/extractinterf" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/generatetype/generatetypedialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
64System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/inheritancemargin/marginglyph/" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
135System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/movestaticme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
94System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/staticmember" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
118System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movetonamespace/movetonamespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
128System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pickmembers/pickmembersdialog." +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (1)
183System.Uri resourceLocater = new System.Uri("/Microsoft.VisualStudio.LanguageServices;component/previewpane/previewpane.xaml", System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\MainDialog\PullMemberUpDialog.g.cs (1)
103System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/maindialog/pullme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
77System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/warningdialog/pul" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
55System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
80System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
87System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/unusedreferences/dialog/remove" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
70System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingroo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
104System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingtre" +
Progression\GraphNodeIdCreation.cs (5)
32GraphNodeId.GetPartial(CodeGraphNodeIdName.Assembly, new Uri(document.Project.FilePath, UriKind.RelativeOrAbsolute)), 33GraphNodeId.GetPartial(CodeGraphNodeIdName.File, new Uri(document.FilePath, UriKind.RelativeOrAbsolute))); 413return new Uri(foundProject.OutputFilePath, UriKind.RelativeOrAbsolute); 430return new Uri(reference.FilePath, UriKind.RelativeOrAbsolute); 440return new Uri(foundProject.OutputFilePath, UriKind.Absolute);
VSWpfThemeService.cs (1)
25_themeDictionary.Source = new Uri("/Microsoft.VisualStudio.LanguageServices;component/VSThemeDictionary.xaml", UriKind.Relative);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\AdvancedOptionPageControl.g.cs (1)
701System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/advancedoptionp" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
93System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/formatting/form" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/intellisenseopt" +
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
ProjectsHandler.cs (2)
31var uri = new Uri(sourceFile.FilePath); 46SourceFiles = [.. project.Documents.Select(d => requestContext.ProtocolConverter.ToProtocolUri(new Uri(d.FilePath)))],
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
554Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/advancedop"& _
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
141Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/intellisen"& _
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (2)
135Uri = new Uri(sourceDefinition.FilePath), 147Uri = new Uri(sourceDefinition.FilePath),
MyFrontend (3)
Components\NavigationManagerExtensions.cs (1)
13return new Uri(uri).PathAndQuery;
Program.cs (2)
11builder.Services.AddHttpClient<CatalogServiceClient>(c => c.BaseAddress = new("https+http://catalogservice")); 16.AddGrpcClient<Basket.BasketClient>(o => o.Address = new($"{(isHttps ? "https" : "http")}://basketservice"));
Negotiate.Client (2)
Controllers\AuthTestController.cs (2)
333BaseAddress = new Uri(remote), 347BaseAddress = new Uri(remote)
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
460Uri sameUri = new Uri(serializedSafe);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (2)
24Uri baseUri = new Uri("http://foo/"); 25Uri srcUri = new Uri(baseUri, relPath.Replace("#", "%23"));
PresentationCore (52)
MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
42Uri siteOfOrigin = BaseUriHelper.FixFileUri(new Uri(System.AppDomain.CurrentDomain.BaseDirectory));
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
127_absoluteLocation = new Uri(SiteOfOriginContainer.SiteOfOrigin, uriMinusInitialSlash);
MS\Internal\FontCache\DWriteFactory.cs (1)
83return DWriteFactory.Instance.GetFontCollection(new Uri(localPath));
MS\Internal\FontCache\FamilyCollection.cs (2)
111Uri criticalSxSFontsLocation = new Uri(FamilyCollection.SxSFontsResourcePrefix); 238FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension), UriKind.RelativeOrAbsolute),
MS\Internal\FontCache\FontCacheUtil.cs (6)
306_windowsFontsUriObject = new Uri(_windowsFontsLocalPath, UriKind.Absolute); 499fontSourceUri = new Uri(fontUri.GetComponents(Util.UriWithoutFragment, UriFormat.SafeUnescaped)); 512return new Uri(fontUri); 516string canonicalPathUri = new Uri(fontUri).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 518return new Uri(canonicalPathUri + '#' + faceIndexString); 837throw new FileFormatException(new Uri(fileName));
MS\Internal\FontCache\FontResourceCache.cs (1)
53uri = new Uri(uri, FakeFileName);
MS\Internal\FontCache\FontSource.cs (1)
27return new FontSource(new Uri(uriString));
MS\Internal\FontCache\FontSourceCollection.cs (4)
23return new FontSourceCollection(new Uri(uriString)); 112fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), true)); 121fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), isComposite)); 150fontSources.Add(new FontSource(new Uri(_uri, resourceName), isComposite));
MS\Internal\FontFace\CompositeFontParser.cs (2)
872throw new FileFormatException(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x); 942throw new FileFormatException(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
MS\Internal\WpfWebRequestHelper.cs (1)
61uri = new Uri(uri.GetLeftPart(UriPartial.Path));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (2)
28uri = new Uri("http://foo/bar/"); 29uri = new Uri(uri, uriSource);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
71appBase = new Uri(domain.BaseDirectory);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
127newUri = new Uri(baseuri, orgUri);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Media\TypeConverterHelper.cs (2)
65uriHolder.OriginalUri = new Uri((string)inputString, UriKind.RelativeOrAbsolute); 91uriHolder.BaseUri = new Uri(BaseUriHelper.BaseUri, uriHolder.BaseUri);
System\Windows\Media\Color.cs (1)
290Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
System\Windows\Media\ColorContext.cs (1)
567profilePath = new Uri(Path.Combine(buffer.ToString(), profilePathString));
System\Windows\Media\FontFamily.cs (1)
507Uri locationUri = new Uri(Util.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
System\Windows\Media\FontFamilyConverter.cs (1)
93baseUri = new Uri(BaseUriHelper.BaseUri, baseUri);
System\Windows\Media\Fonts.cs (1)
110fontLocation = new Uri(baseUri, location);
System\Windows\Media\GlyphTypeface.cs (1)
96Uri typefaceSource = new Uri(uriPath);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
878Uri uri = new Uri(_baseUri, _uri); 1394(_baseUri == null) ? _uri : new Uri(_baseUri, _uri),
System\Windows\Media\Imaging\BitmapImage.cs (2)
184return BindUriHelper.UriToString(new Uri(_baseUri, UriSource)); 285uri = new Uri(_baseUri, UriSource);
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
42Uri uriToDecode = (_baseUri != null) ? new Uri(_baseUri, _uri) : _uri;
System\Windows\Media\mediaclock.cs (1)
198toPlay = new Uri(baseUri, Timeline.Source);
System\Windows\Media\MediaPlayerState.cs (1)
855return new Uri(appBase, uri);
System\Windows\Media\Parsers.cs (1)
121profileUri = new Uri(uriHolder.BaseUri, uriHolder.OriginalUri);
System\Windows\Navigation\BaseUriHelper.cs (12)
25private static readonly Uri _siteOfOriginBaseUri = PackUriHelper.Create(new Uri(SOOBASE)); 27private static readonly Uri _packAppBaseUri = PackUriHelper.Create(new Uri(APPBASE)); 102baseUri = new Uri(BaseUriHelper.BaseUri, baseUri); 165Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 342return new Uri(baseUri, orgUri); 352return (new Uri(sUri.GetComponents(UriComponents.SchemeAndServer, UriFormat.UriEscaped))).MakeRelativeUri(sUri); 367return new Uri(SiteOfOriginContainer.SiteOfOrigin, relative); 385return new Uri(uri.AbsoluteUri); 444source = new Uri(uri.AbsolutePath, UriKind.Relative); 445baseUri = new Uri(uri.GetLeftPart(UriPartial.Authority), UriKind.Absolute); 496return new Uri(baseUri, appendedUri); 499return new Uri(appendedUri, UriKind.Relative);
PresentationCore.Tests (8)
System\Windows\Media\ColorConverter.Tests.cs (3)
142yield return new object[] { Color.FromAValues(1.0f, [0.0f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")), 145yield return new object[] { Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")), 148yield return new object[] { Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 0.7f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")),
System\Windows\Media\Generated\BrushConverter.Tests.cs (3)
128yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.0f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 131yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 134yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 0.7f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))),
System\Windows\Media\Imaging\BitmapImage.Tests.cs (2)
74image.UriSource = new Uri(tempFile); 100image.UriSource = new Uri(tempFile);
PresentationFramework (55)
MS\Internal\AppModel\ContentFilePart.cs (1)
83return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(), UriKind.RelativeOrAbsolute)).ToString();
MS\Internal\AppModel\ResourcePart.cs (1)
86return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(_name, UriKind.RelativeOrAbsolute)).ToString();
MS\Internal\Controls\WebBrowserEvent.cs (3)
58Uri source = String.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 197Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 225Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString);
MS\Internal\Utility\BindUriHelper.cs (2)
23private static Uri placeboBase = new Uri(PLACEBOURI); 155workuri = new Uri(placeboBase, uri);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
127newUri = new Uri(baseuri, orgUri);
System\Windows\Annotations\Storage\XmlStreamStore.cs (4)
48_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace), null); 49_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.BaseSchemaNamespace), null); 50_predefinedNamespaces.Add(new Uri(XamlReaderHelper.DefaultNamespaceURI), null); 881Uri namespaceUri = new Uri(xmlNamespace, UriKind.RelativeOrAbsolute);
System\Windows\Application.cs (2)
361Uri currentUri = new Uri(BaseUriHelper.PackAppBaseUri, resourceLocator); 1534StartupUri = new Uri(ApplicationMarkupBaseUri, StartupUri);
System\Windows\ColorConvertedBitmapExtension.cs (1)
139return new Uri(_baseUri,uri);
System\Windows\Controls\AVElementHelper.cs (1)
692return new Uri(BaseUri, sourceUri);
System\Windows\Controls\WebBrowser.cs (3)
144Uri uri = new Uri(source); 380return (string.IsNullOrEmpty(urlString) ? null : new Uri(urlString)); 864source = new Uri(AboutBlankUriString);
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
229Uri uri = new Uri(ns, UriKind.RelativeOrAbsolute);
System\Windows\Documents\DocumentReference.cs (1)
67DocumentsTrace.FixedDocumentSequence.IDF.Trace($"DocumentReference.GetDocument ({(Source ?? new Uri("", UriKind.RelativeOrAbsolute))}, {forceReload})");
System\Windows\Documents\FixedPage.cs (5)
629workuri = new Uri(new Uri("http://microsoft.com/"), inputUri); 641inputUri = new Uri(inputUriStringWithoutFragment, UriKind.RelativeOrAbsolute); 649inputUri = new Uri(startPartUriString, UriKind.RelativeOrAbsolute); 660absoluteUri = new Uri(absoluteUri.ToString() + fragment, UriKind.RelativeOrAbsolute);
System\Windows\Documents\FixedSchema.cs (1)
165Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative));
System\Windows\Documents\FixedSOMImage.cs (2)
57imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute); 78imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute);
System\Windows\Documents\PageContent.cs (3)
71DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRoot Source={(Source ?? new Uri("", UriKind.RelativeOrAbsolute))}"); 100DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRootAsync Source={(Source ?? new Uri("", UriKind.RelativeOrAbsolute))}"); 140DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRootAsyncCancel Source={(Source ?? new Uri("", UriKind.RelativeOrAbsolute))}");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
162sd._manufacturerWebsite = new Uri(GetNonEmptyRegistryString(key, "manufacturerWebsite"));
System\Windows\Documents\Speller.cs (3)
1538fileUri = new Uri(new Uri($"{Directory.GetCurrentDirectory()}/"), uri); 1614return new Uri(tmpFilePath);
System\Windows\Documents\WpfPayload.cs (5)
316Uri payloadUri = new Uri($"payload://wpf{newWpfPayoutCount}", UriKind.Absolute); 455Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 683Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 702Uri imagePartUri = new Uri(XamlPayloadDirectory + imageSourceString, UriKind.Relative); 767Uri entryPartUri = new Uri(XamlPayloadDirectory + XamlEntryName, UriKind.Relative);
System\Windows\Markup\BamlRecordReader.cs (1)
4356baseuri = new Uri(BindUriHelper.BaseUri, baseuri);
System\Windows\Markup\ParserContext.cs (3)
108_baseUri = new Uri(xmlParserContext.BaseURI, UriKind.RelativeOrAbsolute); 132BaseUri = new Uri( xmlReader.BaseURI ); 460Uri sameUri = new Uri(serializedSafe);
System\Windows\Markup\XamlReader.cs (3)
338parserContext.BaseUri = new Uri(reader.BaseURI); 883parserContext.BaseUri = new Uri(reader.BaseURI); 1141return new Uri(MS.Internal.Utility.BindUriHelper.BaseUri, uri);
System\Windows\Navigation\JournalEntry.cs (2)
333displayName = (new Uri(siteOfOrigin, relative)).ToString(); 339BaseUriHelper.GetAssemblyNameAndPart(new Uri(relativeUri, UriKind.Relative), out part, out assy, out assyVers, out assyKey);
System\Windows\ThemeDictionaryExtension.cs (1)
115return new Uri(uri.ToString(), System.UriKind.RelativeOrAbsolute);
System\Windows\ThemeManager.cs (4)
178return new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + "Fluent.HC.xaml", UriKind.Absolute) }; 186rd = new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + "Fluent.xaml", UriKind.Absolute) }; 189Uri dictionaryUri = new Uri(FluentColorDictionaryUri + colorFileName, UriKind.Absolute); 195rd = new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + themeFileName, UriKind.Absolute) };
PresentationFramework.Fluent.Tests (1)
ResourceTests\FluentResourceDictionaryTests.cs (1)
70var uri = new Uri(source, UriKind.RelativeOrAbsolute);
PresentationFramework.Tests (1)
System\Windows\ResourceDictionaryTests.cs (1)
18_dictionary = (ResourceDictionary)Application.LoadComponent(new Uri(SampleDictionaryPath, UriKind.Relative));
PresentationUI (10)
artifacts\obj\PresentationUI\x86\Debug\net10.0\InstallationError.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/installationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS\Internal\Documents\FindToolBar.g.cs (1)
171System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/ms/internal/documents/findtoolbar.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationError.g.cs (1)
123System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationProgress.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationprogress.xaml", System.UriKind.Relative);
MS\Internal\Documents\Application\AddressUtility.cs (1)
67return new Uri(string.Format(
MS\Internal\Documents\Application\DocumentStream.cs (1)
827return new Uri(temp);
MS\Internal\Documents\Application\FilePresentation.cs (1)
92Uri file = new Uri(filePath);
MS\Internal\Documents\RightsManagementManager.cs (1)
639NavigationHelper.NavigateToExternalUri(new Uri(rmClientInstallLocation));
MS\Internal\Documents\RMPublishingDialog.cs (2)
346newUri = new Uri(path); 389templateList.Add(new Uri(file.FullName));
Publishers.Frontend (1)
Program.cs (1)
9builder.Services.AddHttpClient<ApiClient>(c => c.BaseAddress = new("http://api"));
ReachFramework (46)
Packaging\XpsDocument.cs (4)
106this.Uri = new Uri(path, UriKind.RelativeOrAbsolute); 159this.Uri = new Uri(path, UriKind.RelativeOrAbsolute); 167Uri = new Uri( new Uri(Directory.GetCurrentDirectory()+"/"), this.Uri );
Packaging\XpsFixedDocumentReaderWriter.cs (3)
495_metroPart.CreateRelationship(new Uri(structurePath, UriKind.Relative), 543_metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 958Uri relativeUri = new Uri(attribute, UriKind.Relative);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
557Uri relativeUri = new Uri(attribute, UriKind.Relative);
Packaging\XpsFixedPageReaderWriter.cs (7)
752_metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 835_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 872_metroPart.CreateRelationship(new Uri(storyFragmentPath, UriKind.Relative), 1631_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1672_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1744_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1782_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative),
Packaging\XpsManager.cs (15)
110_uri = new Uri(path, UriKind.RelativeOrAbsolute); 118_uri = new Uri( new Uri(Directory.GetCurrentDirectory()+"/"), path ); 398System.Uri partUri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 451metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 505metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 926return new Uri("/Documents/" + docCounter + "/Structure/DocStructure.struct", 949return new Uri("/Documents/" + docCounter + "/Structure/Fragments/"+pageNumber+".frag", 1024return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1061return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1157return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1507Uri dummyAbsoluteUri = new Uri("http://dummy"); 1511baseUri = new Uri(dummyAbsoluteUri, baseUri); 1516fileUri = new Uri(dummyAbsoluteUri, fileUri); 1521Uri unescapedUri = new Uri(relativeUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
Packaging\XpsResource.cs (1)
68return new Uri(XpsManager.MakeRelativePath(this.Uri, inUri), UriKind.Relative);
Packaging\XPSSignatureDefinition.cs (2)
360Uri pageUri = new Uri(SpotLocation.PageUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 520SpotLocation.PageUri = new Uri(attributeValue, UriKind.Relative);
Serialization\ColorTypeConverter.cs (1)
354Uri safeUnescapedUri = new Uri(profileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
Serialization\ImageSourceTypeConverter.cs (1)
229Uri sourceUri = new Uri(decoder.ToString());
Serialization\Manager\NullPackagingPolicy.cs (5)
317new Uri("package/font",UriKind.Relative)); 390new Uri("package/font",UriKind.Relative)); 529new Uri("package/image",UriKind.Relative)); 593new Uri("package/colorcontext",UriKind.Relative)); 657new Uri("package/colorcontext",UriKind.Relative));
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
798Uri uri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative));
Serialization\VisualTreeFlattener.cs (1)
155return new Uri(BaseUriHelper.SiteOfOriginBaseUri, uri);
Serialization\XpsFontSubsetter.cs (3)
451Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 597Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 633Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
SerializerFactory\XpsSerializerFactory.cs (1)
67return new Uri(SR.XpsSerializerFactory_ManufacturerWebsite);
Roslyn.VisualStudio.DiagnosticsWindow (4)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (1)
86System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/telemetrypanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (1)
78System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/workspacepanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\PerfMargin\StatusIndicator.g.cs (1)
62System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/perfmargin/statusindicator.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\VenusMargin\ProjectionBufferMargin.g.cs (1)
54System.Uri resourceLocater = new System.Uri(("/Roslyn.VisualStudio.DiagnosticsWindow;component/venusmargin/projectionbuffermarg" +
RunTests (1)
TestHistoryManager.cs (1)
57var connection = new VssConnection(new Uri(projectUri), credentials);
Sample (2)
Transformers\AddExternalDocsTransformer.cs (2)
16var url = new Uri(baseUri, $"/api/docs/operations/{Uri.EscapeDataString(id)}"); 32var url = new Uri(baseUri, $"/api/docs/schemas/{Uri.EscapeDataString(schema.Type.ToString()!.ToLowerInvariant())}");
Security.TransportSecurity.IntegrationTests (33)
Https\HttpsTests.4.1.0.cs (5)
242endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_DefaultBinding_Address_Text)); 290endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_DefaultBinding_Address_Text), identity); 331endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_DefaultBinding_Address_Text), identity); 371endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_ClientCertificateAuth_Address)); 420endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_ClientCertificateAuth_Address));
Https\HttpsTests.4.1.1.cs (4)
39new Uri(Endpoints.Https_SecModeTrans_ClientCredTypeNone_ServerCertValModePeerTrust_Address)); 89endpointAddress = new EndpointAddress(new Uri( 148new Uri(Endpoints.Https_SecModeTrans_ClientCredTypeNone_ServerCertValModeChainTrust_Address)); 193endpointAddress = new EndpointAddress(new Uri(Endpoints.Https_SecModeTrans_ClientCredTypeNone_ServerCertValModeChainTrust_Address));
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (5)
185new EndpointAddress(new Uri(Endpoints.Https_WindowsAuth_Address), new SpnEndpointIdentity(spn))); 235new Uri(Endpoints.Https_WindowsAuth_Address), 279new Uri(Endpoints.Https_WindowsAuth_Address), 331new Uri(Endpoints.Https_WindowsAuth_Address), 381new Uri(Endpoints.Https_WindowsAuth_Address),
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (4)
163new Uri(Endpoints.Tcp_DefaultBinding_Address), 204new Uri(Endpoints.Tcp_DefaultBinding_Address), 255new Uri(Endpoints.Tcp_DefaultBinding_Address), 302new Uri(Endpoints.Tcp_DefaultBinding_Address),
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (4)
32var localhostEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_Localhost_Address); 103var domainNameEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_DomainName_Address); 181var domainNameEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_DomainName_Address); 185var fqdnEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_Fqdn_Address);
Tcp\ClientCredentialTypeTests.4.1.0.cs (3)
33endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_Address), 82endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_CustomValidation_Address), 134endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_ServerAltName_Address));
Tcp\ClientCredentialTypeTests.4.1.1.cs (5)
40new Uri(Endpoints.NetTcp_SecModeTrans_ClientCredTypeNone_ServerCertValModePeerTrust_Address)); 89endpointAddress = new EndpointAddress(new Uri( 146endpointAddress = new EndpointAddress(new Uri( 192endpointAddress = new EndpointAddress(new Uri( 240endpointAddress = new EndpointAddress(new Uri(
Tcp\ClientCredentialTypeTests.OSX.cs (1)
66new Uri(Endpoints.NetTcp_SecModeTrans_ClientCredTypeNone_ServerCertValModePeerTrust_Address));
Tcp\IdentityTests.4.1.0.cs (1)
29EndpointAddress endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_VerifyDNS_Address), new DnsEndpointIdentity(Endpoints.Tcp_VerifyDNS_HostName));
Tcp\IdentityTests.4.1.1.cs (1)
29EndpointAddress endpointAddress = new EndpointAddress(new Uri(Endpoints.Tcp_VerifyDNS_Address), new DnsEndpointIdentity("wrongone"));
Shared.Tests (2)
ImageDataUri\ImageDataUri.cs (1)
18return new Uri($"data:image/png;base64,{Convert.ToBase64String(ms.ToArray())}");
JsonSchemaExporter\TestTypes.cs (1)
102yield return new TestData<Uri>(new("http://example.com"), """{"type":["string","null"], "format":"uri"}""");
Sockets.BindTests (11)
SocketTransportFactoryTests.cs (1)
21await Assert.ThrowsAsync<NotImplementedException>(async () => await socketTransportFactory.BindAsync(new UriEndPoint(new Uri("http://127.0.0.1:5554"))));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
31.Select(a => new Uri(a));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
27.Select(a => new Uri(a));
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (8)
209var uri = new Uri(testUrl); 337Assert.Equal(new Uri(testUrlWithPort).ToString(), response); 392Assert.Equal(new Uri(testUrl).ToString(), response); 439Assert.Equal(new Uri(testUrl).ToString(), response); 526Assert.Equal(new Uri(address).ToString(), await HttpClientSlim.GetStringAsync(address, validateCertificate: false)); 641Assert.Equal(new Uri(useUrlsAddressWithPort).ToString(), await HttpClientSlim.GetStringAsync(useUrlsAddressWithPort)); 686Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.GetStringAsync(endPointAddress, validateCertificate: false)); 722Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.GetStringAsync(endPointAddress, validateCertificate: false));
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
31.Select(a => new Uri(a));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
27.Select(a => new Uri(a));
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
54Uri uri = new Uri(fileName);
System\ComponentModel\UriTypeConverter.cs (3)
50return new Uri(uriString, UriKind.RelativeOrAbsolute); 55return new Uri(uri.OriginalString, GetUriKind(uri)); 85return new Uri(uri.OriginalString, GetUriKind(uri));
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
92Uri externalConfigUri = new Uri(externalConfigPath, UriKind.Absolute);
System.Data.Common (3)
System\Data\Common\ObjectStorage.cs (1)
337return (new Uri(s));
System\Data\Common\SQLConvert.cs (2)
548return new Uri((string)value); 636return new Uri((string)value);
System.Drawing.Common.Tests (1)
System\Drawing\IconTests.cs (1)
372Assert.True(new Uri(bitmapUncPath).IsUnc);
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.cs (1)
132Uri locationUri = new Uri(location);
System.IO.Packaging (25)
System\IO\Packaging\FileFormatException.cs (1)
124_sourceUri = new Uri(sourceUriString, UriKind.RelativeOrAbsolute);
System\IO\Packaging\InternalRelationshipCollection.cs (1)
346Uri targetUri = new Uri(targetAttributeValue, DotNetRelativeOrAbsolute);
System\IO\Packaging\PackageRelationship.cs (1)
179private static readonly Uri s_containerRelationshipPartName = PackUriHelper.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
System\IO\Packaging\PackUriHelper.cs (12)
47Uri resolvedUri = new Uri(s_defaultUri, partUri); 87resolvedUri = new Uri(s_defaultUri, targetUri); 89resolvedUri = new Uri(new Uri(s_defaultUri, ValidatePartUri(sourcePartUri)), targetUri); 91return new Uri(resolvedUri.AbsolutePath, UriKind.Relative); 107sourcePartUri = new Uri(s_defaultUri, ValidatePartUri(sourcePartUri)); 108targetPartUri = new Uri(s_defaultUri, ValidatePartUri(targetPartUri)); 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 | 570private static readonly Uri s_defaultUri = new Uri("http://defaultcontainer/"); 573private static readonly Uri s_packageRootUri = new Uri("/", UriKind.Relative);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (6)
104Uri packUri = new Uri(absolutePackageUri); 108packUri = new Uri(packUri, partUri); 112packUri = new Uri(string.Concat(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment)); 118return new Uri(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped)); 313Uri packageUri = new Uri(Uri.UnescapeDataString(hostAndPort)); 331return ValidatePartUri(new Uri(partName, UriKind.Relative));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
734return PackUriHelper.CreatePartUri(new Uri(propertyPartName, UriKind.Relative));
System\IO\Packaging\ZipPackage.cs (3)
214Uri partUri = new Uri(GetOpcNameFromZipItemName(zipArchiveEntry.FullName), UriKind.Relative); 1179new Uri(TemporaryPartNameWithoutExtension + extensionAttributeValue, UriKind.Relative)); 1202PackUriHelper.ValidatedPartUri partUri = PackUriHelper.ValidatePartUri(new Uri(partNameAttributeValue!, UriKind.Relative));
System.Net.Http (5)
System\Net\Http\HttpClient.cs (2)
763requestUri = new Uri(_baseAddress, request.RequestUri); 811string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System\Net\Http\HttpRequestMessage.cs (1)
138: this(method, string.IsNullOrEmpty(requestUri) ? null : new Uri(requestUri, UriKind.RelativeOrAbsolute))
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
240uri = new Uri($"{uriSpan[tokens[0]]}//:@{uriSpan[tokens[2]]}");
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
114location = new Uri(requestUri, location);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
110string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
222Uri hostUri = new Uri(uriPrefix);
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
275return _servicePoint ??= ServicePointManager.FindServicePoint(new Uri($"mailto:{_host}:{_port}"));
System.Net.Requests (3)
System\Net\ServicePoint\ServicePointManager.cs (1)
105public static ServicePoint FindServicePoint(string uriString, IWebProxy? proxy) => FindServicePoint(new Uri(uriString), proxy);
System\Net\WebRequest.cs (2)
156return Create(new Uri(requestUriString), false); 201return CreateHttp(new Uri(requestUriString));
System.Net.Security (2)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
156Uri uri = new Uri(uriString); 275location = new Uri(requestUri, location);
System.Net.WebClient (4)
System\Net\WebClient.cs (4)
166_baseAddress = new Uri(value); 787return new Uri(Path.GetFullPath(address)); 792return new Uri(Path.GetFullPath(address)); 1168new Uri(_baseAddress, address) :
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
120var proxyUri = new Uri(address);
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\DataContract.cs (1)
1585return new Uri(Globals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri;
System\Runtime\Serialization\Globals.cs (1)
338s_dataContractXsdBaseNamespaceUri ??= new Uri(DataContractXsdBaseNamespace);
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
730return new Uri(str, UriKind.RelativeOrAbsolute); 747return new Uri(str, UriKind.RelativeOrAbsolute);
System.Private.Uri (6)
System\Uri.cs (1)
1865return new Uri(relativeUriString, UriKind.Relative);
System\UriBuilder.cs (3)
32_uri = new Uri(uri, UriKind.RelativeOrAbsolute); 36_uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + uri); 241_uri = new Uri(ToString());
System\UriExt.cs (2)
776return new Uri((flags & Flags.UserEscaped), null, uriString); 783Uri result = new Uri(flags, syntax, uriString);
System.Private.Xml (16)
System\Xml\Core\XmlTextReaderImpl.Unix.cs (1)
26url = new Uri(url).ToString();
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
1069_validator.BaseUri = (resolver == null) ? new Uri(_outerReader.BaseURI, UriKind.RelativeOrAbsolute) : resolver.ResolveUri(null, _outerReader.BaseURI);
System\Xml\Resolvers\XmlPreloadedResolver.cs (4)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative); 363_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 364_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
System\Xml\Schema\Parser.cs (1)
84_schema.BaseUri = new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute);
System\Xml\Schema\ParserAsync.cs (1)
45_schema.BaseUri = new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute);
System\Xml\Schema\XmlSchemaSet.cs (3)
276Uri schemaUri = new Uri(schemaDocument.BaseURI!, UriKind.RelativeOrAbsolute); 800if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) 812if (IsSchemaLoaded(new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute), targetNamespace, out _))
System\Xml\XmlResolver.cs (3)
45Uri uri = new Uri(relativeUri!, UriKind.RelativeOrAbsolute); 48uri = new Uri(Path.GetFullPath(relativeUri!)); 66return new Uri(baseUri, relativeUri);
System\Xml\Xsl\Runtime\XmlCollation.cs (2)
169collationUri = new Uri(collationLiteral); 202else if (collationUri.IsBaseOf(new Uri(XmlReservedNs.NsCollCodePoint)))
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\ImportGlobals.cs (1)
88internal static Uri DataContractXsdBaseNamespaceUri => s_dataContractXsdBaseNamespaceUri ??= new Uri(DataContractXsdBaseNamespace);
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (1)
78return new Uri(ImportGlobals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri;
System.Security.Cryptography (2)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
156Uri uri = new Uri(uriString); 275location = new Uri(requestUri, location);
System.ServiceModel.Federation.Tests (2)
WSTrustChannelSecurityTokenProviderTest.cs (2)
28var issuerAddress = new EndpointAddress(new Uri("http://localhost/issuer.svc")); 29var targetAddress = new EndpointAddress(new Uri("http://localhost/target.svc"));
System.ServiceModel.Http.Tests (2)
ServiceModel\HttpIdentityTests.cs (2)
15var endpointAddress = new EndpointAddress(new Uri("https://serverhostname/fakeService.svc"), identity); 27var endpointAddress = new EndpointAddress(new Uri("https://serverhostname/fakeService.svc"), identity);
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\AddressingVersionExtensions.cs (3)
21"Addressing200408 (http://schemas.xmlsoap.org/ws/2004/08/addressing)" => new Uri("http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"), 22"Addressing10 (http://www.w3.org/2005/08/addressing)" => new Uri("http://www.w3.org/2005/08/addressing/anonymous"), 35"Addressing10 (http://www.w3.org/2005/08/addressing)" => new Uri("http://www.w3.org/2005/08/addressing/none"),
System\ServiceModel\Channels\FramingChannels.cs (1)
29: this(factory, settings, s_anonymousEndpointAddress, settings.MessageVersion.Addressing == AddressingVersion.None ? null : new Uri("http://www.w3.org/2005/08/addressing/anonymous"),
System\ServiceModel\Channels\FramingDecoders.cs (1)
231_via = new Uri(value);
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
113fullUri = new Uri(baseAddress, relativeAddress);
System.ServiceModel.Syndication (8)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (3)
113ReadReferencedCategories(reader, referencedCategories, baseUri, new Uri(link, UriKind.RelativeOrAbsolute), version, maxExtensionSize); 348result.Link = new Uri(reader.Value, UriKind.RelativeOrAbsolute); 426result.BaseUri = new Uri(reader.Value, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\FeedUtils.cs (2)
79Uri newBaseUri = new Uri(newBase, UriKind.RelativeOrAbsolute); 84return new Uri(rootBase, newBase);
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
383textInput.Link = new SyndicationLink(new Uri(value, UriKind.RelativeOrAbsolute));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
372uri = new Uri(XmlUriData.UriString, XmlUriData.UriKind);
System\ServiceModel\Syndication\SyndicationLink.cs (1)
116return new Uri(BaseUri, Uri);
System.Windows.Forms (16)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
160return new Uri(path); 166return new Uri(path);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
154return string.IsNullOrEmpty(hrefString) ? null : new Uri(hrefString);
System\Windows\Forms\Controls\WebBrowser\HtmlElementErrorEventArgs.cs (1)
40public Uri Url => _url ??= new Uri(_urlString);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
237return string.IsNullOrEmpty(hrefString) ? null : new(hrefString);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (3)
237Uri url = new(hrefString); 289Url = new Uri("about:blank"); 579return new Uri(urlString);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserEvent.cs (3)
64new Uri(urlString), targetFrameName is null ? string.Empty : (string)targetFrameName); 96new Uri(urlString)); 117new Uri(urlString));
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (1)
19uri = new Uri($"http://{uri.OriginalString.AsSpan().Trim()}");
System\Windows\Forms\Help\Help.cs (4)
208file = new Uri($"{file}#{stringParam}"); 244file = new Uri(partialUri); 268file = new Uri(new Uri(AppContext.BaseDirectory),
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
242Uri codeBaseUrl = new(Assembly.GetExecutingAssembly().Location);
System.Windows.Forms.Tests (50)
System\Windows\Forms\HtmlDocumentTests.cs (1)
1263Assert.Equal(new Uri(file.Path), document.Url);
System\Windows\Forms\WebBrowserDocumentCompletedEventArgsTests.cs (1)
14Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserNavigatedEventArgsTests.cs (1)
14Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserNavigatingEventArgsTests.cs (1)
17Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserTests.cs (46)
1940Assert.Equal(new Uri(file.Path), control.Url); 1982Assert.Equal(new Uri(file.Path), e.Url); 1991Assert.Equal(new Uri(file.Path), e.Url); 2005Assert.Equal(new Uri(file.Path), e.Url); 2028await Task.Run(() => control.Url = new Uri(file.Path)); 2030Assert.Equal(new Uri(file.Path), control.Url); 2042await Task.Run(() => control.Url = new Uri(file.Path)); 2044Assert.Equal(new Uri(file.Path), control.Url); 2058yield return new object[] { new Uri("", UriKind.Relative) }; 2075await Task.Run(() => control.Url = new Uri(file.Path)); 2077Assert.Equal(new Uri(file.Path), control.Url); 2089Uri relativeUri = new("/path", UriKind.Relative); 3204Assert.Equal(new Uri(file.Path), e.Url); 3213Assert.Equal(new Uri(file.Path), e.Url); 3227Assert.Equal(new Uri(file.Path), e.Url); 3252Assert.Equal(new Uri(file.Path), control.Url); 3266Assert.Equal(new Uri(file.Path), control.Url); 3291await Task.Run(() => control.Navigate(new Uri(file.Path))); 3293Assert.Equal(new Uri(file.Path), control.Url); 3316Assert.Equal(new Uri(file.Path), e.Url); 3325Assert.Equal(new Uri(file.Path), e.Url); 3339Assert.Equal(new Uri(file.Path), e.Url); 3362await Task.Run(() => control.Navigate(new Uri(file.Path))); 3364Assert.Equal(new Uri(file.Path), control.Url); 3376await Task.Run(() => control.Navigate(new Uri(file.Path))); 3378Assert.Equal(new Uri(file.Path), control.Url); 3392yield return new object[] { new Uri("", UriKind.Relative) }; 3409await Task.Run(() => control.Navigate(new Uri(file.Path))); 3411Assert.Equal(new Uri(file.Path), control.Url); 3460Uri relativeUri = new("/path", UriKind.Relative); 3477Assert.Throws<ObjectDisposedException>(() => control.Navigate(new Uri("http://google.com"))); 3478Assert.Throws<ObjectDisposedException>(() => control.Navigate(new Uri("http://google.com"), "targetFrameName")); 3479Assert.Throws<ObjectDisposedException>(() => control.Navigate(new Uri("http://google.com"), false)); 3480Assert.Throws<ObjectDisposedException>(() => control.Navigate(new Uri("http://google.com"), "targetFrameName", null, null)); 3493Assert.Throws<InvalidOperationException>(() => control.Navigate(new Uri("http://google.com"))); 3494Assert.Throws<InvalidOperationException>(() => control.Navigate(new Uri("http://google.com"), "targetFrameName")); 3495Assert.Throws<InvalidOperationException>(() => control.Navigate(new Uri("http://google.com"), false)); 3496Assert.Throws<InvalidOperationException>(() => control.Navigate(new Uri("http://google.com"), "targetFrameName", null, null)); 3559yield return new object[] { new WebBrowserDocumentCompletedEventArgs(new Uri("http://microsoft.com")) }; 3596yield return new object[] { allowWebBrowserDrop, new WebBrowserDocumentCompletedEventArgs(new Uri("http://microsoft.com")) }; 3753yield return new object[] { new WebBrowserNavigatedEventArgs(new Uri("http://microsoft.com")) }; 3788yield return new object[] { new WebBrowserNavigatingEventArgs(new Uri("http://microsoft.com"), "targetFrameName") }; 3990Assert.Equal(new Uri(file.Path), control.Url); 4002Assert.Equal(new Uri(file.Path), control.Url); 4137Assert.Equal(new Uri(file.Path), control.Url); 4149Assert.Equal(new Uri(file.Path), control.Url);
System.Xaml (9)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (6)
54return new Uri(uri.OriginalString, uriKind); 67return new Uri(uriString, UriKind.Absolute); 72return new Uri(uriString, UriKind.Relative); 75return new Uri(uriString, UriKind.RelativeOrAbsolute); 82return new Uri(uri.OriginalString, uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 85return new Uri(uri.OriginalString, UriKind.RelativeOrAbsolute);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1654ctx.BaseUri = new Uri((string)value); 2097ctx.BaseUri = new Uri((string)value);
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
187_mergedSettings.BaseUri = new Uri(myXmlReader.BaseURI);
System.Xaml.Tests (44)
System\Xaml\Replacements\TypeUriConverterTests.cs (41)
65yield return new object[] { "", new Uri("", UriKind.Relative) }; 66yield return new object[] { "http://google.com", new Uri("http://google.com", UriKind.Absolute) }; 67yield return new object[] { "/path", new Uri("/path", UriKind.Relative) }; 68yield return new object[] { "c:\\dir\\file", new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute) }; 69yield return new object[] { "my:scheme/path?query", new Uri("my:scheme/path?query", UriKind.RelativeOrAbsolute) }; 71yield return new object[] { new Uri("", UriKind.Relative), new Uri("", UriKind.Relative) }; 72yield return new object[] { new Uri("http://google.com", UriKind.Absolute), new Uri("http://google.com", UriKind.Absolute) }; 73yield return new object[] { new Uri("/path", UriKind.Relative), new Uri("/path", UriKind.Relative) }; 74yield return new object[] { new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute), new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute) }; 75yield return new object[] { new Uri("my:scheme/path?query", UriKind.Absolute), new Uri("my:scheme/path?query", UriKind.Absolute) }; 76yield return new object[] { new Uri("my:scheme/path?query", UriKind.RelativeOrAbsolute), new Uri("my:scheme/path?query", UriKind.RelativeOrAbsolute) }; 112var uri = new Uri("http://google.com"); 119yield return new object[] { new Uri("", UriKind.Relative), new Uri("", UriKind.Relative) }; 120yield return new object[] { new Uri("http://google.com", UriKind.Absolute), new Uri("http://google.com", UriKind.Absolute) }; 121yield return new object[] { new Uri("/path", UriKind.Relative), new Uri("/path", UriKind.Relative) }; 122yield return new object[] { new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute), new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute) }; 123yield return new object[] { new Uri("my:scheme/path?query", UriKind.Absolute), new Uri("my:scheme/path?query", UriKind.Absolute) }; 124yield return new object[] { new Uri("my:scheme/path?query", UriKind.RelativeOrAbsolute), new Uri("my:scheme/path?query", UriKind.Absolute) }; 137yield return new object[] { new Uri("", UriKind.Relative), UriKind.Relative }; 138yield return new object[] { new Uri("http://google.com", UriKind.Absolute), UriKind.Absolute }; 139yield return new object[] { new Uri("/path", UriKind.Relative), UriKind.Relative }; 140yield return new object[] { new Uri("c:\\dir\\file", UriKind.RelativeOrAbsolute), UriKind.RelativeOrAbsolute }; 141yield return new object[] { new Uri("my:scheme/path?query", UriKind.Absolute), UriKind.Absolute }; 142yield return new object[] { new Uri("my:scheme/path?query", UriKind.RelativeOrAbsolute), UriKind.Absolute }; 171Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new Uri("http://google.com"), destinationType)); 178Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new Uri("http://google.com"), null!)); 188yield return new object?[] { new Uri("http://google.com", UriKind.Absolute), true }; 189yield return new object?[] { new Uri("/path", UriKind.RelativeOrAbsolute), true }; 190yield return new object?[] { new Uri("path", UriKind.RelativeOrAbsolute), true };
System\Xaml\XamlObjectWriterSettingsTests.cs (1)
50SourceBamlUri = new Uri("http://google.com"),
System\Xaml\XamlReaderSettingsTests.cs (1)
33BaseUri = new Uri("http://google.com"),
System\Xaml\XamlXmlReaderSettingsTests.cs (1)
37BaseUri = new Uri("http://google.com"),
Templates.Blazor.Tests (5)
BlazorTemplateTest.cs (1)
173await page.GotoAsync(new Uri(page.Url).GetLeftPart(UriPartial.Authority));
BlazorWebTemplateTest.cs (1)
85var request = new HttpRequestMessage(HttpMethod.Get, new Uri(aspNetProcess.ListeningUri, "/_framework/blazor.boot.json"));
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
210return new Uri(listeningUrlString, UriKind.Absolute); 255RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance); 266new Uri(ListeningUri, requestUrl));
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
210return new Uri(listeningUrlString, UriKind.Absolute); 255RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance); 266new Uri(ListeningUri, requestUrl));
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
210return new Uri(listeningUrlString, UriKind.Absolute); 255RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance); 266new Uri(ListeningUri, requestUrl));
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
210return new Uri(listeningUrlString, UriKind.Absolute); 255RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance); 266new Uri(ListeningUri, requestUrl));
Templates.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
210return new Uri(listeningUrlString, UriKind.Absolute); 255RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance); 266new Uri(ListeningUri, requestUrl));
TestPassApp (1)
CommonControl2.cs (1)
17webBrowser1.Url = new Uri($"file://{page}", UriKind.Absolute);
WaitFor.Frontend (1)
Program.cs (1)
9builder.Services.AddHttpClient<ApiClient>(c => c.BaseAddress = new("http://api"));
WebSocketSample (1)
Program.cs (1)
28await ws.ConnectAsync(new Uri(url), CancellationToken.None);
WindowsBase.Tests (12)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (10)
29Assert.Equal(new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), manager.SignatureOrigin); 254Assert.Null(manager.GetSignature(new Uri("http://microsoft.com"))); 281Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts); 288Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative), new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts); 302manager.RemoveSignature(new Uri("https://microsoft.com")); 308manager.RemoveSignature(new Uri("https://microsoft.com"));
System\Security\RightsManagement\PublishLicenseTests.cs (1)
94Assert.Equal(new Uri("http://ed-drm-red3/_wmcs/licensing"), license.UseLicenseAcquisitionUrl);
System\Security\RightsManagement\UnsignedPublishLicenseTests.cs (1)
104yield return new object?[] { new Uri("https://google.com") };
4811 references to Uri
Aspire.Azure.AI.OpenAI (9)
AspireConfigurableOpenAIExtensions.cs (3)
76Uri? serviceUri = null; 84if (connectionBuilder.TryGetValue(ConnectionStringEndpoint, out var endpoint) && endpoint != null && Uri.TryCreate(endpoint.ToString(), UriKind.Absolute, out var endpointUri))
AzureOpenAISettings.cs (6)
23/// Gets or sets a <see cref="Uri"/> referencing the Azure OpenAI endpoint. 30public Uri? Endpoint { get; set; } 92if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 103if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureAIOpenAIExtensionsTests.cs (1)
87var uri = new Uri("https://aspireopenaitests.openai.azure.com/");
Aspire.Azure.Data.Tables (4)
AzureDataTablesSettings.cs (4)
23/// A <see cref="Uri"/> referencing the table service account. 29public Uri? ServiceUri { get; set; } 56if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Azure.Messaging.WebPubSub (3)
AzureMessagingWebPubSubSettings.cs (3)
30public Uri? Endpoint { get; set; } 62if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Azure.Search.Documents (6)
AzureSearchSettings.cs (6)
20/// Gets or sets a <see cref="Uri"/> referencing the Azure AI Search endpoint. 27public Uri? Endpoint { get; set; } 60if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 71if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.Azure.Search.Documents.Tests (1)
AspireAzureSearchExtensionsTests.cs (1)
50var searchEndpoint = new Uri("https://aspireazuresearchtests.search.windows.net/");
Aspire.Azure.Security.KeyVault (5)
AzureSecurityKeyVaultSettings.cs (5)
16/// A <see cref="Uri"/> to the vault on which the client operates. Appears as "DNS Name" in the Azure portal. 17/// If you have a secret <see cref="Uri"/>, use <see cref="KeyVaultSecretIdentifier"/> to parse the <see cref="KeyVaultSecretIdentifier.VaultUri"/> and other information. 20public Uri? VaultUri { get; set; } 46Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Azure.Security.KeyVault.Tests (1)
AspireKeyVaultExtensionsTests.cs (1)
22var vaultUri = new Uri(ConformanceTests.VaultUri);
Aspire.Azure.Storage.Blobs (4)
AzureStorageBlobsSettings.cs (4)
23/// A <see cref="Uri"/> referencing the blob service. 30public Uri? ServiceUri { get; set; } 57if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Azure.Storage.Queues (4)
AzureStorageQueuesSettings.cs (4)
23/// A <see cref="Uri"/> referencing the queue service. 30public Uri? ServiceUri { get; set; } 57if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Dashboard (38)
Components\Layout\DesktopNavMenu.razor.cs (2)
55if (Uri.TryCreate(location, UriKind.Absolute, out var result))
Configuration\DashboardOptions.cs (3)
26private Uri? _parsedUrl; 34public Uri? GetUri() => _parsedUrl; 42if (!Uri.TryCreate(Url, UriKind.Absolute, out _parsedUrl))
DashboardWebApplication.cs (3)
876return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + BindingAddress.Host.ToLowerInvariant() + ":" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 883return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + "localhost:" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 886return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + EndPoint.ToString();
Model\BrowserLinkOutgoingPeerResolver.cs (2)
42if (Uri.TryCreate(url, UriKind.Absolute, out var uri) && string.Equals(uri.Host, "localhost", StringComparisons.UrlHost))
Model\DebugSessionHelpers.cs (2)
13public static HttpClient CreateHttpClient(Uri debugSessionUri, string token, X509Certificate2? cert, Func<HttpClientHandler, HttpMessageHandler>? createHandler) 49[NotNullWhen(true)] out Uri? debugSessionUri,
Model\ResourceGraph\ResourceGraphMapper.cs (2)
79if (Uri.TryCreate(text, UriKind.Absolute, out var uri))
Model\ResourceOutgoingPeerResolver.cs (2)
85var url1 = urls1[i].Url; 86var url2 = urls2[i].Url;
Model\ResourceViewModel.cs (2)
318public Uri Url { get; } 323public UrlViewModel(string? endpointName, Uri url, bool isInternal, bool isInactive, UrlDisplayPropertiesViewModel displayProperties)
Model\TargetLocationInterceptor.cs (2)
16var uri = new Uri(originalTargetLocation, UriKind.RelativeOrAbsolute); 22var targetBaseUri = new Uri(uri.GetLeftPart(UriPartial.Authority));
ResourceService\DashboardClient.cs (1)
94var address = _dashboardOptions.ResourceServiceClient.GetUri()!;
ResourceService\Partials.cs (2)
94let parsedUri = Uri.TryCreate(u.FullUrl, UriKind.Absolute, out var uri) ? uri : null
src\Shared\IConfigurationExtensions.cs (6)
96/// Parses a configuration value into a <see cref="Uri"/> object. 104public static Uri? GetUri(this IConfiguration configuration, string key, Uri? defaultValue = null) 126/// Parses a configuration value's semicolon-delimited value into an array of <see cref="Uri"/> objects. 134public static Uri[]? GetUris(this IConfiguration configuration, string key, Uri? defaultValue = null)
src\Shared\LoggingHelpers.cs (1)
18if (StringUtils.TryGetUriFromDelimitedString(dashboardUrls, ";", out var firstDashboardUrl))
src\Shared\StringUtils.cs (2)
10public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri) 14&& Uri.TryCreate(splitInput[0], UriKind.Absolute, out uri))
Telemetry\DashboardTelemetrySender.cs (1)
117if (DebugSessionHelpers.HasDebugSession(_options.Value.DebugSession, out var certificate, out var debugSessionUri, out var token))
Utils\DashboardUrls.cs (5)
38url += $"/resource/{Uri.EscapeDataString(resource)}"; 49url += $"/resource/{Uri.EscapeDataString(resource)}"; 77url += $"/resource/{Uri.EscapeDataString(resource)}"; 107url += $"/resource/{Uri.EscapeDataString(resource)}"; 122var url = $"/{TracesBasePath}/detail/{Uri.EscapeDataString(traceId)}";
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (1)
81Uri? loadRedirect = null;
Pages\StructuredLogsTests.cs (3)
37var uri = navigationManager.ToAbsoluteUri(DashboardUrls.StructuredLogsUrl(traceId: "123", spanId: "456")); 77var uri = navigationManager.ToAbsoluteUri(DashboardUrls.StructuredLogsUrl(filters: serializedFilter)); 115var uri = navigationManager.ToAbsoluteUri(DashboardUrls.StructuredLogsUrl(filters: serializedFilter));
Aspire.Dashboard.Tests (14)
Integration\FrontendBrowserTokenAuthTests.cs (5)
180var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 187var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 194var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 206var uri = new Uri((string)GetValue(w.State, "DashboardLoginUrl")!, UriKind.Absolute); 236var uri = new Uri((string)GetValue(loginLinkLog.State, "DashboardLoginUrl")!, UriKind.Absolute);
Integration\FrontendOpenIdConnectAuthTests.cs (1)
44var redirectedTo = response.Headers.Location;
Integration\Playwright\BrowserTokenAuthenticationTests.cs (2)
40var uri = new Uri(response!.Url); 66var uri = new Uri(response!.Url);
Integration\StartupTests.cs (6)
605var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 612var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 619var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 685var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 694var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 701var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!);
Aspire.Elastic.Clients.Elasticsearch (5)
ElasticClientsElasticsearchSettings.cs (5)
42public Uri? Endpoint { get; set; } 56if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 67if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.Hosting (29)
Backchannel\AppHostRpcTarget.cs (1)
112if (!StringUtils.TryGetUriFromDelimitedString(dashboardOptions.Value.DashboardUrl, ";", out var dashboardUri))
Dashboard\DashboardLifecycleHook.cs (2)
153if (StringUtils.TryGetUriFromDelimitedString(dashboardOptions.Value.DashboardUrl, ";", out var firstDashboardUrl)) 306if (!StringUtils.TryGetUriFromDelimitedString(options.DashboardUrl, ";", out var firstDashboardUrl))
Dashboard\DashboardServiceHost.cs (1)
136var uri = configuration.GetUri(ResourceServiceUrlVariableName);
Dashboard\TransportOptionsValidator.cs (6)
30if (!Uri.TryCreate(firstApplicationUrl, UriKind.Absolute, out var parsedFirstApplicationUrl)) 64if (!Uri.TryCreate(resourceServiceEndpointUrl, UriKind.Absolute, out var parsedResourceServiceEndpointUrl)) 80if (!Uri.TryCreate(value, UriKind.Absolute, out var parsedUri))
Dcp\DcpKubernetesClient.cs (1)
167_parameters.Add($"{key}={Uri.EscapeDataString(val)}");
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
34var uri = new Uri(originalUrlSnapshot.Url);
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
22public string RewriteUrl(Uri uri)
ProjectResourceBuilderExtensions.cs (3)
463if (Uri.TryCreate(launchProfile.LaunchUrl, UriKind.RelativeOrAbsolute, out var launchUri)) 484var baseUri = new Uri(url.Url);
ResourceBuilderExtensions.cs (4)
404public static IResourceBuilder<TDestination> WithReference<TDestination>(this IResourceBuilder<TDestination> builder, string name, Uri uri) 1275Uri? uri = null; 1278var baseUri = new Uri(endpoint.Url, UriKind.Absolute); 1652var uri = new UriBuilder(endpoint.Url) { Path = path }.Uri;
src\Shared\IConfigurationExtensions.cs (6)
96/// Parses a configuration value into a <see cref="Uri"/> object. 104public static Uri? GetUri(this IConfiguration configuration, string key, Uri? defaultValue = null) 126/// Parses a configuration value's semicolon-delimited value into an array of <see cref="Uri"/> objects. 134public static Uri[]? GetUris(this IConfiguration configuration, string key, Uri? defaultValue = null)
src\Shared\LoggingHelpers.cs (1)
18if (StringUtils.TryGetUriFromDelimitedString(dashboardUrls, ";", out var firstDashboardUrl))
src\Shared\StringUtils.cs (2)
10public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri) 14&& Uri.TryCreate(splitInput[0], UriKind.Absolute, out uri))
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
528var encodedPath = Uri.EscapeDataString(path); 534$"{PortalDeploymentOverviewUrl}/{Uri.EscapeDataString(deploymentId.ToString())}";
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
434secret.KeyVaultUri = new BicepValue<Uri>(((BicepExpression?)argValue)!);
Aspire.Hosting.Azure.CosmosDB (7)
AzureCosmosDBExtensions.cs (2)
147if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
src\Shared\Cosmos\CosmosUtils.cs (5)
39Uri? accountEndpoint; 40if (Uri.TryCreate(connectionString, UriKind.Absolute, out accountEndpoint)) 66Uri.TryCreate(accountEndpointValue.ToString(), UriKind.Absolute, out accountEndpoint)) 77public CosmosConnectionInfo(Uri? accountEndpoint, string? connectionString, string? databaseName = null, string? containerName = null) 87public Uri? AccountEndpoint { get; }
Aspire.Hosting.Azure.Storage (2)
AzureStorageExtensions.cs (2)
161if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri))
Aspire.Hosting.Qdrant (5)
QdrantBuilderExtensions.cs (5)
161Uri? endpoint = null; 164if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 175if (connectionBuilder.TryGetValue("Endpoint", out var endpointValue) && Uri.TryCreate(endpointValue.ToString(), UriKind.Absolute, out var serviceUri))
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (1)
111public Uri GetEndpoint(string resourceName, string? endpointName = default)
DistributedApplicationHostingTestingExtensions.cs (1)
67public static Uri GetEndpoint(this DistributedApplication app, string resourceName, string? endpointName = default)
Aspire.Hosting.Testing.Tests (4)
DistributedApplicationHttpClientExtensionsForTests.cs (1)
14var baseUri = app.GetEndpoint(resourceName, endpointName);
TestingBuilderTests.cs (2)
64var serviceAHttpEndpoint = app.GetEndpoint("servicea", "http"); 137var workerEndpoint = app.GetEndpoint("myworker1", "myendpoint1");
TestingFactoryTests.cs (1)
23var workerEndpoint = _app.GetEndpoint("myworker1", "myendpoint1");
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (3)
371var uri = app.GetEndpoint(testProgram.ServiceBBuilder.Resource.Name, "http"); 984var httpEndPoint = app.GetEndpoint(testProgram.ServiceABuilder.Resource.Name, endpointName: "http"); 1002var httpsEndpoint = app.GetEndpoint(testProgram.ServiceABuilder.Resource.Name, endpointName: "https");
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (1)
14var baseUri = app.GetEndpoint(resourceName, endpointName);
Aspire.Microsoft.Azure.Cosmos (7)
MicrosoftAzureCosmosSettings.cs (2)
37/// A <see cref="Uri"/> referencing the Azure Cosmos DB Endpoint. 44public Uri? AccountEndpoint { get; set; }
src\Shared\Cosmos\CosmosUtils.cs (5)
39Uri? accountEndpoint; 40if (Uri.TryCreate(connectionString, UriKind.Absolute, out accountEndpoint)) 66Uri.TryCreate(accountEndpointValue.ToString(), UriKind.Absolute, out accountEndpoint)) 77public CosmosConnectionInfo(Uri? accountEndpoint, string? connectionString, string? databaseName = null, string? containerName = null) 87public Uri? AccountEndpoint { get; }
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
182var uriHostNameType = Uri.CheckHostName(serverHostName);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (7)
EntityFrameworkCoreCosmosSettings.cs (2)
24/// A <see cref="Uri"/> referencing the Azure Cosmos DB Endpoint. 31public Uri? AccountEndpoint { get; set; }
src\Shared\Cosmos\CosmosUtils.cs (5)
39Uri? accountEndpoint; 40if (Uri.TryCreate(connectionString, UriKind.Absolute, out accountEndpoint)) 66Uri.TryCreate(accountEndpointValue.ToString(), UriKind.Absolute, out accountEndpoint)) 77public CosmosConnectionInfo(Uri? accountEndpoint, string? connectionString, string? databaseName = null, string? containerName = null) 87public Uri? AccountEndpoint { get; }
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
182var uriHostNameType = Uri.CheckHostName(serverHostName);
Aspire.Milvus.Client (5)
MilvusClientSettings.cs (5)
20public Uri? Endpoint { get; set; } 42if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 53if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.OpenAI (4)
OpenAISettings.cs (4)
20/// Gets or sets a <see cref="Uri"/> referencing the OpenAI REST API endpoint. 23public Uri? Endpoint { get; set; } 82if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.OpenAI.Tests (1)
AspireOpenAIExtensionsTests.cs (1)
50var uri = new Uri("https://api.openai.com/");
Aspire.Qdrant.Client (5)
QdrantClientSettings.cs (5)
19public Uri? Endpoint { get; set; } 44if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri)) 55if (connectionBuilder.ContainsKey(ConnectionStringEndpoint) && Uri.TryCreate(connectionBuilder[ConnectionStringEndpoint].ToString(), UriKind.Absolute, out var serviceUri))
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
231private static void AddRabbitMQTags(Activity? activity, Uri address, string? operation = null)
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQExtensionsTests.cs (1)
197var uri = new Uri(expectedUri);
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQExtensionsTests.cs (1)
197var uri = new Uri(expectedUri);
Aspire.Templates.Tests (1)
StarterTemplateRunTestsBase.cs (1)
77var uri = new UriBuilder(url) { Path = "weatherforecast" }.Uri;
AuthSamples.FunctionalTests (3)
HttpClientExtensions.cs (2)
41var target = (Uri)submit.Target;
TestAssert.cs (1)
67public static Uri IsRedirect(HttpResponseMessage responseMessage)
AutobahnTestApp (1)
Program.cs (1)
54var uri = new Uri(urls);
BasicTestApp (2)
AuthTest\ServerAuthenticationStateProvider.cs (1)
24var uri = new Uri(_httpClient.BaseAddress, "/subdir/api/User");
Program.cs (1)
64Uri uri = null;
Binding.UDS.IntegrationTests (1)
UDSBindingTests.cs (1)
78var uri = new Uri("net.uds://" + UDS.GetUDSFilePath());
BuildActionTelemetryTable (8)
Program.cs (3)
94var currentDirectory = new Uri(Environment.CurrentDirectory + "\\"); 101static string GetRelativePath(string path, Uri baseUri) 106var relativePath = baseUri.MakeRelativeUri(new Uri(rootedPath));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
255internal static Uri? GetValidHelpLinkUri(this DiagnosticDescriptor descriptor) 256=> Uri.TryCreate(descriptor.HelpLinkUri, UriKind.Absolute, out var uri) && 257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
BuildBoss (2)
ProjectCheckerUtil.cs (1)
140if (!Uri.TryCreate(internalsVisibleTo.WorkItem, UriKind.Absolute, out _))
SharedUtil.cs (1)
20internal static Uri MSBuildNamespaceUri { get; } = new Uri(MSBuildNamespaceUriRaw);
Client.ClientBase.IntegrationTests (1)
ClientBaseTests.4.1.0.cs (1)
62Uri uri = new Uri(Endpoints.HttpBaseAddress_Basic_Text);
ClientSample (2)
HubSample.cs (1)
30var uri = baseUrl == null ? new Uri("net.tcp://127.0.0.1:9001") : new Uri(baseUrl);
Tcp\TcpHubConnectionBuilderExtensions.cs (1)
18public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, Uri uri)
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
83Uri = compilation.GetBestTypeByMetadataName(typeof(Uri));
ConfigurationSchemaGenerator.Tests (3)
GeneratorTests.cs (1)
454MetadataReference.CreateFromFile(typeof(Uri).Assembly.Location),
VariousTypes.cs (2)
56/// A value of type <see cref="Uri"/>. 58public Uri? PropertyOfUri { get; set; }
dotnet-openapi (3)
Commands\BaseCommand.cs (3)
142return Uri.TryCreate(file, UriKind.Absolute, out var _) && file.StartsWith("http", StringComparison.Ordinal); 382var uri = new Uri(url);
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
80Uri serviceUri; 83if (Uri.TryCreate(path, UriKind.Absolute, out serviceUri) && !serviceUri.IsFile)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (2)
166Uri nsUri = null; 167if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out nsUri))
dotnet-svcutil-lib (503)
CmdCredentialsProvider.cs (6)
23public NetworkCredential GetCredentials(Uri serviceUri, WebException webException) 129public X509Certificate GetCertificate(Uri serviceUri) 141private X509Certificate2 SelectCertificateFromCollection(X509Certificate2Collection selectedCerts, Uri serviceUri) 181private Uri _serviceUri; 183public void BeforeServerCertificateValidation(Uri serviceUri) 194public void AfterServerCertificateValidation(Uri serviceUri)
CodeDomFixup\MethodCreationHelper.cs (3)
600new CodeObjectCreateExpression(typeof(Uri), 804new CodeObjectCreateExpression(typeof(Uri), 2150typeof(Uri),
CommandProcessorOptions.cs (2)
148if (PathHelper.IsFile(cmdOptions.Inputs[0], Directory.GetCurrentDirectory(), out var fileUri) && 733if (PathHelper.IsFile(this.Inputs[idx], Directory.GetCurrentDirectory(), out Uri metadataUri))
FrameworkFork\Microsoft.Xml\Xml\Core\IDtdParserAdapter.cs (1)
22Uri BaseUri { get; }
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (1)
457internal XmlReader CreateReader(Stream input, Uri baseUri, string baseUriString, XmlParserContext inputContext)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (14)
132public Uri inputbaseUri; 608Uri baseUri = uriResolver.ResolveUri(null, uriStr); 700internal XmlTextReaderImpl(Stream stream, byte[] bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr, 2431internal Uri DtdParserProxy_BaseUri 2885private void InitStreamInput(Uri baseUri, Stream stream, Encoding encoding) 2891private void InitStreamInput(Uri baseUri, string baseUriStr, Stream stream, Encoding encoding) 2896private void InitStreamInput(Uri baseUri, string baseUriStr, Stream stream, byte[] bytes, int byteCount, Encoding encoding) 2989private void InitTextReaderInput(string baseUriStr, Uri baseUri, TextReader input) 8034private void PushExternalEntityOrSubset(string publicId, string systemId, Uri baseUri, string entityName) 8036Uri uri; 8091private bool OpenAndPush(Uri uri) 8135Uri entityBaseUri = null; 9623private bool UriEqual(Uri uri1, string uri1Str, string uri2Str, XmlResolver resolver) 9633Uri uri2 = resolver.ResolveUri(null, uri2Str);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (2)
55internal Uri baseUri; 196Uri IDtdParserAdapter.BaseUri
FrameworkFork\Microsoft.Xml\Xml\IApplicationResourceStreamResolver.cs (1)
20Stream GetApplicationResourceStream(Uri relativeUri);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (13)
129private Dictionary<Uri, PreloadedData> _mappings; 171public XmlPreloadedResolver(XmlResolver fallbackResolver, XmlKnownDtds preloadedDtds, IEqualityComparer<Uri> uriComparer) 174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer); 191public override Uri ResolveUri(Uri baseUri, string relativeUri) 224public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) 266public override bool SupportsType(Uri absoluteUri, Type type) 286public void Add(Uri uri, byte[] value) 299public void Add(Uri uri, byte[] value, int offset, int count) 325public void Add(Uri uri, string value) 338public IEnumerable<Uri> PreloadedUris 347public void Remove(Uri uri) 359private void Add(Uri uri, PreloadedData data)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
19public override Task<Object> GetEntityAsync(Uri absoluteUri,
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
21public override Object GetEntity(Uri uri, string role, Type typeOfObjectToReturn)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (2)
23private Uri _baseUri; 104public Uri BaseUri
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (1)
21internal Uri chameleonLocation;
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (5)
2627private static readonly Type s_atomicValueType = typeof(Uri); 2628private static readonly Type s_listValueType = typeof(Uri[]); 2667return ((Uri)value1).Equals((Uri)value2) ? 0 : -1; 2679Uri uri;
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (7)
268Uri baseUri = readerAdapter.BaseUri; 327Uri baseUriOb = _readerAdapter.BaseUri; 518Uri baseUri = _readerAdapter.BaseUri; 3519Uri tmp = _readerAdapter.BaseUri; 3538Uri baseUri = _readerAdapter.BaseUri; 3544Uri baseUri = _readerAdapter.BaseUri; 3550Uri baseUri = _readerAdapter.BaseUri;
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
1435if (value.Equals(((Uri)enumeration[i]).OriginalString)) 1463Uri uri;
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
999if (name == "Uri") return typeof(Uri);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (4)
288Uri includeLocation = null; 306Uri ruri = null; 2155private Uri ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location) 2164private object GetSchemaEntity(Uri ruri)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (5)
146Uri includeLocation = null; 181Uri subUri = null; 224Uri ruri = ResolveSchemaLocationUri(schema, schemaLocation); 1809private Uri ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location) 1821private Stream GetSchemaEntity(Uri ruri)
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
526Uri _baseUri = _xmlResolver.ResolveUri(null, _reader.BaseURI); 530Uri ruri = _xmlResolver.ResolveUri(_baseUri, uri.Substring(x_schema.Length));
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
342Uri ruri = this.XmlResolver.ResolveUri(BaseUri, url);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (2)
65private Uri _baseUri; 525internal Uri BaseUri
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaExternal.cs (2)
19private Uri _baseUri; 58internal Uri BaseUri
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (6)
331Uri tempSchemaUri = tempResolver.ResolveUri(null, schemaUri); 374Uri schemaUri = new Uri(schemaDocument.BaseURI, UriKind.RelativeOrAbsolute); 998internal XmlSchema FindSchemaByNSAndUrl(Uri schemaUri, string ns, DictionaryEntry[] locationsTable) 1267Uri baseUri; 1397internal bool IsSchemaLoaded(Uri schemaUri, string targetNamespace, out XmlSchema schema) 1438internal bool GetSchemaByUri(Uri schemaUri, out XmlSchema schema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (3)
123private Uri _sourceUri; 285public Uri SourceUri 1867Uri ruri = _xmlResolver.ResolveUri(_sourceUri, url);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (6)
370protected static readonly Type UriType = typeof(Uri); 756protected static string AnyUriToString(Uri value) 2069if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return AnyUriToString((Uri)value); 2205if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return ((Uri)value); 2656if (IsDerivedFrom(sourceType, UriType)) return AnyUriToString((Uri)value); 3531if (itemTypeDst == UriType) return ToArray<Uri>(value, nsResolver);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
588Uri ruri = this.XmlResolver.ResolveUri(BaseUri, url);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (1)
150public int Add(XmlSchema schema, Uri baseUri)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
1517internal static Uri ToUri(string s) 1527Uri uri; 1528if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out uri)) 1535internal static Exception TryToUri(string s, out Uri result) 1547if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out result))
FrameworkFork\Microsoft.Xml\Xml\XmlNullResolver.cs (1)
18public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (5)
30public abstract Object GetEntity(Uri absoluteUri, 42public virtual Uri ResolveUri(Uri baseUri, string relativeUri) 46Uri uri = new Uri(relativeUri, UriKind.RelativeOrAbsolute); 78public virtual bool SupportsType(Uri absoluteUri, Type type)
FrameworkFork\Microsoft.Xml\Xml\XmlResolverAsync.cs (1)
14public virtual Task<Object> GetEntityAsync(Uri absoluteUri,
FrameworkFork\Microsoft.Xml\Xml\XmlUrlResolver.cs (3)
45public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) 53public override Uri ResolveUri(Uri baseUri, string relativeUri)
FrameworkFork\Microsoft.Xml\Xml\XmlXapResolver.cs (1)
25public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
1423Uri uri = null; 1425if (Uri.TryCreate(dataContractNamespace, UriKind.RelativeOrAbsolute, out uri))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
922else if (type == typeof(Uri)) 1801Uri uri; 1802if (Uri.TryCreate(dataContractNs, UriKind.RelativeOrAbsolute, out uri))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (3)
236s_typeOfUri = typeof(Uri); 993private static Uri s_dataContractXsdBaseNamespaceUri; 994internal static Uri DataContractXsdBaseNamespaceUri
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (2)
797public UriDataContract() : base(typeof(Uri), DictionaryGlobals.UriLocalName, DictionaryGlobals.SchemaNamespace) 806writer.WriteUri((Uri)obj);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (3)
361internal virtual void WriteUri(XmlWriterDelegator xmlWriter, Uri value) 369internal virtual void WriteUri(XmlWriterDelegator xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns) 373WriteNull(xmlWriter, typeof(Uri), true/*isMemberTypeSerializable*/, name, ns);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
123internal override void WriteUri(XmlWriterDelegator xmlWriter, Uri value) 133internal override void WriteUri(XmlWriterDelegator xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns) 137WriteNull(xmlWriter, typeof(Uri), true/*isMemberTypeSerializable*/, name, ns);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
570internal Uri ReadElementContentAsUri()
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (2)
361WriteUri((Uri)value); 631internal void WriteUri(Uri value)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (1)
159public static Claim CreateUriClaim(Uri uri)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (2)
542public virtual TChannel CreateChannel(EndpointAddress address, Uri via) 647public static TChannel CreateChannel(Binding binding, EndpointAddress endpointAddress, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Addressing.cs (15)
348private Uri _to; 353protected ToHeader(Uri to, AddressingVersion version) 380public Uri To 385public static ToHeader Create(Uri toUri, XmlDictionaryString dictionaryTo, AddressingVersion addressingVersion) 404public static ToHeader Create(Uri to, AddressingVersion addressingVersion) 429public static Uri ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version) 434public static Uri ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version, UriCache uriCache) 456Uri to = ReadHeaderValue(reader, version, uriCache); 495public DictionaryToHeader(Uri to, XmlDictionaryString dictionaryTo, AddressingVersion version) 513public FullToHeader(Uri to, string actor, bool mustUnderstand, bool relay, AddressingVersion version) 746internal static readonly Uri ReplyRelationshipType = new Uri(Addressing10Strings.ReplyRelationship); 769public virtual Uri RelationshipType 783public static RelatesToHeader Create(UniqueId messageId, AddressingVersion addressingVersion, Uri relationshipType) 806public static void ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version, out Uri relationshipType, out UniqueId messageId) 831Uri relationship;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressingVersion.cs (4)
18private Uri _anonymousUri; 19private Uri _noneUri; 145internal Uri AnonymousUri 150internal Uri NoneUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (2)
15private Uri _listenUriBaseAddress; 57public Uri ListenUriBaseAddress
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (2)
296public IConnection Connect(Uri uri, TimeSpan timeout) 301public async Task<IConnection> ConnectAsync(Uri uri, TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelFactoryBase.cs (3)
115public TChannel CreateChannel(EndpointAddress address, Uri via) 126private TChannel InternalCreateChannel(EndpointAddress address, Uri via) 147protected abstract TChannel OnCreateChannel(EndpointAddress address, Uri via);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketFactory.cs (1)
23public abstract Task<WebSocket> CreateWebSocketAsync(Uri address, WebHeaderCollection headers, ICredentials credentials, WebSocketTransportSettings settings, TimeoutHelper timeoutHelper);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
29public ClientWebSocketTransportDuplexSessionChannel(HttpChannelFactory<IDuplexSessionChannel> channelFactory, ClientWebSocketFactory connectionFactory, EndpointAddress remoteAddresss, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (2)
18private Uri _clientBaseAddress; 31public Uri ClientBaseAddress
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
38IConnection Connect(Uri uri, TimeSpan timeout); 39Task<IConnection> ConnectAsync(Uri uri, TimeSpan timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (1)
199protected override TChannel OnCreateChannel(EndpointAddress address, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (2)
50protected abstract TKey GetPoolKey(EndpointAddress address, Uri via); 200public TItem TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, out TKey key)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolHelper.cs (2)
17private Uri _via; 32public ConnectionPoolHelper(ConnectionPool connectionPool, IConnectionInitiator connectionInitiator, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContextBindingElement.cs (3)
43public ContextBindingElement(ProtectionLevel protectionLevel, ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress) 49public ContextBindingElement(ProtectionLevel protectionLevel, ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress, bool contextManagementEnabled) 67public Uri ClientCallbackAddress
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (1)
16public override async Task<WebSocket> CreateWebSocketAsync(Uri address, WebHeaderCollection headers, ICredentials credentials,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DnsCache.cs (1)
75public static async Task<IPAddress[]> ResolveAsync(Uri uri)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (7)
21EndpointAddress localAddress, Uri localVia, EndpointAddress remoteAddresss, Uri via, bool exposeConnectionProperty) 28EndpointAddress remoteAddresss, Uri via, bool exposeConnectionProperty) 183EndpointAddress remoteAddresss, Uri via, IConnectionInitiator connectionInitiator, ConnectionPool connectionPool, 447Uri via, string contentType, TimeSpan timeout) 489Uri via, string contentType, ref TimeoutHelper timeoutHelper) 603public static bool ValidatePreambleResponse(byte[] buffer, int count, ClientFramingDecoder decoder, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (2)
207private Uri _via; 234public Uri ValueAsUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (18)
351internal Exception CreateToMustEqualViaException(Uri to, Uri via) 363EndpointAddress target, Uri via, ChannelParameterCollection channelParameters) 397protected virtual void ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) 410protected override TChannel OnCreateChannel(EndpointAddress remoteAddress, Uri via) 423protected virtual TChannel OnCreateChannelCore(EndpointAddress remoteAddress, Uri via) 590internal HttpRequestMessage GetHttpRequestMessage(Uri via) 592Uri httpRequestUri = via; 604private void ApplyManualAddressing(ref EndpointAddress to, ref Uri via, Message message) 608Uri toHeader = message.Headers.To; 646private void CreateAndOpenTokenProvidersCore(EndpointAddress to, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout, out SecurityTokenProviderContainer tokenProvider) 652internal void CreateAndOpenTokenProviders(EndpointAddress to, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout, out SecurityTokenProviderContainer tokenProvider) 685public HttpClientRequestChannel(HttpChannelFactory<IRequestChannel> factory, EndpointAddress to, Uri via, bool manualAddressing) 816internal virtual Task<HttpClient> GetHttpClientAsync(EndpointAddress to, Uri via, TimeoutHelper timeoutHelper) 821protected async Task<HttpClient> GetHttpClientAsync(EndpointAddress to, Uri via, SecurityTokenContainer clientCertificateToken, TimeoutHelper timeoutHelper) 850internal HttpRequestMessage GetHttpRequestMessage(Uri via) 877private Uri _via; 1231var requestUri = _httpRequestMessage.RequestUri;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (6)
67protected override void ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) 80protected override TChannel OnCreateChannelCore(EndpointAddress address, Uri via) 121internal SecurityTokenProvider CreateAndOpenCertificateTokenProvider(EndpointAddress target, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout) 134EndpointAddress to, Uri via, ChannelParameterCollection channelParameters, ref TimeoutHelper timeoutHelper) 243public HttpsClientRequestChannel(HttpsChannelFactory<IRequestChannel> factory, EndpointAddress to, Uri via, bool manualAddressing) 316internal override async Task<HttpClient> GetHttpClientAsync(EndpointAddress to, Uri via, TimeoutHelper timeoutHelper)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IChannelFactory.cs (1)
18TChannel CreateChannel(EndpointAddress to, Uri via);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IChannelListener.cs (1)
9Uri Uri { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IOutputChannel.cs (1)
13Uri Via { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IRequestChannel.cs (1)
12Uri Via { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LayeredChannelFactory.cs (1)
194public Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (7)
2040public Uri CreateUri(string uriString) 2042Uri uri = Get(uriString); 2051private Uri Get(string key) 2061private void Set(string key, Uri value) 2079private Uri _value; 2081public Entry(string key, Uri value) 2092public Uri Value
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (1)
57private Uri _to;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (7)
293public Uri To 705private int FindRelatesTo(Uri relationshipType, out UniqueId messageId) 713Uri tempRelationship; 987internal UniqueId GetRelatesTo(Uri relationshipType) 997private void GetRelatesToValues(int index, out Uri relationshipType, out UniqueId messageId) 1484internal void SetRelatesTo(Uri relationshipType, UniqueId messageId) 1504private void SetRelatesTo(Uri relationshipType, RelatesToHeader relatesToHeader)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
17private Uri _via; 264public Uri Via 668Via = (Uri)value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OutputChannel.cs (1)
22public abstract Uri Via { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (2)
13private Uri _url; 28public Uri Url
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (3)
18private Uri _via; 23protected RequestChannel(ChannelManagerBase channelFactory, EndpointAddress to, Uri via, bool manualAddressing) 55public Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
275public Uri ListenUri 380public Uri Via 591Uri localUri = localAddress.Uri;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (9)
309public virtual ServiceChannel CreateServiceChannel(EndpointAddress address, Uri via) 331public TChannel CreateChannel<TChannel>(EndpointAddress address, Uri via) 394protected abstract IChannelBinder CreateInnerChannelBinder(EndpointAddress address, Uri via); 488protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) 507protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) 527protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) 548protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) 577protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) 603protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
635Uri IClientChannel.Via 710Uri IOutputChannel.Via 800Uri IRequestChannel.Via 805Uri IServiceChannel.ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (5)
435public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException) 482private static async Task<IPAddress[]> GetIPAddressesAsync(Uri uri) 512private static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, IPAddress[] addresses, int invalidAddressCount, 535public IConnection Connect(Uri uri, TimeSpan timeout) 587public async Task<IConnection> ConnectAsync(Uri uri, TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
223public override StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via) 452EndpointAddress remoteAddress, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\StreamSecurityUpgradeInitiatorBase.cs (3)
16private Uri _via; 22protected StreamSecurityUpgradeInitiatorBase(string upgradeString, EndpointAddress remoteAddress, Uri via) 37protected Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\StreamUpgradeProvider.cs (1)
46public abstract StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TcpConnectionPool.cs (1)
35protected override string GetPoolKey(EndpointAddress address, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (1)
168public void ValidateScheme(Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
26private Uri _localVia; 33Uri localVia, 35Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportOutputChannel.cs (4)
17private Uri _via; 21protected TransportOutputChannel(ChannelManagerBase channelManager, EndpointAddress to, Uri via, bool manualAddressing, MessageVersion messageVersion) 31Uri toUri; 84public override Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (14)
125internal static SecurityTokenRequirement CreateSspiTokenRequirement(string transportScheme, Uri listenUri) 135internal static SecurityTokenRequirement CreateSspiTokenRequirement(EndpointAddress target, Uri via, string transportScheme) 147SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme, AuthenticationSchemes authenticationScheme, ChannelParameterCollection channelParameters) 164SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme, 184SecurityTokenManager tokenManager, EndpointAddress target, Uri via, 207SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme, ChannelParameterCollection channelParameters) 261SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme, AuthenticationSchemes authenticationScheme, 278public static Uri GetListenUri(Uri baseAddress, string relativeAddress) 280Uri fullUri = baseAddress; 300EndpointAddress target, Uri via, string transportScheme) 312private static void FixIpv6Hostname(UriBuilder uriBuilder, Uri originalUri) 326public static bool AddIdentityMapping(Uri via, EndpointAddress target) 333public static void RemoveIdentityMapping(Uri via, EndpointAddress target, bool validateState)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
49internal static bool IsWebSocketUri(Uri uri) 56internal static Uri NormalizeHttpSchemeWithWsScheme(Uri uri)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
30public WebSocketTransportDuplexSessionChannel(HttpChannelFactory<IDuplexSessionChannel> channelFactory, EndpointAddress remoteAddresss, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (3)
34private Uri _listenUri; 122public override StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via) 282WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
593Uri IClientChannel.Via 761Uri IOutputChannel.Via 796Uri IRequestChannel.Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
43private static Type s_uriType = typeof(Uri);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (3)
51private Uri _listenUri; 54public ListenUriInfo(Uri listenUri, ListenUriMode listenUriMode) 60public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (20)
39private Uri _ctorUri = null; 50public MetadataExchangeClient(Uri address, MetadataExchangeClientMode mode) 187private bool IsHttpOrHttps(Uri address) 208private void Validate(Uri address, MetadataExchangeClientMode mode) 238public IAsyncResult BeginGetMetadata(Uri address, MetadataExchangeClientMode mode, AsyncCallback callback, object asyncState) 283public Task<MetadataSet> GetMetadataAsync(Uri address, MetadataExchangeClientMode mode) 304public Task<MetadataSet> GetMetadataAsync(EndpointAddress address, Uri via) 329public MetadataSet GetMetadata(Uri address, MetadataExchangeClientMode mode) 356public MetadataSet GetMetadata(EndpointAddress address, Uri via) 421protected internal virtual HttpWebRequest GetWebRequest(Uri location, string dialect, string identifier) 431internal static void TraceSendRequest(Uri address) 585private Uri CreateUri(string baseUri, string relativeUri) 701private Uri _location; 702private Uri _responseLocation; 704internal MetadataLocationRetriever(Uri location, MetadataExchangeClient resolver) 709internal MetadataLocationRetriever(Uri location, MetadataExchangeClient resolver, string dialect, string identifier) 717internal static void ValidateLocation(Uri location) 912private Uri _via; 919public MetadataReferenceRetriever(EndpointAddress address, Uri via, MetadataExchangeClient resolver) 929private MetadataReferenceRetriever(EndpointAddress address, Uri via, MetadataExchangeClient resolver, string dialect, string identifier)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataLocation.cs (2)
31Uri uri; 32if (!Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out uri))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (4)
21private Uri _listenUri; 118public Uri ListenUri 171internal Uri UnresolvedAddress 177internal Uri UnresolvedListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpointCollection.cs (1)
101public ServiceEndpoint Find(Uri address)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceMetadataExtension.cs (8)
194internal DynamicAddressUpdateWriter(Uri listenUri, string requestHost, int requestPort, 227Uri uri; 238else if (Uri.TryCreate(text, UriKind.Absolute, out uri)) 240Uri newUri = UpdateUri(uri); 249public void UpdateUri(ref Uri uri, bool updateBaseAddressOnly = false) 251Uri newUri = UpdateUri(uri, updateBaseAddressOnly); 258private Uri UpdateUri(Uri uri, bool updateBaseAddressOnly = false)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (5)
31if (Uri.IsWellFormedUriString(path, UriKind.Absolute) || path == String.Empty) 155Uri uri; 156if (!Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri)) 162Uri uri; 163if (!Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (1)
41public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ClientRuntime.cs (2)
64private Uri _via; 184public Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (5)
24private Uri _listenUri; 41internal DuplexChannelBinder(IDuplexChannel channel, IRequestReplyCorrelator correlator, Uri listenUri) 47internal DuplexChannelBinder(IDuplexSessionChannel channel, IRequestReplyCorrelator correlator, Uri listenUri) 122public Uri ListenUri 1068public Uri Via
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcher.cs (1)
18private Uri _listenUri;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IChannelBinder.cs (1)
13Uri ListenUri { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InputChannelBinder.cs (3)
16private Uri _listenUri; 18internal InputChannelBinder(IInputChannel channel, Uri listenUri) 39public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OutputChannelBinder.cs (1)
37public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (3)
16private Uri _listenUri; 18internal ReplyChannelBinder(IReplyChannel channel, Uri listenUri) 39public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\RequestChannelBinder.cs (1)
34public Uri ListenUri
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (4)
202public override TChannel CreateChannel(EndpointAddress address, Uri via) 207public virtual TChannel CreateChannel(InstanceContext callbackInstance, EndpointAddress address, Uri via) 274public static TChannel CreateChannel(object callbackObject, Binding binding, EndpointAddress endpointAddress, Uri via) 295public static TChannel CreateChannel(InstanceContext callbackInstance, Binding binding, EndpointAddress endpointAddress, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (33)
16private static Uri s_anonymousUri; 17private static Uri s_noneUri; 75private Uri _uri; 86private EndpointAddress(AddressingVersion version, Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlBuffer buffer, int metadataSection, int extensionSection, int pspSection) 98Uri u = new Uri(uri); 103public EndpointAddress(Uri uri, params AddressHeader[] addressHeaders) 108public EndpointAddress(Uri uri, EndpointIdentity identity, params AddressHeader[] addressHeaders) 118public EndpointAddress(Uri uri, EndpointIdentity identity, AddressHeaderCollection headers) 128internal EndpointAddress(Uri newUri, EndpointAddress oldEndpointAddress) 133internal EndpointAddress(Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlDictionaryReader metadataReader, XmlDictionaryReader extensionReader, XmlDictionaryReader pspReader) 163public EndpointAddress(Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlDictionaryReader metadataReader, XmlDictionaryReader extensionReader) 168private void Init(Uri uri, EndpointIdentity identity, AddressHeader[] headers) 180private void Init(Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlBuffer buffer, int metadataSection, int extensionSection, int pspSection) 185private void Init(AddressingVersion version, Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlBuffer buffer, int metadataSection, int extensionSection, int pspSection) 229public static Uri AnonymousUri 239public static Uri NoneUri 294public Uri Uri 307Uri uri = this.Uri; 344internal static bool UriEquals(Uri u1, Uri u2, bool ignoreCase, bool includeHostInComparison) 349internal static bool UriEquals(Uri u1, Uri u2, bool ignoreCase, bool includeHostInComparison, bool includePortInComparison) 395internal static int UriGetHashCode(Uri uri, bool includeHostInComparison) 400internal static int UriGetHashCode(Uri uri, bool includeHostInComparison, bool includePortInComparison) 433Uri thisTo = this.Uri; 434Uri otherTo = endpointAddress.Uri; 662Uri uri; 747private static bool ReadContentsFrom200408(XmlDictionaryReader reader, out Uri uri, out AddressHeaderCollection headers, out EndpointIdentity identity, out XmlBuffer buffer, out int metadataSection, out int extensionSection, out int pspSection) 897if (!Uri.TryCreate(address, UriKind.Absolute, out uri)) 903private static bool ReadContentsFrom10(XmlDictionaryReader reader, out Uri uri, out AddressHeaderCollection headers, out EndpointIdentity identity, out XmlBuffer buffer, out int metadataSection, out int extensionSection) 964if (!Uri.TryCreate(address, UriKind.Absolute, out uri)) 1262private Uri _uri; 1294public Uri Uri
FrameworkFork\System.ServiceModel\System\ServiceModel\IClientChannel.cs (1)
19Uri Via { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\IServiceChannel.cs (1)
9Uri ListenUri { get; }
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpContextBinding.cs (1)
35public Uri ClientCallbackAddress
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (4)
33private static void AdjustAddress(ref EndpointAddress reference, Uri via) 42internal bool TryGetIdentity(EndpointAddress reference, Uri via, out EndpointIdentity identity) 48internal void EnsureOutgoingIdentity(EndpointAddress serviceReference, Uri via, AuthorizationContext authorizationContext) 184Uri toAddress = reference.Uri;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (6)
113private Uri _listenUri; 116private Uri _privacyNoticeUri; 292public Uri PrivacyNoticeUri 583public Uri ListenUri 693public SecurityProtocol CreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, bool isReturnLegSecurityRequired, TimeSpan timeout) 733protected abstract SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (2)
31public Uri Via 35return GetPropertyOrDefault<Uri>(ViaProperty, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (2)
15public Uri ListenUri 19return GetPropertyOrDefault<Uri>(ListenUriProperty, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2831private static readonly Uri s_selfIssuerUri = new Uri(WSIdentityNamespace + "/issuer/self");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustFeb2005.cs (1)
266public IRequestChannel CreateChannel(EndpointAddress address, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (7)
20private Dictionary<Uri, X509Certificate2> _scopedCertificates; 26_scopedCertificates = new Dictionary<Uri, X509Certificate2>(); 38_scopedCertificates = new Dictionary<Uri, X509Certificate2>(); 39foreach (Uri uri in other.ScopedCertificates.Keys) 59public Dictionary<Uri, X509Certificate2> ScopedCertificates 107public void SetScopedCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName, Uri targetService) 116public void SetScopedCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue, Uri targetService)
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (6)
9public class UriSchemeKeyedCollection : SynchronizedKeyedCollection<string, Uri> 16public UriSchemeKeyedCollection(params Uri[] addresses) 27protected override string GetKeyForItem(Uri item) 32protected override void InsertItem(int index, Uri item) 41protected override void SetItem(int index, Uri item) 52internal static void ValidateBaseAddress(Uri uri, string argumentName)
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpBinding.cs (2)
26private Uri _privacyNoticeAt; 65public Uri PrivacyNoticeAt
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpContextBinding.cs (1)
43public Uri ClientCallbackAddress
Metadata\IClientCertificateProvider.cs (1)
12X509Certificate GetCertificate(Uri serviceUri);
Metadata\IHttpCredentialsProvider.cs (1)
12NetworkCredential GetCredentials(Uri serviceUri, WebException webException);
Metadata\IServerCertificateValidationProvider.cs (2)
11void BeforeServerCertificateValidation(Uri serviceUri); 13void AfterServerCertificateValidation(Uri serviceUri);
Metadata\MetadaExchangeResolver.cs (3)
171private async Task<bool> ResolveMetadataAsync(Uri serviceUri, MetadataExchangeClientMode metadataExchangeMode, bool captureException, CancellationToken cancellationToken) 299private bool RequiresAuthentication(Exception exception, Uri serviceUri, out bool isAuthenticationError) 342internal protected override HttpWebRequest GetWebRequest(Uri location, string dialect, string identifier)
Metadata\MetadataDocumentLoader.cs (29)
52public Uri MetadataSourceUrl { get; private set; } 57private List<Uri> metadataSourceFiles { get; set; } = new List<Uri>(); 58public IEnumerable<Uri> MetadataSourceFiles { get { return this.metadataSourceFiles; } } 95if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 137if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 188foreach (var fileUri in this.MetadataSourceFiles) 212if (CanLoad(uri, baseUrl, basePath, out Uri serviceUri)) 250public static bool CanLoad(string uri, out Uri serviceUri) 255public static bool CanLoad(string uri, string baseUrl, string basePath, out Uri serviceUri) 269if (Uri.TryCreate(uri, UriKind.Absolute, out serviceUri) || 270isUrl && Uri.TryCreate(baseUrl, UriKind.Absolute, out Uri baseUri) && Uri.TryCreate(baseUri, uri, out serviceUri) || 271!isUrl && Uri.TryCreate(Path.Combine(basePath, uri), UriKind.Absolute, out serviceUri)) 376if (TryGetSchemaUriFromSchemaImport(schemaLocation, baseUrl, basePath, specNamespace, fileExtension, out Uri schemaUri)) 467private bool TryGetSchemaUriFromSchemaImport(string schemaLocation, string baseUrl, string basePath, string specNamespace, string extension, out Uri schemaUri) 480if (Uri.TryCreate(schemaLocation, UriKind.Absolute, out schemaUri)) 482if (TryGetExistingSchemaFile(schemaUri, schemaLocation, basePath, specNamespace, extension, out Uri schemaFile)) 490if (Uri.TryCreate(Path.Combine(basePath, schemaLocation), UriKind.Absolute, out Uri schemaFile)) 498if (schemaUri == null && Uri.TryCreate(baseUrl, UriKind.Absolute, out Uri baseUri)) 501Uri.TryCreate(baseUri, schemaLocation, out schemaUri); 518private bool TryGetExistingSchemaFile(Uri schemaUri, string schemaLocation, string basePath, string specNamespace, string extension, out Uri schemaFile) 557Uri.TryCreate(fullFileName, UriKind.Absolute, out schemaFile); 563private async Task<Stream> DownloadSchemaImportAsync(Uri schemaUri, CancellationToken cancellationToken) 706var metadataUri = metadataSourceFiles[0];
Metadata\MetadataDocumentSaver.cs (3)
141if (MetadataFileNameManager.TryCreateUri(location, out Uri locationUri) && MetadataFileNameManager.TryResolveFiles(locationUri.LocalPath, out var files)) 302Uri.TryCreate(location, UriKind.Absolute, out Uri uri);
Metadata\MetadataFileNameManager.cs (11)
104if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out Uri nsUri)) 198public static bool TryCreateUri(string filePath1, out Uri fileUri) 200if (Uri.TryCreate(filePath1, UriKind.Absolute, out fileUri) || Uri.TryCreate(filePath1, UriKind.Relative, out fileUri)) 210Uri uri1, uri2; 211return Uri.TryCreate(filePath1, UriKind.Absolute, out uri1) && Uri.TryCreate(filePath2, UriKind.Absolute, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.AbsoluteUri, uri2.AbsoluteUri) == 0 || 212Uri.TryCreate(filePath1, UriKind.Relative, out uri1) && Uri.TryCreate(filePath2, UriKind.Relative, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.ToString(), uri2.ToString()) == 0; 225var baseUri = new Uri(baseUrl, UriKind.RelativeOrAbsolute);
Metadata\ServiceDescriptor.cs (2)
61public Uri MetadataUrl { get { return this.metadataDocumentLoader.MetadataSourceUrl; } } 63public IEnumerable<Uri> MetadataFiles { get { return this.metadataDocumentLoader.MetadataSourceFiles; } }
OutputPathHelper.cs (2)
116if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out Uri nsUri))
Shared\Options\ApplicationOptions.cs (3)
43public ListValue<Uri> Inputs { get { return GetValue<ListValue<Uri>>(InputsKey); } } 56new ListValueOption<Uri>(InputsKey),
Shared\Options\OptionValueParser.cs (3)
50else if (valueType == typeof(Uri)) 52value = CreateValue<Uri>(() => new Uri(stringValue, UriKind.RelativeOrAbsolute), option, stringValue); 108else if (value is Uri uri)
Shared\Options\UpdateOptions.cs (3)
97var input = this.Inputs[idx]; 115var input = this.Inputs[idx]; 117if (!input.IsAbsoluteUri && PathHelper.IsFile(input, optionsFileDirectory.FullName, out var fileUri))
Shared\Utilities\PathHelper.cs (5)
48internal static bool IsFile(string input, string basePath, out Uri fileUri) 61if (!isUrl && (Uri.TryCreate(Path.Combine(basePath, input), UriKind.Absolute, out var uri)) && uri.Scheme == "file") 74internal static bool IsFile(Uri uri, string basePath, out Uri fileUri)
ToolMexException.cs (3)
13private Uri _serviceUri; 16internal Uri ServiceUri { get { return _serviceUri; } } 18internal ToolMexException(ToolInputException wsMexException, Uri serviceUri)
Extensibility.MessageInterceptor.IntegrationTests (4)
InterceptingChannelFactory.cs (3)
83protected override TChannel OnCreateChannel(EndpointAddress to, Uri via) 132public Uri Via 247public Uri Via
InterceptingDuplexChannel.cs (1)
280public Uri Via
GenerateDocumentationAndConfigFiles (2)
Program.cs (2)
665if (!Uri.TryCreate(helpLink, UriKind.Absolute, out var uri))
GenerateRulesMissingDocumentation (2)
Program.cs (2)
108if (!Uri.TryCreate(helpLink, UriKind.Absolute, out var uri))
HtmlGenerationWebSite (1)
Models\Product.cs (1)
29public Uri HomePage
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (3)
130Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketNotUpgradable"); 150Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketUpgradeFails"); 167private async Task SendHttp10Request(NetworkStream stream, Uri uri)
IIS.Tests (1)
Utilities\TestServer.cs (1)
51private Uri BaseUri => new Uri(_protocol + "://localhost:" + _currentPort);
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (3)
130Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketNotUpgradable"); 150Uri uri = new Uri(Fixture.DeploymentResult.ApplicationBaseUri + "WebSocketUpgradeFails"); 167private async Task SendHttp10Request(NetworkStream stream, Uri uri)
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
481private static Uri BuildBaseUri(string protocol)
InMemory.FunctionalTests (5)
RequestTests.cs (1)
245var requestTarget = new Uri(requestUrl, UriKind.Absolute);
TestTransport\InMemoryHttpClientSlim.cs (4)
32public async Task<string> GetStringAsync(Uri requestUri, bool validateCertificate = true) 48internal static string GetHost(Uri requestUri) 71public async Task<string> PostAsync(Uri requestUri, HttpContent content, bool validateCertificate = true) 120private static async Task<Stream> GetStream(Stream rawStream, Uri requestUri, bool validateCertificate)
Interop.FunctionalTests (4)
HttpClientHttp2InteropTests.cs (2)
1633var url = host.MakeUrl(Uri.UriSchemeHttps); 1678var url = host.MakeUrl(Uri.UriSchemeHttps);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
28public static IEnumerable<Uri> GetUris(this IHost host)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
24public static IEnumerable<Uri> GetUris(this IWebHost host)
Microsoft.AspNetCore.Authentication (2)
AuthenticationHandler.cs (2)
106get => Request.Scheme + Uri.SchemeDelimiter + Request.Host + Request.PathBase + Request.Path + Request.QueryString; 197=> Request.Scheme + Uri.SchemeDelimiter + Request.Host + OriginalPathBase + targetPath;
Microsoft.AspNetCore.Authentication.Cookies (1)
PostConfigureCookieAuthenticationOptions.cs (1)
38options.Cookie.Name = CookieAuthenticationDefaults.CookiePrefix + Uri.EscapeDataString(name);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
278if (!Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute)) 524if (!Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute))
Microsoft.AspNetCore.Authentication.Test (19)
CertificateTests.cs (1)
791Uri baseAddress = null,
CookieTests.cs (11)
101var location = transaction.Response.Headers.Location; 1179var location = transaction.Response.Headers.Location; 1193var location = transaction.Response.Headers.Location; 1254var location = transaction.Response.Headers.Location; 1391var location = transaction.Response.Headers.Location; 1439var location = transaction.Response.Headers.Location; 1463var location = transaction.Response.Headers.Location; 1488var location = transaction.Response.Headers.Location; 1630var location = transaction.Response.Headers.Location; 1793private Task<IHost> CreateHost(Action<CookieAuthenticationOptions> configureOptions, Func<HttpContext, Task> testpath = null, Uri baseAddress = null, bool claimsTransform = false) 1807private static async Task<IHost> CreateHostWithServices(Action<IServiceCollection> configureServices, Func<HttpContext, Task> testpath = null, Uri baseAddress = null)
FacebookTests.cs (1)
435var locationUri = transaction.Response.Headers.Location;
GoogleTests.cs (2)
56var location = transaction.Response.Headers.Location; 1068var locationUri = transaction.Response.Headers.Location;
MicrosoftAccountTests.cs (1)
335var locationUri = transaction.Response.Headers.Location;
OpenIdConnect\TestSettings.cs (3)
125public IDictionary<string, string> ValidateChallengeRedirect(Uri redirectUri, params string[] parametersToValidate) => 128public IDictionary<string, string> ValidateSignoutRedirect(Uri redirectUri, params string[] parametersToValidate) => 131private IDictionary<string, string> ValidateRedirectCore(Uri redirectUri, OpenIdConnectRequestType requestType, string[] parametersToValidate)
Microsoft.AspNetCore.Authentication.Twitter (13)
TwitterHandler.cs (13)
218stringBuilder.AppendFormat(CultureInfo.InvariantCulture, "{0}={1}&", Uri.EscapeDataString(signaturePart.Key), Uri.EscapeDataString(signaturePart.Value)); 226stringBuilder.Append(Uri.EscapeDataString(url)); 228stringBuilder.Append(Uri.EscapeDataString(parameterString)); 250stringBuilder.AppendFormat(CultureInfo.InvariantCulture, "{0}=\"{1}\",", authorizationPart.Key, Uri.EscapeDataString(authorizationPart.Value)); 285Token = Uri.UnescapeDataString(responseParameters["oauth_token"].ToString()), 286TokenSecret = Uri.UnescapeDataString(responseParameters["oauth_token_secret"].ToString()), 312Token = Uri.UnescapeDataString(responseParameters["oauth_token"].ToString()), 313TokenSecret = Uri.UnescapeDataString(responseParameters["oauth_token_secret"].ToString()), 314UserId = Uri.UnescapeDataString(responseParameters["user_id"].ToString()), 315ScreenName = Uri.UnescapeDataString(responseParameters["screen_name"].ToString()), 349Uri.EscapeDataString(consumerSecret), 350string.IsNullOrEmpty(tokenSecret) ? string.Empty : Uri.EscapeDataString(tokenSecret)));
Microsoft.AspNetCore.Authentication.WsFederation (5)
WsFederationHandler.cs (3)
134wsFederationMessage.Wctx = Uri.EscapeDataString(Options.StateDataFormat.Protect(properties)); 137if (!Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute)) 458if (!Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute))
WsFederationPostConfigureOptions.cs (2)
52if (!options.CallbackPath.HasValue && !string.IsNullOrEmpty(options.Wreply) && Uri.TryCreate(options.Wreply, UriKind.Absolute, out var wreply))
Microsoft.AspNetCore.Components (11)
NavigationManager.cs (4)
61private Uri? _baseUri; 255public Uri ToAbsoluteUri(string? relativeUri) 558private static bool TryGetLengthOfBaseUriPrefix(Uri baseUri, string uri, out int length) 586private static void Validate(Uri? baseUri, string uri)
NavigationManagerExtensions.cs (6)
169EncodedName = Uri.EscapeDataString(name); 198var encodedValue = Uri.EscapeDataString(formattedValue!); 243_encodedValue = Uri.EscapeDataString(formattedValue!); 610var encodedName = Uri.EscapeDataString(name); 611var encodedValue = Uri.EscapeDataString(value); 662var encodedName = Uri.EscapeDataString(name);
src\Shared\QueryStringEnumerable.cs (1)
101var success = Uri.TryUnescapeDataString(buffer, buffer, out var unescapedLength);
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Converters\UriFormDataConverter.cs (5)
9internal class UriFormDataConverter : FormDataConverter<Uri>, ISingleValueConverter<Uri> 13public bool TryConvertValue(ref FormDataReader reader, string value, out Uri result) 15if (Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out result!)) 32internal override bool TryRead(ref FormDataReader context, Type type, FormDataMapperOptions options, out Uri? result, out bool found)
FormMapping\WellKnownConverters.cs (1)
49{ typeof(Uri), new UriFormDataConverter() },
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
281if (!Uri.TryCreate(destinationUrl, UriKind.Absolute, out var absoluteUri))
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Binding\FormDataMapperTests.cs (6)
193public void CanDeserialize_Uri(string value, Uri expected) 202var result = FormDataMapper.Map<Uri>(reader, options); 210public void CanDeserialize_ComplexTypes_WithUriProperties(string value, Uri expected) 226public static TheoryData<string, Uri> UriTestData => new TheoryData<string, Uri> 2235public Uri Slug { get; set; }
Microsoft.AspNetCore.Components.Server (2)
ComponentHub.cs (2)
98!Uri.TryCreate(baseUri, UriKind.Absolute, out _) || 99!Uri.TryCreate(uri, UriKind.Absolute, out _))
Microsoft.AspNetCore.Components.Tests (1)
Routing\QueryParameterValueSupplierTest.cs (1)
316var encodedName = Uri.EscapeDataString(nameThatLooksEncoded);
Microsoft.AspNetCore.Components.WebAssembly.Server (4)
TargetPickerUi.cs (3)
367var underlyingV8Endpoint = new Uri(tabToDebug.WebSocketDebuggerUrl); 368var proxyEndpoint = new Uri(_debugProxyUrl); 369var devToolsUrlAbsolute = new Uri(_browserHost + tabToDebug.DevtoolsFrontendUrl);
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
27Uri? browserUrl = null;
Microsoft.AspNetCore.Components.WebView (9)
StaticContentProvider.cs (3)
12private readonly Uri _appBaseUri; 16public StaticContentProvider(IFileProvider fileProvider, Uri appBaseUri, string hostPageRelativePath) 25var fileUri = new Uri(requestUri);
WebViewManager.cs (6)
26private readonly Uri _appBaseUri; 44public WebViewManager(IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath) 74protected abstract void NavigateCore(Uri absoluteUri); 143protected void MessageReceived(Uri sourceUri, string message) 243private static Uri EnsureTrailingSlash(Uri uri)
Microsoft.AspNetCore.Components.WebView.Maui (9)
Extensions\UriExtensions.cs (2)
8 internal static bool IsBaseOfPage(this Uri baseUri, string? uriString) 16 var uri = new Uri(uriString!);
src\BlazorWebView\src\SharedSource\Log.cs (3)
9 public static partial void NavigatingToUri(this ILogger logger, Uri uri); 30 public static partial void NavigationEvent(this ILogger logger, Uri uri, UrlLoadingStrategy urlLoadingStrategy); 33 public static partial void LaunchExternalBrowser(this ILogger logger, Uri uri);
src\BlazorWebView\src\SharedSource\UrlLoadingEventArgs.cs (4)
14 internal static UrlLoadingEventArgs CreateWithDefaultLoadingStrategy(Uri urlToLoad, Uri appOriginUri) 23 private UrlLoadingEventArgs(Uri url, UrlLoadingStrategy urlLoadingStrategy) 32 public Uri Url { get; }
Microsoft.AspNetCore.Components.WebView.Photino (5)
BlazorWindow.cs (1)
59var appBaseUri = new Uri(new Uri(PhotinoWebViewManager.AppBaseOrigin), _pathBase);
PhotinoWebViewManager.cs (4)
14private readonly Uri _appBaseUri; 27public PhotinoWebViewManager(PhotinoWindow window, IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath) 40var messageOriginUrl = _appBaseUri; 66protected override void NavigateCore(Uri absoluteUri)
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestWebViewManager.cs (2)
10private static readonly Uri AppBaseUri = new Uri("app://testhost/"); 25protected override void NavigateCore(Uri absoluteUri)
Microsoft.AspNetCore.Components.WebView.WindowsForms (14)
src\BlazorWebView\src\SharedSource\Log.cs (3)
9 public static partial void NavigatingToUri(this ILogger logger, Uri uri); 30 public static partial void NavigationEvent(this ILogger logger, Uri uri, UrlLoadingStrategy urlLoadingStrategy); 33 public static partial void LaunchExternalBrowser(this ILogger logger, Uri uri);
src\BlazorWebView\src\SharedSource\UrlLoadingEventArgs.cs (4)
14 internal static UrlLoadingEventArgs CreateWithDefaultLoadingStrategy(Uri urlToLoad, Uri appOriginUri) 23 private UrlLoadingEventArgs(Uri url, UrlLoadingStrategy urlLoadingStrategy) 32 public Uri Url { get; }
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (7)
59 internal static readonly Uri AppOriginUri = new(AppOrigin); 183 protected override void NavigateCore(Uri absoluteUri) 345 if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) 369 if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) 376 private void LaunchUriInExternalBrowser(Uri uri)
Microsoft.AspNetCore.Components.WebView.Wpf (14)
src\BlazorWebView\src\SharedSource\Log.cs (3)
9 public static partial void NavigatingToUri(this ILogger logger, Uri uri); 30 public static partial void NavigationEvent(this ILogger logger, Uri uri, UrlLoadingStrategy urlLoadingStrategy); 33 public static partial void LaunchExternalBrowser(this ILogger logger, Uri uri);
src\BlazorWebView\src\SharedSource\UrlLoadingEventArgs.cs (4)
14 internal static UrlLoadingEventArgs CreateWithDefaultLoadingStrategy(Uri urlToLoad, Uri appOriginUri) 23 private UrlLoadingEventArgs(Uri url, UrlLoadingStrategy urlLoadingStrategy) 32 public Uri Url { get; }
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (7)
59 internal static readonly Uri AppOriginUri = new(AppOrigin); 183 protected override void NavigateCore(Uri absoluteUri) 345 if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) 369 if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) 376 private void LaunchUriInExternalBrowser(Uri uri)
Microsoft.AspNetCore.Connections.Abstractions (5)
UriEndPoint.cs (5)
10/// An <see cref="EndPoint"/> defined by a <see cref="System.Uri"/>. 17/// <param name="uri">The <see cref="System.Uri"/> defining the <see cref="EndPoint"/>.</param> 18public UriEndPoint(Uri uri) 24/// The <see cref="System.Uri"/> defining the <see cref="EndPoint"/>. 26public Uri Uri { get; }
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
101return options.CreateCookieHeader(Uri.EscapeDataString(key), Uri.EscapeDataString(value)).ToString();
Microsoft.AspNetCore.Cors (9)
Infrastructure\CorsPolicyBuilder.cs (4)
71if (Uri.TryCreate(origin, UriKind.Absolute, out var uri) && 72(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) &&
Infrastructure\CorsPolicyExtensions.cs (3)
19if (Uri.TryCreate(origin, UriKind.Absolute, out var originUri)) 30private static Uri CreateDomainUri(string origin)
Infrastructure\UriHelpers.cs (2)
8public static bool IsSubdomainOf(Uri subdomain, Uri domain)
Microsoft.AspNetCore.Cors.Test (4)
UriHelpersTests.cs (4)
10public void TestIsSubdomainOf(Uri subdomain, Uri domain) 21public void TestIsSubdomainOf_ReturnsFalse_WhenNotSubdomain(Uri subdomain, Uri domain)
Microsoft.AspNetCore.HeaderParsing (5)
CommonHeaders.cs (1)
95public static HeaderSetup<Uri> Referer => new(HeaderNames.Referer, Parsers.UriParser.Instance, cacheable: true);
Parsers\UriParser.cs (4)
10internal sealed class UriParser : HeaderParser<Uri> 14public override bool TryParse(StringValues values, [NotNullWhen(true)] out Uri? result, [NotNullWhen(false)] out string? error) 16if (values.Count != 1 || !Uri.TryCreate(values[0], UriKind.RelativeOrAbsolute, out var parsedValue))
Microsoft.AspNetCore.HeaderParsing.Tests (3)
ParserTests.cs (3)
274Assert.True(UriParser.Instance.TryParse(sv, out var result, out var error)); 284Assert.False(UriParser.Instance.TryParse(sv, out var result, out var error)); 293Assert.False(UriParser.Instance.TryParse(sv, out var result, out var error));
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostService.cs (2)
91var httpUrls = ExpandPorts(httpPorts, Uri.UriSchemeHttp); 92var httpsUrls = ExpandPorts(httpsPorts, Uri.UriSchemeHttps);
Microsoft.AspNetCore.Http (8)
BindingAddress.cs (4)
119return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant(); 123return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant() + ":" + Port.ToString(CultureInfo.InvariantCulture) + PathBase; 157var schemeDelimiterStart = address.IndexOf(Uri.SchemeDelimiter, StringComparison.Ordinal); 162var schemeDelimiterEnd = schemeDelimiterStart + Uri.SchemeDelimiter.Length;
Internal\ResponseCookies.cs (3)
34var setCookieHeaderValue = new SetCookieHeaderValue(key, Uri.EscapeDataString(value)) 63var cookie = options.CreateCookieHeader(key, Uri.EscapeDataString(value)).ToString(); 96cookies[position] = string.Concat(keyValuePair.Key, "=", Uri.EscapeDataString(keyValuePair.Value), cookieSuffix);
src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.AspNetCore.Http.Abstractions (8)
FragmentString.cs (1)
94public static FragmentString FromUriComponent(Uri uri)
HostString.cs (2)
199/// <param name="uri">The <see cref="Uri"/> to create a <see cref="HostString"/> from.</param> 201public static HostString FromUriComponent(Uri uri)
PathString.cs (4)
100if (s_validPathChars.Contains(value[i]) || (isPercentEncodedChar = Uri.IsHexEncoding(value, i))) 106buffer.Append(Uri.EscapeDataString(value.AsSpan(start, count))); 163buffer.Append(Uri.EscapeDataString(value.AsSpan(start, count))); 199public static PathString FromUriComponent(Uri uri)
QueryString.cs (1)
91public static QueryString FromUriComponent(Uri uri)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
PathStringBenchmark.cs (1)
28public string OnUriFromUriComponent(Uri testUri)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
PathStringTests.cs (3)
331var uri = new Uri($"https://localhost:5001{input}"); 352var uri = new Uri($"https://localhost:5001{input}"); 415var expected = Uri.UnescapeDataString(hexEscapedValue);
Microsoft.AspNetCore.Http.Connections.Client (50)
HttpConnection.cs (13)
52private readonly Uri _url; 99public HttpConnection(Uri url) 108public HttpConnection(Uri url, HttpTransportType transports) 119public HttpConnection(Uri url, HttpTransportType transports, ILoggerFactory? loggerFactory) 124private static HttpConnectionOptions CreateHttpOptions(Uri url, HttpTransportType transports) 306var uri = _url; 358var connectUrl = CreateConnectUrl(uri, negotiationResponse.ConnectionToken); 445private async Task<NegotiationResponse> NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken) 457Uri uri; 508private static Uri CreateConnectUrl(Uri url, string? connectionId) 518private async Task StartTransport(Uri connectUrl, HttpTransportType transportType, TransferFormat transferFormat, 715private async Task<NegotiationResponse> GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken)
HttpConnection.Log.cs (4)
33public static void StartingTransport(ILogger logger, HttpTransportType transportType, Uri url) 42private static partial void StartingTransport(ILogger logger, string transport, Uri url); 45public static partial void EstablishingConnection(ILogger logger, Uri url); 51public static partial void ErrorWithNegotiation(ILogger logger, Uri url, Exception exception);
HttpConnectionOptions.cs (1)
168public Uri? Url { get; set; }
Internal\ITransport.cs (1)
14Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default);
Internal\LoggingHttpMessageHandler.cs (2)
42public static partial void SendingHttpRequest(ILogger logger, HttpMethod requestMethod, Uri requestUrl); 45public static partial void UnsuccessfulHttpResponse(ILogger logger, HttpStatusCode statusCode, HttpMethod requestMethod, Uri requestUrl);
Internal\LongPollingTransport.cs (4)
43public async Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default) 71private async Task ProcessAsync(Uri url) 141private async Task Poll(Uri pollUrl, CancellationToken cancellationToken) 228private async Task SendDeleteRequest(Uri url)
Internal\LongPollingTransport.Log.cs (5)
41public static partial void ErrorPolling(ILogger logger, Uri pollUrl, Exception exception); 57public static partial void SendingDeleteRequest(ILogger logger, Uri pollUrl); 60public static partial void DeleteRequestAccepted(ILogger logger, Uri pollUrl); 63public static partial void ErrorSendingDeleteRequest(ILogger logger, Uri pollUrl, Exception ex); 66public static partial void ConnectionAlreadyClosedSendingDeleteRequest(ILogger logger, Uri pollUrl);
Internal\SendUtils.cs (3)
19public static async Task SendMessages(Uri sendUrl, IDuplexPipe application, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken = default) 126public static partial void SendingMessages(ILogger logger, long count, Uri url); 135public static partial void ErrorSending(ILogger logger, Uri url, Exception exception);
Internal\ServerSentEventsTransport.cs (2)
46public async Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default) 88private async Task ProcessAsync(Uri url, HttpResponseMessage response)
Internal\Utils.cs (6)
10public static Uri CreateEndPointUri(Uri url) 23public static Uri AppendPath(Uri url, string path) 34internal static Uri AppendQueryString(Uri url, string qs)
Internal\WebSocketsTransport.cs (6)
93var url = context.Uri; 287public async Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default) 300var resolvedUrl = ResolveWebSocketsUrl(url); 337private async Task ProcessSocketAsync(WebSocket socket, Uri url, bool isReconnect) 640private static Uri ResolveWebSocketsUrl(Uri url)
Internal\WebSocketsTransport.Log.cs (1)
16public static partial void StartTransport(ILogger logger, TransferFormat transferFormat, Uri webSocketUrl);
WebSocketConnectionContext.cs (2)
18public WebSocketConnectionContext(Uri uri, HttpConnectionOptions options) 27public Uri Uri { get; }
Microsoft.AspNetCore.Http.Extensions (20)
RequestHeaders.cs (3)
334public Uri? Referer 338if (Uri.TryCreate(Headers.Referer, UriKind.RelativeOrAbsolute, out var uri))
ResponseHeaders.cs (3)
169public Uri? Location 173if (Uri.TryCreate(Headers.Location, UriKind.RelativeOrAbsolute, out var uri))
src\Components\Endpoints\src\FormMapping\Converters\UriFormDataConverter.cs (5)
9internal class UriFormDataConverter : FormDataConverter<Uri>, ISingleValueConverter<Uri> 13public bool TryConvertValue(ref FormDataReader reader, string value, out Uri result) 15if (Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out result!)) 32internal override bool TryRead(ref FormDataReader context, Type type, FormDataMapperOptions options, out Uri? result, out bool found)
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
49{ typeof(Uri), new UriFormDataConverter() },
src\Shared\ParameterBindingMethodCache.cs (4)
27private static readonly MethodInfo UriTryCreateMethod = typeof(Uri).GetMethod(nameof(Uri.TryCreate), BindingFlags.Public | BindingFlags.Static, new[] { typeof(string), typeof(UriKind), typeof(Uri).MakeByRefType() })!; 122if (type == typeof(Uri))
UriHelper.cs (4)
18private static readonly string SchemeDelimiter = Uri.SchemeDelimiter; 69Uri.SchemeDelimiter.Length + 158public static string Encode(Uri uri) 243index = CopyTextToBuffer(buffer, index, Uri.SchemeDelimiter.AsSpan());
Microsoft.AspNetCore.Http.Extensions.Tests (76)
HttpResponseJsonExtensionsTests.cs (2)
48await context.Response.WriteAsJsonAsync<Uri?>(value: null); 478await context.Response.WriteAsJsonAsync(value : null, options.GetTypeInfo(typeof(Uri)));
ParameterBindingMethodCacheTests.cs (2)
47var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(typeof(Uri)); 51var call = methodFound!(Expression.Variable(typeof(Uri), "parsedValue"), Expression.Constant(UriKind.RelativeOrAbsolute)) as MethodCallExpression;
RequestDelegateFactoryTests.cs (37)
325new object[] { (Action<HttpContext, Uri[]>)Store, new[] { "https://example.org" }, new[] { new Uri("https://example.org") } }, 376new object[] { (Action<HttpContext, Uri>)Store, "https://example.org", new Uri("https://example.org") }, 398private record MyTryParseRecord(Uri Uri) 402if (!Uri.TryCreate(value, UriKind.Absolute, out var uri)) 413private record MyBindAsyncRecord(Uri Uri) 420if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 434private record struct MyNullableBindAsyncStruct(Uri Uri) 441if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 450private record struct MyBindAsyncStruct(Uri Uri) 457if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 471private record MyAwaitedBindAsyncRecord(Uri Uri) 480if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 489private record struct MyAwaitedBindAsyncStruct(Uri Uri) 498if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 507private record struct MyBothBindAsyncStruct(Uri Uri) 514if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 529private record struct MySimpleBindAsyncStruct(Uri Uri) 533if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 542private record MySimpleBindAsyncRecord(Uri Uri) 546if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 564if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 573private record MyBindAsyncFromInterfaceRecord(Uri uri) : IBindAsync<MyBindAsyncFromInterfaceRecord> 1885string uriParsing(Uri uri) => $"Uri: {uri.OriginalString}"; 1889new object?[] { (Func<Uri, string>)uriParsing, "https://example.org", "Uri: https://example.org" }, 1890new object?[] { (Func<Uri, string>)uriParsing, "https://example.org/path/to/file?name=value1&name=value2", "Uri: https://example.org/path/to/file?name=value1&name=value2" }, 1891new object?[] { (Func<Uri, string>)uriParsing, "/path/to/file?name=value1&name=value2", "Uri: /path/to/file?name=value1&name=value2" }, 1892new object?[] { (Func<Uri, string>)uriParsing, "?name=value1&name=value2", "Uri: ?name=value1&name=value2" },
RequestDelegateGenerator\SharedTypes.cs (34)
142public record MyTryParseRecord(Uri Uri) 146if (!Uri.TryCreate(value, UriKind.Absolute, out var uri)) 213public record MyBindAsyncRecord(Uri Uri) 226if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 240public record struct MyNullableBindAsyncStruct(Uri Uri) 253if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 265public record struct MyBindAsyncStruct(Uri Uri) 278if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 292public record struct MyBothBindAsyncStruct(Uri Uri) 305if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 318public record struct MySimpleBindAsyncStruct(Uri Uri) 322if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 334public record MySimpleBindAsyncRecord(Uri Uri) 338if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 359if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 374public record MyBindAsyncFromInterfaceRecord(Uri Uri) : IBindAsync<MyBindAsyncFromInterfaceRecord> 380Uri? Uri { get; set; } 392if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 403public Uri? Uri { get; set; } 413public Uri? Uri { get; init; } 426if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 437public Uri? Uri { get; init; } 450if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
ValidationsGenerator\ValidationsGeneratorTestBase.cs (1)
53MetadataReference.CreateFromFile(typeof(Uri).Assembly.Location),
Microsoft.AspNetCore.Http.Microbenchmarks (34)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (34)
142public record MyTryParseRecord(Uri Uri) 146if (!Uri.TryCreate(value, UriKind.Absolute, out var uri)) 213public record MyBindAsyncRecord(Uri Uri) 226if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 240public record struct MyNullableBindAsyncStruct(Uri Uri) 253if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 265public record struct MyBindAsyncStruct(Uri Uri) 278if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 292public record struct MyBothBindAsyncStruct(Uri Uri) 305if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 318public record struct MySimpleBindAsyncStruct(Uri Uri) 322if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 334public record MySimpleBindAsyncRecord(Uri Uri) 338if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 359if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 374public record MyBindAsyncFromInterfaceRecord(Uri Uri) : IBindAsync<MyBindAsyncFromInterfaceRecord> 380Uri? Uri { get; set; } 392if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 403public Uri? Uri { get; set; } 413public Uri? Uri { get; init; } 426if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri)) 437public Uri? Uri { get; init; } 450if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
Microsoft.AspNetCore.Http.Results (10)
Accepted.cs (1)
34internal Accepted(Uri locationUri)
AcceptedOfT.cs (1)
38internal Accepted(Uri locationUri, TValue? value)
Created.cs (1)
33internal Created(Uri? locationUri)
CreatedOfT.cs (1)
38internal Created(Uri? locationUri, TValue? value)
Results.cs (2)
860public static IResult Created(Uri? uri, object? value) 869public static IResult Created<TValue>(Uri? uri, TValue? value)
TypedResults.cs (4)
919public static Created Created(Uri? uri) 931public static Created<TValue> Created<TValue>(Uri? uri, TValue? value) 1005public static Accepted Accepted(Uri uri) 1019public static Accepted<TValue> Accepted<TValue>(Uri uri, TValue? value)
Microsoft.AspNetCore.Http.Results.Tests (13)
ResultsTests.cs (5)
630var uri = new Uri("https://example.com/entity"); 646var uri = new Uri("https://example.com/entity"); 662var uri = new Uri("https://example.com/entity"); 696var result = Results.Created(default(Uri), null) as Created; 737var result = Results.Created(default(Uri), value) as Created<object>;
TypedResultsTests.cs (8)
70var uri = new Uri("https://example.org"); 86var uri = new Uri("https://example.org"); 99Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri))); 105Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri), default(object))); 611var uri = new Uri("https://example.com/entity"); 627var uri = new Uri("https://example.com/entity"); 658var result = TypedResults.Created(default(Uri)); 686var result = TypedResults.Created(default(Uri), default(object));
Microsoft.AspNetCore.Identity.FunctionalTests (28)
AuthorizationTests.cs (1)
50var location = ResponseAssert.IsRedirect(response);
Extensions\HttpClientExtensions.cs (2)
43var target = (Uri)submit.Target;
Extensions\ResponseAssert.cs (1)
15public static Uri IsRedirect(HttpResponseMessage responseMessage)
MapIdentityApiTests.cs (1)
37private static Uri BaseAddress { get; } = new Uri("http://example.com");
Pages\Account\ExternalLogin.cs (2)
33var redirect = ResponseAssert.IsRedirect(response); 45var redirect = ResponseAssert.IsRedirect(response);
Pages\Account\ForgotPassword.cs (1)
24var goToForgotPasswordConfirmation = ResponseAssert.IsRedirect(response);
Pages\Account\Login.cs (4)
38var goToContosoLogin = ResponseAssert.IsRedirect(externalFormResponse); 66var loggedInLocation = ResponseAssert.IsRedirect(loggedIn); 89var lockedOut = ResponseAssert.IsRedirect(loginAttempt); 110var loggedInLocation = ResponseAssert.IsRedirect(loggedIn);
Pages\Account\LoginWith2fa.cs (1)
33var goToIndex = ResponseAssert.IsRedirect(response);
Pages\Account\LoginWithRecoveryCode.cs (1)
26var goToIndex = ResponseAssert.IsRedirect(response);
Pages\Account\Manage\DeleteUser.cs (1)
23var deleteLocation = ResponseAssert.IsRedirect(loggedIn);
Pages\Account\Manage\Email.cs (2)
39var goToManage = ResponseAssert.IsRedirect(response); 52var goToManage = ResponseAssert.IsRedirect(response);
Pages\Account\Manage\EnableAuthenticator.cs (1)
39var goToShowRecoveryCodes = ResponseAssert.IsRedirect(sendCodeResponse);
Pages\Account\Manage\Index.cs (1)
77var goToSetPassword = ResponseAssert.IsRedirect(response);
Pages\Account\Manage\LinkExternalLogin.cs (1)
25var goToLinkExternalLogin = ResponseAssert.IsRedirect(linkExternalLogin);
Pages\Account\Manage\ManageExternalLogin.cs (2)
26var goToLinkedExternalLogin = ResponseAssert.IsRedirect(linkedExternalLogin); 28var goToManageExternalLogin = ResponseAssert.IsRedirect(externalLoginResponse);
Pages\Account\Register.cs (3)
29var goToContosoLogin = ResponseAssert.IsRedirect(externalFormResponse); 46var registeredLocation = ResponseAssert.IsRedirect(registered); 63var registeredLocation = ResponseAssert.IsRedirect(registered);
Pages\Account\ResetPassword.cs (1)
35var goToResetPasswordConfirmation = ResponseAssert.IsRedirect(resetPasswordResponse);
Pages\Contoso\Login.cs (2)
41var goToExternalLogin = ResponseAssert.IsRedirect(contosoResponse); 45var goToIndex = ResponseAssert.IsRedirect(externalLogInResponse);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
291private async Task<TestServer> CreateServer(Action<IServiceCollection> configureServices = null, Func<HttpContext, Task> testpath = null, Uri baseAddress = null, bool testCore = false)
Microsoft.AspNetCore.Identity.Test (1)
RetryHandler.cs (1)
29var url = request.RequestUri;
Microsoft.AspNetCore.InternalTesting (5)
HttpClientSlim.cs (5)
29public static async Task<string> GetStringAsync(Uri requestUri, bool validateCertificate = true) 47internal static string GetHost(Uri requestUri) 72public static async Task<string> PostAsync(Uri requestUri, HttpContent content, bool validateCertificate = true) 150private static async Task<Stream> GetStream(Uri requestUri, bool validateCertificate) 171public static async Task<Socket> GetSocket(Uri requestUri)
Microsoft.AspNetCore.InternalTesting.Tests (2)
HttpClientSlimTest.cs (2)
57var requestUri = new Uri("http://[fe80::5d2a:d070:6fd6:1bac%7]:5003/"); 64var requestUri = new Uri("http://[fe80::5d2a:d070:6fd6:1bac%7]:80/");
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (3)
Internal\DictionaryAdapterTest.cs (3)
278var uriKey = new Uri("http://www.test.com/name"); 279var dictionary = new Dictionary<Uri, object>(); 281var dictionaryAdapter = new DictionaryAdapter<Uri, object>();
Microsoft.AspNetCore.JsonPatch.Tests (3)
Internal\DictionaryAdapterTest.cs (3)
280var uriKey = new Uri("http://www.test.com/name"); 281var dictionary = new Dictionary<Uri, object>(); 283var dictionaryAdapter = new DictionaryAdapter<Uri, object>();
Microsoft.AspNetCore.Mvc.Abstractions (4)
src\Shared\ParameterBindingMethodCache.cs (4)
27private static readonly MethodInfo UriTryCreateMethod = typeof(Uri).GetMethod(nameof(Uri.TryCreate), BindingFlags.Public | BindingFlags.Static, new[] { typeof(string), typeof(UriKind), typeof(Uri).MakeByRefType() })!; 122if (type == typeof(Uri))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
68|| underlyingType == typeof(Uri) ? type : typeof(string);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
EndpointMetadataApiDescriptionProviderTest.cs (4)
590AssertPathParameter(GetApiDescription((Uri foo) => { }, "/{foo}"), typeof(Uri)); 611AssertPathParameter(GetApiDescription((Uri? foo) => { }, "/{foo}"), typeof(Uri));
Microsoft.AspNetCore.Mvc.Core (8)
AcceptedResult.cs (1)
46public AcceptedResult(Uri locationUri, [ActionResultObjectValue] object? value)
ControllerBase.cs (3)
2062public virtual CreatedResult Created(Uri? uri, [ActionResultObjectValue] object? value) 2159public virtual AcceptedResult Accepted(Uri uri) 2193public virtual AcceptedResult Accepted(Uri uri, [ActionResultObjectValue] object? value)
CreatedResult.cs (1)
51public CreatedResult(Uri? location, object? value)
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
129modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Uri)));
Routing\UrlHelperBase.cs (2)
147builder.Append(Uri.SchemeDelimiter); 209builder.Append(Uri.SchemeDelimiter);
Microsoft.AspNetCore.Mvc.Core.Test (15)
ControllerBaseTest.cs (5)
1324var uri = new Uri("http://test/url"); 1342var result = controller.Created((Uri)null, null); 1355var uri = new Uri("/test/url", UriKind.Relative); 1534var uri = new Uri("http://test/url"); 1550var uri = new Uri("/test/url", UriKind.Relative);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
887new HashSet<Uri> 893typeof(HashSet<Uri>)
RequireHttpsAttributeTests.cs (1)
169var uri = new Uri(url);
TypeFilterAttributeTest.cs (7)
16var uri = new Uri("http://www.asp.net"); 38var uri = new Uri("http://www.asp.net"); 63var uri = new Uri("http://www.asp.net"); 85public TestFilter(string value, Uri uri) 92public Uri Uri { get; } 98private readonly Uri _uri; 100public TestFilterFactory(string value, Uri uri)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
RealServerBackedIntegrationTests.cs (1)
44var baseAddress = new Uri("http://localhost:5000");
RealServerWithSpecifiedPortBackedIntegrationTests.cs (1)
26var baseAddress = new Uri($"http://localhost:{ServerPort}");
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
BsonTempDataSerializer.cs (2)
40{ JTokenType.Uri, typeof(Uri) }, 247type.Equals(typeof(Uri));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
BsonTempDataSerializerTest.cs (3)
48{ new Dictionary<Uri, Guid>(), typeof(Uri) }, 84{ new Uri[] { new Uri("http://Foo"), new Uri("http://Bar") } },
Microsoft.AspNetCore.Mvc.Razor (2)
Infrastructure\DefaultFileVersionProvider.cs (2)
48if (Uri.TryCreate(resolvedPath, UriKind.Absolute, out var uri) && !uri.IsFile)
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
235Assert.Equal(typeof(Uri), excludeFilter.Type);
Microsoft.AspNetCore.Mvc.Testing (6)
Handlers\RedirectHandler.cs (2)
139var location = response.Headers.Location; 142if (!location.IsAbsoluteUri && response.RequestMessage.RequestUri is Uri requestUri)
WebApplicationFactory.cs (2)
39private Uri? _webHostAddress; 719public HttpClient CreateDefaultClient(Uri baseAddress, params DelegatingHandler[] handlers)
WebApplicationFactoryClientOptions.cs (2)
17internal static readonly Uri DefaultBaseAddres = new Uri("http://localhost"); 40public Uri BaseAddress { get; set; } = DefaultBaseAddres;
Microsoft.AspNetCore.OpenApi (7)
Extensions\JsonNodeSchemaExtensions.cs (1)
46[typeof(Uri)] = new() { Type = JsonSchemaType.String, Format = "uri" },
Extensions\JsonTypeInfoExtensions.cs (1)
31[typeof(Uri)] = "Uri",
Services\OpenApiConstants.cs (1)
63typeof(Uri),
src\Shared\ParameterBindingMethodCache.cs (4)
27private static readonly MethodInfo UriTryCreateMethod = typeof(Uri).GetMethod(nameof(Uri.TryCreate), BindingFlags.Public | BindingFlags.Static, new[] { typeof(string), typeof(UriKind), typeof(Uri).MakeByRefType() })!; 122if (type == typeof(Uri))
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
52MetadataReference.CreateFromFile(typeof(Uri).Assembly.Location),
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (1)
909[([FromForm] Uri id) => {}, JsonSchemaType.String, "uri"],
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
567public Uri? NullableUri { get; set; }
Microsoft.AspNetCore.Rewrite (9)
PatternSegments\UrlDecodeSegment.cs (1)
27return Uri.UnescapeDataString(pattern);
PatternSegments\UrlEncodeSegment.cs (1)
27return Uri.EscapeDataString(pattern);
RedirectRule.cs (2)
60var schemeSplit = newPath.IndexOf(Uri.SchemeDelimiter, StringComparison.Ordinal); 65schemeSplit += Uri.SchemeDelimiter.Length;
RewriteRule.cs (1)
55if (result.Contains(Uri.SchemeDelimiter, StringComparison.Ordinal))
UrlActions\RedirectAction.cs (2)
37pattern = Uri.EscapeDataString(pattern); 46if (!pattern.Contains(Uri.SchemeDelimiter, StringComparison.Ordinal) && pattern[0] != '/')
UrlActions\RewriteAction.cs (2)
58pattern = Uri.EscapeDataString(pattern); 62if (pattern.Contains(Uri.SchemeDelimiter, StringComparison.Ordinal))
Microsoft.AspNetCore.Server.HttpSys (2)
UrlPrefix.cs (2)
108var schemeDelimiterEnd = whole.IndexOf(Uri.SchemeDelimiter, StringComparison.Ordinal); 113var hostDelimiterStart = schemeDelimiterEnd + Uri.SchemeDelimiter.Length;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (17)
Listener\RequestHeaderTests.cs (1)
207var uri = new Uri(address);
Listener\RequestTests.cs (1)
174var uri = new Uri(address);
OpaqueUpgradeTests.cs (3)
328Uri uri = new Uri(address); 381Uri uri = new Uri(address); 406private byte[] BuildGetRequest(string method, Uri uri, string extraHeader)
RequestBodyTests.cs (2)
312Uri uri = new Uri(address); 333private byte[] BuildPostRequest(Uri uri)
RequestHeaderTests.cs (2)
57var uri = new Uri(address); 254var uri = new Uri(address);
RequestTests.cs (5)
374var uri = new Uri(root); 530var uri = new Uri(address); 577var uri = new Uri(address); 605var rootUri = new Uri(root); 627var uri = new Uri(address);
ResponseTests.cs (1)
255var uri = new Uri(address);
ServerTests.cs (2)
658Uri uri = new Uri(address); 679private byte[] BuildGetRequest(string method, Uri uri)
Microsoft.AspNetCore.Server.IntegrationTesting (13)
Common\DeploymentParameters.cs (1)
116public string Scheme { get; set; } = Uri.UriSchemeHttp;
Common\TestUriHelper.cs (5)
10public static Uri BuildTestUri(ServerType serverType) 15public static Uri BuildTestUri(ServerType serverType, string hint) 20return BuildTestUri(serverType, Uri.UriSchemeHttp, hint, statusMessagesEnabled); 23internal static Uri BuildTestUri(ServerType serverType, string scheme, string hint, bool statusMessagesEnabled) 52var uriHint = new Uri(hint);
Deployers\NginxDeployer.cs (3)
34var uri = string.IsNullOrEmpty(DeploymentParameters.ApplicationBaseUriHint) ? 56var redirectUri = TestUriHelper.BuildTestUri(ServerType.Nginx); 132private void SetupNginx(string redirectUri, Uri originalUri)
Deployers\SelfHostDeployer.cs (4)
58var hintUrl = TestUriHelper.BuildTestUri( 78protected async Task<(Uri url, CancellationToken hostExitToken)> StartSelfHostAsync(Uri hintUrl) 142Uri actualUrl = null;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISDeployer.cs (2)
110var uri = TestUriHelper.BuildTestUri(ServerType.IIS, DeploymentParameters.ApplicationBaseUriHint); 212public void StartIIS(Uri uri, string contentRoot)
IISExpressDeployer.cs (3)
152private async Task<(Uri url, CancellationToken hostExitToken)> StartIISExpressAsync(string contentRoot) 160var uri = TestUriHelper.BuildTestUri(ServerType.IISExpress, DeploymentParameters.ApplicationBaseUriHint); 190Uri url = null;
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\Http1Connection.cs (4)
35private Uri? _absoluteRequestTarget; 42private Uri? _parsedAbsoluteRequestTarget; 562if (!Uri.TryCreate(RawTarget, UriKind.Absolute, out var uri))
Internal\Http2\Http2Stream.cs (1)
302if (!ServerOptions.AllowAlternateSchemes || !Uri.CheckSchemeName(headerScheme))
Internal\Http3\Http3Stream.cs (1)
1043if (!ServerOptions.AllowAlternateSchemes || !Uri.CheckSchemeName(headerScheme))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
28public static IEnumerable<Uri> GetUris(this IHost host)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\QueryStringEnumerable.cs (1)
101var success = Uri.TryUnescapeDataString(buffer, buffer, out var unescapedLength);
Microsoft.AspNetCore.SignalR.Client (5)
HubConnectionBuilderHttpExtensions.cs (5)
92public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url) 105public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, Action<HttpConnectionOptions> configureHttpConnection) 118public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType transports) 132public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType transports, Action<HttpConnectionOptions> configureHttpConnection) 138private static IHubConnectionBuilder WithUrlCore(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType? transports, Action<HttpConnectionOptions>? configureHttpConnection)
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
1041var initialUri = (_endPoint as UriEndPoint)?.Uri; 1069static void SetServerTags(Activity? activity, Uri? uri) 2141public Uri? ConnectionUrl { get; }
Microsoft.AspNetCore.SignalR.Client.Tests (7)
HttpConnectionFactoryTests.cs (2)
61var url1 = new Uri("http://example.com/1"); 62var url2 = new Uri("http://example.com/2");
HubConnectionBuilderExtensionsTests.cs (2)
49var uri = new Uri("http://tempuri.org"); 65var uri = new Uri("http://tempuri.org");
LongPollingTransportTests.cs (1)
28private static readonly Uri TestUri = new Uri("http://example.com/?id=1234");
TestTransport.cs (1)
36public async Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default)
WebSocketsTransportTests.cs (1)
43public Task ConnectAsync(Uri uri, CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.SignalR.Tests (1)
EndToEndTests.cs (1)
719public Task StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken = default)
Microsoft.AspNetCore.SpaServices.Extensions (14)
AngularCli\AngularCliMiddleware.cs (3)
55private static async Task<Uri> StartAngularCliServerAsync( 88var uri = new Uri(openBrowserLine.Groups[1].Value); 97private static async Task WaitForAngularCliServerToAcceptRequests(Uri cliServerUri)
Proxying\ConditionalProxyMiddleware.cs (2)
17private readonly Task<Uri> _baseUriTask; 27Task<Uri> baseUriTask,
Proxying\SpaProxy.cs (7)
57Task<Uri> baseUriTask, 70var baseUri = await baseUriTask; 72var targetUri = new Uri((baseUriAsString.EndsWith("/", StringComparison.OrdinalIgnoreCase) ? baseUriAsString[..^1] : baseUriAsString) 129private static HttpRequestMessage CreateProxyHttpRequest(HttpContext context, Uri uri) 192private static Uri ToWebSocketScheme(Uri uri) 209private static async Task<bool> AcceptProxyWebSocketRequest(HttpContext context, Uri destinationUri, CancellationToken cancellationToken)
Proxying\SpaProxyingExtensions.cs (2)
42Uri baseUri) 58Func<Task<Uri>> baseUriTaskFactory)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
295var uri = new Uri(address);
Microsoft.AspNetCore.TestHost (4)
TestServer.cs (1)
107public Uri BaseAddress { get; set; } = new Uri("http://localhost/");
TestServerOptions.cs (1)
26public Uri BaseAddress { get; set; } = new Uri("http://localhost/");
WebSocketClient.cs (2)
52/// <param name="uri">The <see cref="Uri" /> of the endpoint.</param> 54public async Task<WebSocket> ConnectAsync(Uri uri, CancellationToken cancellationToken)
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
365var baseAddress = new Uri("http://localhost/test");
Microsoft.AspNetCore.Testing (7)
ServiceFakesHostExtensions.cs (7)
24private static readonly Func<Uri, bool> _defaultAddressFilter = static _ => true; 35public static HttpClient CreateClient(this IHost host, HttpMessageHandler? handler = null, Func<Uri, bool>? addressFilter = null) 40var uri = GetListenUris(host.Services.GetRequiredService<IServer>()).FirstOrDefault(addressFilter) 62/// <returns>A <see cref="Uri"/> instance.</returns> 63public static IEnumerable<Uri> GetListenUris(this IHost host) 68private static IEnumerable<Uri> GetListenUris(IServer server) 75return ArraySegment<Uri>.Empty;
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Autobahn\AutobahnTester.cs (2)
136Scheme = (ssl ? Uri.UriSchemeHttps : Uri.UriSchemeHttp),
Microsoft.AspNetCore.WebSockets.Tests (1)
IHostPortExtensions.cs (1)
24public static IEnumerable<Uri> GetUris(this IHost host)
Microsoft.AspNetCore.WebUtilities (3)
FormPipeReader.cs (1)
418return Uri.UnescapeDataString(decodedString);
FormReader.cs (1)
260return Uri.UnescapeDataString(result); // TODO: Replace this, it's not completely accurate.
src\Shared\QueryStringEnumerable.cs (1)
101var success = Uri.TryUnescapeDataString(buffer, buffer, out var unescapedLength);
Microsoft.Authentication.WebAssembly.Msal (4)
Models\MsalAuthenticationOptions.cs (2)
33/// It can be an absolute or base relative <see cref="Uri"/> and defaults to <c>authentication/login-callback.</c> 41/// It can be an absolute or base relative <see cref="Uri"/> and defaults to <c>authentication/logout-callback.</c>
MsalDefaultOptionsConfiguration.cs (2)
26if (redirectUri == null || !Uri.TryCreate(redirectUri, UriKind.Absolute, out _)) 34if (logoutUri == null || !Uri.TryCreate(logoutUri, UriKind.Absolute, out _))
Microsoft.Build (9)
Construction\Solution\ProjectInSolution.cs (2)
193if (!Uri.TryCreate(_relativePath, UriKind.Absolute, out Uri _))
Construction\Solution\SolutionFile.cs (2)
839if (Uri.TryCreate(proj.RelativePath, UriKind.Absolute, out Uri uri))
ElementLocation\XmlDocumentWithLocation.cs (2)
132if (Uri.TryCreate(reader.BaseURI, UriKind.RelativeOrAbsolute, out Uri uri))
Logging\TerminalLogger\TerminalLogger.cs (2)
680if (Uri.TryCreate(urlString, UriKind.Absolute, out Uri? uri))
Xml\XmlReaderExtension.cs (1)
87string uri = new UriBuilder(Uri.UriSchemeFile, string.Empty) { Path = file }.ToString();
Microsoft.Build.Tasks.Core (28)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1936AddAttribute(fileNode, URLNAME_ATTRIBUTE, Uri.EscapeDataString(settings.ApplicationFile));
BootstrapperUtil\Util.cs (1)
49var uri = new Uri(path);
DownloadFile.cs (4)
88if (!Uri.TryCreate(SourceUrl, UriKind.Absolute, out Uri uri)) 144/// <param name="uri">The parsed <see cref="Uri"/> of the request.</param> 146private async Task DownloadAsync(Uri uri, CancellationToken cancellationToken)
GetSDKReferenceFiles.cs (1)
1098var codeBase = new Uri(currentAssembly);
ManifestUtil\PathUtil.cs (10)
31Uri uri = new Uri(url); 52Uri u = new Uri(resolvedPath); 60if (Uri.UriSchemeFile.Equals(u.Scheme, StringComparison.OrdinalIgnoreCase) && 65Scheme = Uri.UriSchemeFile, 127Uri u = new Uri(path, UriKind.RelativeOrAbsolute); 185Uri u; 186if (!Uri.TryCreate(path, UriKind.Absolute, out u) || u == null) 196if (!Uri.TryCreate(path, UriKind.Absolute, out Uri u) || u == null) 222var u = new Uri(path);
ManifestUtil\SecurityUtil.cs (10)
503public static void SignFile(string certThumbprint, Uri timestampUrl, string path) 517Uri timestampUrl, 534Uri timestampUrl, 553Uri timestampUrl, 611public static void SignFile(string certPath, SecureString certPassword, Uri timestampUrl, string path) 636public static void SignFile(X509Certificate2 cert, Uri timestampUrl, string path) 645Uri timestampUrl, 767private static void SignPEFile(X509Certificate2 cert, Uri timestampUrl, string path, System.Resources.ResourceManager resources, bool useSha256) 781private static void SignPEFileInternal(X509Certificate2 cert, Uri timestampUrl, 828internal static string GetCommandLineParameters(string certThumbprint, Uri timestampUrl, string path,
ManifestUtil\XmlUtil.cs (1)
138public override Object GetEntity(Uri uri, string role, Type t)
Microsoft.Build.Tasks.UnitTests (1)
SecurityUtil_Tests.cs (1)
24Uri timestampUrl = new("http://timestamp.comodoca.com/rfc3161");
Microsoft.CodeAnalysis (5)
CommandLine\SarifErrorLogger.cs (5)
123private static readonly Uri s_fileRoot = new Uri("file:///"); 138if (Uri.TryCreate(fullPath, UriKind.Absolute, out var uri)) 155if (Uri.TryCreate(path, UriKind.Relative, out var uri))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
255internal static Uri? GetValidHelpLinkUri(this DiagnosticDescriptor descriptor) 256=> Uri.TryCreate(descriptor.HelpLinkUri, UriKind.Absolute, out var uri) && 257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
716public static XmlElementSyntax XmlSeeAlsoElement(Uri linkAddress, SyntaxList<XmlNodeSyntax> linkText)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests.cs (1)
526Uri u = new Uri("http://www.microsoft.com");
Microsoft.CodeAnalysis.EditorFeatures (9)
ExternalAccess\VSTypeScript\Api\AbstractVSTypeScriptRequestHandler.cs (1)
67internal record struct TypeScriptTextDocumentIdentifier(Uri Uri, string? ProjectId);
IntelliSense\NavigationActionFactory.cs (2)
35if (Uri.TryCreate(navigationTarget, UriKind.Absolute, out var absoluteUri))
IntelliSense\QuickInfo\QuickInfoHyperLink.cs (4)
15public QuickInfoHyperLink(Workspace workspace, Uri uri) 25public Uri Uri { get; } 34return EqualityComparer<Uri?>.Default.Equals(Uri, other?.Uri); 50public static Action CreateNavigationAction(Uri uri)
NavigateTo\DefaultNavigateToLinkService.cs (1)
24public Task<bool> TryNavigateToLinkAsync(Uri uri, CancellationToken cancellationToken)
NavigateTo\INavigateToLinkService.cs (1)
14Task<bool> TryNavigateToLinkAsync(Uri uri, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
LanguageServer\VSTypeScriptHandlerTests.cs (1)
141internal sealed record TSRequest(Uri Document, string Project);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
143System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/quickinfo/ontheflydocsview.x" +
InlineDiagnostics\InlineDiagnosticsTag.cs (2)
136var uri = hyperlink.NavigateUri; 146var helpLinkUri = _diagnostic.GetValidHelpLinkUri();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (13)
Cohost\AbstractRazorCohostDocumentRequestHandler.cs (1)
43internal record struct RazorTextDocumentIdentifier(Uri Uri, string? ProjectContextId);
Cohost\RazorCohostRequestContext.cs (1)
14internal Uri? Uri => context.TextDocument?.GetURI();
RazorLspDynamicFileInfoProvider.cs (2)
16public event EventHandler<Uri>? Updated; 18public void Update(Uri razorUri)
RazorRequestContext.cs (1)
14internal Uri? Uri => context.TextDocument?.GetURI();
RazorUri.cs (4)
12public static Uri CreateAbsoluteUri(string absolutePath) 15public static string GetDocumentFilePathFromUri(Uri uri) 18public static bool IsGeneratedDocumentUri(Uri generatedDocumentUri) 21public static string GetHintNameFromGeneratedDocumentUri(Solution solution, Uri generatedDocumentUri)
SolutionExtensions.cs (2)
12public static ImmutableArray<TextDocument> GetTextDocuments(this Solution solution, Uri documentUri) 15public static ImmutableArray<DocumentId> GetDocumentIds(this Solution solution, Uri documentUri)
TextDocumentExtensions.cs (1)
14public static Uri CreateUri(this TextDocument document)
WorkspaceExtensions.cs (1)
15public static ValueTask<TextDocument?> GetTextDocumentAsync(this Workspace workspace, Uri uri, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (12)
External\ConversionHelpers.cs (1)
16public static Uri CreateAbsoluteUri(string absolutePath)
External\IResolveCachedDataService.cs (2)
17object ToResolveData(object data, Uri uri); 18(object? data, Uri? uri) FromResolveData(object? resolveData);
External\ResolveDataConversions.cs (4)
18public static object ToResolveData(object data, Uri uri) 21public static (object? data, Uri? uri) FromResolveData(object? requestData) 28internal static object ToCachedResolveData(object data, Uri uri, ResolveDataCache resolveDataCache) 35internal static (object? data, Uri? uri) FromCachedResolveData(object? lspData, ResolveDataCache resolveDataCache)
External\XamlRequestContext.cs (2)
30public object ToCachedResolveData(object data, Uri uri) 37public (object? data, Uri? uri) FromCachedResolveData(object? lspData)
External\XamlRequestHandlerBase.cs (1)
29public abstract Uri GetTextDocumentUri(TRequest request);
External\XamlRequestHandlerFactoryBase.cs (2)
39public object ToResolveData(object data, Uri uri) 42public (object? data, Uri? uri) FromResolveData(object? lspData)
Microsoft.CodeAnalysis.Features (3)
AddImport\PackageSourceHelper.cs (2)
40if (!Uri.TryCreate(sourceUrl, UriKind.Absolute, out var uri))
PdbSourceDocument\SourceLinkMap.cs (1)
194var escapedPath = string.Join("/", path[file.Path.Length..].Split(['/', '\\']).Select(Uri.EscapeDataString));
Microsoft.CodeAnalysis.LanguageServer (5)
CustomExportAssemblyLoader.cs (3)
85var codeBaseUri = ProtocolConversions.CreateAbsoluteUri(codeBaseUriStr); 111var possibleCodeBasePath = Uri.UnescapeDataString(codeBaseUri.PathAndQuery) + Uri.UnescapeDataString(codeBaseUri.Fragment);
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (1)
41private static bool IsProjectInWorkspace(Uri workspacePath, Project project)
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationParams.cs (1)
11[property: JsonPropertyName("workspacePath"), JsonConverter(typeof(DocumentUriConverter))] Uri WorkspacePath);
Microsoft.CodeAnalysis.LanguageServer.Protocol (124)
Extensions\Extensions.cs (5)
26public static Uri GetURI(this TextDocument document) 38public static Uri GetUriForRenamedDocument(this TextDocument document) 50public static Uri CreateUriForDocumentWithoutFilePath(this TextDocument document) 65public static ImmutableArray<TextDocument> GetTextDocuments(this Solution solution, Uri documentUri) 76public static ImmutableArray<DocumentId> GetDocumentIds(this Solution solution, Uri documentUri)
Extensions\ProtocolConversions.cs (11)
184public static string GetDocumentFilePathFromUri(Uri uri) 190/// Converts an absolute local file path or an absolute URL string to <see cref="Uri"/>. 193/// The <paramref name="absolutePath"/> can't be represented as <see cref="Uri"/>. 196public static Uri CreateAbsoluteUri(string absolutePath) 214internal static Uri CreateRelativePatternBaseUri(string path) 257=> Uri.EscapeUriString(stringToEscape).Replace("#", "%23"); 379using var _ = ArrayBuilder<(Uri Uri, LSP.TextEdit TextEdit)>.GetInstance(out var uriToTextEdits); 467Uri? uri = null; 495var uri = document.GetURI(); 511static LSP.Location ConvertTextSpanWithTextToLocation(TextSpan span, SourceText text, Uri documentUri) 523public static LSP.CodeDescription? HelpLinkToCodeDescription(Uri? uri)
Extensions\SourceGeneratedDocumentUri.cs (8)
31public static Uri Create(SourceGeneratedDocumentIdentity identity) 33var hintPath = Uri.EscapeDataString(identity.HintName); 36var hintName = Uri.EscapeDataString(identity.HintName); 37var assemblyName = Uri.EscapeDataString(identity.Generator.AssemblyName); 38var assemblyVersion = Uri.EscapeDataString(identity.Generator.AssemblyVersion.ToString()); 39var typeName = Uri.EscapeDataString(identity.Generator.TypeName); 45uri += $"&{AssemblyPathParam}={Uri.EscapeDataString(identity.Generator.AssemblyPath)}"; 50public static SourceGeneratedDocumentIdentity? DeserializeIdentity(Solution solution, Uri documentUri)
Handler\AbstractRefreshQueue.cs (6)
24private AsyncBatchingWorkQueue<Uri?>? _refreshQueue; 67_refreshQueue = new AsyncBatchingWorkQueue<Uri?>( 71equalityComparer: EqualityComparer<Uri?>.Default, 84var documentUri = document.GetURI(); 98protected void EnqueueRefreshNotification(Uri? documentUri) 110ImmutableSegmentedList<Uri?> documentUris,
Handler\CodeActions\CodeActionResolveHelper.cs (1)
239Uri? uri = null;
Handler\DocumentChanges\DidOpenHandler.cs (2)
18internal class DidOpenHandler : ILspServiceNotificationHandler<LSP.DidOpenTextDocumentParams>, ITextDocumentIdentifierHandler<LSP.DidOpenTextDocumentParams, Uri> 29public Uri GetTextDocumentIdentifier(LSP.DidOpenTextDocumentParams request) => request.TextDocument.Uri;
Handler\IDocumentChangeTracker.cs (6)
19ValueTask StartTrackingAsync(Uri documentUri, SourceText initialText, string languageId, CancellationToken cancellationToken); 20void UpdateTrackedDocument(Uri documentUri, SourceText text); 21ValueTask StopTrackingAsync(Uri documentUri, CancellationToken cancellationToken); 26public ValueTask StartTrackingAsync(Uri documentUri, SourceText initialText, string languageId, CancellationToken cancellationToken) 31public ValueTask StopTrackingAsync(Uri documentUri, CancellationToken cancellationToken) 36public void UpdateTrackedDocument(Uri documentUri, SourceText text)
Handler\MapCode\MapCodeHandler.cs (3)
45using var _ = PooledDictionary<Uri, LSP.TextEdit[]>.GetInstance(out var uriToEditsMap); 50if (mappingResult is not (Uri uri, LSP.TextEdit[] textEdits)) 80async Task<(Uri, LSP.TextEdit[])?> MapCodeAsync(LSP.VSInternalMapCodeMapping codeMapping)
Handler\RequestContext.cs (7)
45private readonly ImmutableDictionary<Uri, (SourceText Text, string LanguageId)> _trackedDocuments; 179ImmutableDictionary<Uri, (SourceText Text, string LanguageId)> trackedDocuments, 307public ValueTask StartTrackingAsync(Uri uri, SourceText initialText, string languageId, CancellationToken cancellationToken) 314public void UpdateTrackedDocument(Uri uri, SourceText changedText) 317public SourceText GetTrackedDocumentSourceText(Uri documentUri) 350public ValueTask StopTrackingAsync(Uri uri, CancellationToken cancellationToken) 353public bool IsTracking(Uri documentUri)
Handler\RequestContextFactory.cs (2)
44else if (textDocumentIdentifierHandler is ITextDocumentIdentifierHandler<TRequestParam, Uri> uHandler) 46var uri = uHandler.GetTextDocumentIdentifier(requestParam);
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
65Uri? documentUri = null;
ILanguageInfoProvider.cs (1)
23bool TryGetLanguageInformation(Uri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation);
LanguageInfoProvider.cs (1)
47public bool TryGetLanguageInformation(Uri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation)
Protocol\CodeDescription.cs (1)
24public Uri Href
Protocol\ConfigurationItem.cs (1)
24public Uri? ScopeUri
Protocol\Converters\DocumentUriConverter.cs (3)
14internal sealed class DocumentUriConverter : JsonConverter<Uri> 16public override Uri Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 19public override void Write(Utf8JsonWriter writer, Uri value, JsonSerializerOptions options)
Protocol\Converters\SumConverter.cs (3)
68parameterTypeInfo == typeof(Uri) || 264if (sumValue is Uri) 299unionTypeInfo.Type == typeof(Uri) ||
Protocol\CreateFile.cs (1)
33public Uri Uri
Protocol\DeleteFile.cs (1)
33public Uri Uri
Protocol\DocumentDiagnosticReportPartialResult.cs (1)
24public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>> RelatedDocuments
Protocol\DocumentLink.cs (1)
35public Uri? Target
Protocol\FileOperations\FileCreate.cs (1)
25public Uri Uri { get; set; }
Protocol\FileOperations\FileDelete.cs (1)
25public Uri Uri { get; set; }
Protocol\FileOperations\FileEvent.cs (1)
23public Uri Uri { get; set; }
Protocol\FileOperations\FileRename.cs (2)
25public Uri OldUri { get; set; } 33public Uri NewUri { get; set; }
Protocol\FileOperations\RelativePattern.cs (1)
24public SumType<WorkspaceFolder, Uri> BaseUri { get; init; }
Protocol\InitializeParams.cs (1)
70public Uri? RootUri
Protocol\Internal\VSInternalUriPresentationParams.cs (1)
42public Uri[]? Uris
Protocol\Location.cs (2)
23public Uri Uri 57hashCode = (hashCode * -1521134295) + EqualityComparer<Uri>.Default.GetHashCode(this.Uri);
Protocol\LocationLink.cs (1)
39public Uri TargetUri { get; init; }
Protocol\Navigation\CallHierarchyItem.cs (1)
53public Uri Uri { get; init; }
Protocol\Navigation\TypeHierarchyItem.cs (1)
53public Uri Uri { get; init; }
Protocol\Notebook\NotebookCell.cs (1)
36public Uri Document { get; init; }
Protocol\Notebook\NotebookDocument.cs (1)
25public Uri Uri { get; init; }
Protocol\Notebook\NotebookDocumentFilter.cs (1)
28/// A Uri scheme (<see cref="System.Uri.Scheme"/>) like <c>file</c> or <c>untitled</c>.
Protocol\Notebook\NotebookDocumentIdentifier.cs (1)
24public Uri Uri { get; init; }
Protocol\Notebook\VersionedNotebookDocumentIdentifier.cs (1)
32public Uri Uri { get; init; }
Protocol\PreviousResultId.cs (1)
24public Uri Uri
Protocol\PublishDiagnosticParams.cs (1)
22public Uri Uri
Protocol\RelatedFullDocumentDiagnosticReport.cs (1)
32public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>>? RelatedDocuments
Protocol\RelatedUnchangedDocumentDiagnosticReport.cs (1)
32public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>>? RelatedDocuments
Protocol\RenameFile.cs (2)
33public Uri OldUri 45public Uri NewUri
Protocol\ShowDocumentParams.cs (1)
24public Uri Uri { get; init; }
Protocol\TextDocumentIdentifier.cs (1)
22public Uri Uri
Protocol\TextDocumentItem.cs (1)
22public Uri Uri
Protocol\WorkspaceFolder.cs (1)
20public Uri Uri { get; init; }
Protocol\WorkspaceFullDocumentDiagnosticReport.cs (1)
26public Uri Uri
Protocol\WorkspaceSymbolLocation.cs (1)
18public Uri Uri { get; init; }
Protocol\WorkspaceUnchangedDocumentDiagnosticReport.cs (1)
26public Uri Uri
RoslynLanguageServer.cs (2)
192Uri? uri = null; 197uri = JsonSerializer.Deserialize<Uri>(uriToken, ProtocolConversions.LspJsonSerializerOptions);
Workspaces\LspMiscellaneousFilesWorkspace.cs (4)
36/// Calls to this method and <see cref="TryRemoveMiscellaneousDocument(Uri, bool)"/> are made 39public TextDocument? AddMiscellaneousDocument(Uri uri, SourceText documentText, string languageId, ILspLogger logger) 79/// Calls to this method and <see cref="AddMiscellaneousDocument(Uri, SourceText, string, ILspLogger)"/> are made 82public void TryRemoveMiscellaneousDocument(Uri uri, bool removeFromMetadataWorkspace)
Workspaces\LspWorkspaceManager.cs (21)
48private sealed class LspUriComparer : IEqualityComparer<Uri> 51public bool Equals(Uri? x, Uri? y) 72return Uri.Equals(x, y); 76public int GetHashCode(Uri obj) 115private ImmutableDictionary<Uri, (SourceText Text, string LanguageId)> _trackedDocuments = ImmutableDictionary<Uri, (SourceText, string)>.Empty.WithComparers(LspUriComparer.Instance); 142private static async ValueTask ApplyChangeToMutatingWorkspaceAsync(Workspace workspace, Uri uri, Func<ILspWorkspace, DocumentId, ValueTask> change) 156public async ValueTask StartTrackingAsync(Uri uri, SourceText documentText, string languageId, CancellationToken cancellationToken) 174async ValueTask TryOpenDocumentsInMutatingWorkspaceAsync(Uri uri) 190public async ValueTask StopTrackingAsync(Uri uri, CancellationToken cancellationToken) 209async ValueTask TryCloseDocumentsInMutatingWorkspaceAsync(Uri uri) 234public void UpdateTrackedDocument(Uri uri, SourceText newSourceText) 247public ImmutableDictionary<Uri, (SourceText Text, string LanguageId)> GetTrackedLspText() => _trackedDocuments; 281var uri = textDocumentIdentifier.Uri; 507private async Task<bool> DoesAllTextMatchWorkspaceSolutionAsync(ImmutableDictionary<Uri, ImmutableArray<TextDocument>> documentsInWorkspace, CancellationToken cancellationToken) 539internal bool TryGetLanguageForUri(Uri uri, [NotNullWhen(true)] out string? language) 560private static ImmutableDictionary<Uri, ImmutableArray<TextDocument>> GetDocumentsForUris(ImmutableArray<Uri> trackedDocuments, Solution workspaceCurrentSolution) 562using var _ = PooledDictionary<Uri, ImmutableArray<TextDocument>>.GetInstance(out var documentsInSolution); 563foreach (var trackedDoc in trackedDocuments)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (79)
CodeActions\CodeActionResolveTests.cs (6)
196edit: GenerateRenameFileEdit(new List<(Uri, Uri)> { (documentUriBefore, documentUriAfter) })); 298var newDocumentUri = ProtocolConversions.CreateAbsoluteUri(Path.Combine(Path.GetDirectoryName(project.FilePath), "ABC.cs")); 425var newDocumentUri = ProtocolConversions.CreateAbsoluteUri( 538private static WorkspaceEdit GenerateRenameFileEdit(IList<(Uri oldUri, Uri newUri)> renameLocations)
Definitions\GoToTypeDefinitionTests.cs (1)
282private static async Task<Workspace> GetWorkspaceForDocument(TestLspServer testLspServer, Uri fileUri)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
235Uri uri, 369public Uri Uri { get; } = TextDocument.Uri;
DocumentChanges\DocumentChangesTests.cs (3)
460private static Task DidOpen(TestLspServer testLspServer, Uri uri) => testLspServer.OpenDocumentAsync(uri); 462private static async Task DidChange(TestLspServer testLspServer, Uri uri, params (int line, int column, string text)[] changes) 465private static async Task DidClose(TestLspServer testLspServer, Uri uri) => await testLspServer.CloseDocumentAsync(uri);
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (1)
102private static async Task<Solution> GetLSPSolutionAsync(TestLspServer testLspServer, Uri uri)
Formatting\FormatDocumentTests.cs (3)
319Uri uri, 334Uri uri, 342private static LSP.DocumentFormattingParams CreateDocumentFormattingParams(Uri uri, bool insertSpaces, int tabSize)
HandlerTests.cs (1)
290var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"untitled:untitledFile");
Metadata\LspMetadataAsSourceWorkspaceTests.cs (1)
123private static async Task<Workspace> GetWorkspaceForDocument(TestLspServer testLspServer, Uri fileUri)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (10)
38var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.cs"); 64var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.cs"); 102var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.cs"); 149var looseFileUri = ProtocolConversions.CreateAbsoluteUri("C:\\\ue25b\ud86d\udeac.cs"); 194var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.razor"); 227var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.cs"); 260var looseFileUri = new Uri("untitled:untitledFile"); 293var looseFileUri = new Uri("untitled:untitledFile"); 323private static async Task AssertFileInMiscWorkspaceAsync(TestLspServer testLspServer, Uri fileUri) 329private static async Task AssertFileInMainWorkspaceAsync(TestLspServer testLspServer, Uri fileUri)
Ordering\RequestOrderingTests.cs (1)
255private static async Task ExecuteDidOpen(TestLspServer testLspServer, Uri documentUri)
ProjectContext\GetTextDocumentWithContextHandlerTests.cs (2)
100internal static async Task<LSP.VSProjectContextList?> RunGetProjectContext(TestLspServer testLspServer, Uri uri) 106private static LSP.VSGetProjectContextsParams CreateGetProjectContextParams(Uri uri)
ProtocolConversionsTests.cs (9)
47var uri = ProtocolConversions.CreateAbsoluteUri(filePath); 74var uri = ProtocolConversions.CreateAbsoluteUri(filePath); 88var uri = ProtocolConversions.CreateAbsoluteUri(filePath); 108var uri = ProtocolConversions.CreateAbsoluteUri(filePath); 132var uri = ProtocolConversions.CreateRelativePatternBaseUri(filePath); 150var uri = ProtocolConversions.CreateRelativePatternBaseUri(filePath); 163var uri = ProtocolConversions.CreateAbsoluteUri(filePath); 327var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SomeFile.cs"); 338internal static async Task<TextDocument?> GetTextDocumentAsync(TestLspServer testLspServer, Uri uri)
RelatedDocuments\RelatedDocumentsTests.cs (1)
24Uri uri,
Rename\RenameTests.cs (1)
181var expectedMappedDocument = TestSpanMapper.MappedFileLocation.Uri;
SpellCheck\SpellCheckTests.cs (5)
581Uri uri, 604ImmutableArray<(string resultId, Uri uri)>? previousResults = null, 636Uri uri, 649ImmutableArray<(string resultId, Uri uri)>? previousResults = null, 659private static ImmutableArray<(string resultId, Uri uri)> CreateParamsFromPreviousReports(VSInternalWorkspaceSpellCheckableReport[] results)
UriTests.cs (11)
47var looseFileUri = ProtocolConversions.CreateAbsoluteUri(filePath); 73var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"untitled:untitledFile"); 103var expectedDocumentUri = ProtocolConversions.CreateAbsoluteUri(documentFilePath); 118var lowercaseUri = ProtocolConversions.CreateAbsoluteUri(documentFilePath.ToLowerInvariant()); 142var gitDocumentUri = new Uri(fileDocumentUri.ToString().Replace("file", "git")); 195var encodedUri = new Uri(encodedUriString, UriKind.Absolute); 219var upperCaseUri = new Uri(@"file:///C:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 220var lowerCaseUri = new Uri(@"file:///c:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 267var upperCaseUri = new Uri(@"git:/Blah", UriKind.Absolute); 268var lowerCaseUri = new Uri(@"git:/blah", UriKind.Absolute); 305var looseFileUri = ProtocolConversions.CreateAbsoluteUri(@"untitled:untitledFile");
Workspaces\LspWorkspaceManagerTests.cs (11)
248var newDocumentUri = ProtocolConversions.CreateAbsoluteUri(newDocumentFilePath); 374var firstWorkspaceDocumentUri = ProtocolConversions.CreateAbsoluteUri(@"C:\FirstWorkspace.cs"); 375var secondWorkspaceDocumentUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SecondWorkspace.cs"); 429var firstWorkspaceDocumentUri = ProtocolConversions.CreateAbsoluteUri(@"C:\FirstWorkspace.cs"); 430var secondWorkspaceDocumentUri = ProtocolConversions.CreateAbsoluteUri(@"C:\SecondWorkspace.cs"); 545var documentUri = ProtocolConversions.CreateAbsoluteUri(filePath); 700var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 722var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 738var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 753private static async Task<Document> OpenDocumentAndVerifyLspTextAsync(Uri documentUri, TestLspServer testLspServer, string openText = "LSP text") 769private static async Task<(Workspace? workspace, Document? document)> GetLspWorkspaceAndDocumentAsync(Uri uri, TestLspServer testLspServer)
Workspaces\SourceGeneratedDocumentTests.cs (9)
30var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 46var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 92var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 111var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 131var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 160var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 207var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 235var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity); 261var sourceGeneratorDocumentUri = SourceGeneratedDocumentUri.Create(sourceGeneratedDocumentIdentity);
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
34var uri = SourceGeneratedDocumentUri.Create(identity);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (10)
Utilities\AbstractLanguageServerClientTests.cs (5)
62Uri codeUri = new(codePath); 65Dictionary<Uri, SourceText> files = new() { [codeUri] = text }; 96private protected static Dictionary<string, IList<LSP.Location>> GetAnnotatedLocations(Uri codeUri, SourceText text, ImmutableDictionary<string, ImmutableArray<TextSpan>> spanMap) 111static LSP.Location ConvertTextSpanWithTextToLocation(TextSpan span, SourceText text, Uri documentUri) 123private protected static TextDocumentIdentifier CreateTextDocumentIdentifier(Uri uri, ProjectId? projectContext = null)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (4)
27private readonly Dictionary<Uri, SourceText> _documents; 41Dictionary<Uri, SourceText>? documents = null, 127private TestLspClient(Process process, string pipeName, Dictionary<Uri, SourceText> documents, Dictionary<string, IList<LSP.Location>> locations, ILoggerFactory loggerFactory) 245public string GetDocumentText(Uri uri) => _documents[uri].ToString();
Utilities\LspClientExtensions.cs (1)
22public static async Task OpenProjectsAsync(this ILspClient lspClient, Uri[] projects)
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
32var systemAssemblyFile = typeof(Uri).Assembly.Location;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
504var uri = new Uri(path, UriKind.RelativeOrAbsolute);
Microsoft.CodeAnalysis.Workspaces (8)
Diagnostics\DiagnosticData.cs (3)
355internal Uri? GetValidHelpLinkUri() 356=> Uri.TryCreate(HelpLink, UriKind.Absolute, out var uri) ? uri : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
255internal static Uri? GetValidHelpLinkUri(this DiagnosticDescriptor descriptor) 256=> Uri.TryCreate(descriptor.HelpLinkUri, UriKind.Absolute, out var uri) && 257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
92var contentFilesSourceLinkUrl = innerMostRootSourceLinkUrl.Replace("*", Uri.EscapeUriString(relativePathToSourceRoot.Replace('\\', '/')) + "*");
Microsoft.DotNet.Build.Tasks.Feed (5)
src\BlobUrlInfo.cs (2)
28public Uri Uri { get; private set; } 34public BlobUrlInfo(Uri uri)
src\BuildModelFactory.cs (2)
274if (Uri.TryCreate(repoUri, UriKind.Absolute, out Uri parsedUri))
src\common\AzureStorageUtils.cs (1)
53Uri endpoint = new Uri($"https://{AccountName}.blob.core.windows.net");
Microsoft.DotNet.Git.IssueManager (5)
Clients\GitHubClient.cs (1)
83Uri uri = new Uri(repositoryUri);
Helpers\RepositoryHelper.cs (4)
19if (Uri.TryCreate(repositoryUrl, UriKind.Absolute, out Uri parsedUri)) 51if (Uri.TryCreate(repositoryUrl, UriKind.Absolute, out Uri parsedUri))
Microsoft.DotNet.Helix.Client (77)
generated-code\Aggregate.cs (13)
160var _baseUri = Client.Options.BaseUri; 279var _baseUri = Client.Options.BaseUri; 380var _baseUri = Client.Options.BaseUri; 479var _baseUri = Client.Options.BaseUri; 590var _baseUri = Client.Options.BaseUri; 728var _baseUri = Client.Options.BaseUri; 833var _baseUri = Client.Options.BaseUri; 928var _baseUri = Client.Options.BaseUri; 932"/api/aggregate/investigation/continue/{id}".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 1010var _baseUri = Client.Options.BaseUri; 1145var _baseUri = Client.Options.BaseUri; 1149"/api/aggregate/history/{analysisType}".Replace("{analysisType}", Uri.EscapeDataString(Client.Serialize(analysisType))), 1240var _baseUri = Client.Options.BaseUri;
generated-code\Analysis.cs (6)
86var _baseUri = Client.Options.BaseUri; 90"/api/analysis/{job}/{analysisType}/reason".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{analysisType}", Uri.EscapeDataString(Client.Serialize(analysisType))), 184var _baseUri = Client.Options.BaseUri; 188"/api/analysis/{job}/{analysisType}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{analysisType}", Uri.EscapeDataString(Client.Serialize(analysisType))),
generated-code\HelixApi.cs (4)
49public HelixApiOptions(Uri baseUri) 59public HelixApiOptions(Uri baseUri, TokenCredential credentials) 71public Uri BaseUri { get; } 275public Uri Uri { get; }
generated-code\Information.cs (3)
57var _baseUri = Client.Options.BaseUri; 61"/api/info/queues/{queueId}".Replace("{queueId}", Uri.EscapeDataString(Client.Serialize(queueId))), 131var _baseUri = Client.Options.BaseUri;
generated-code\Job.cs (12)
98var _baseUri = Client.Options.BaseUri; 184var _baseUri = Client.Options.BaseUri; 283var _baseUri = Client.Options.BaseUri; 287"/api/jobs/{job}/pf".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))), 358var _baseUri = Client.Options.BaseUri; 362"/api/jobs/{job}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))), 433var _baseUri = Client.Options.BaseUri; 437"/api/jobs/{job}/details".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))), 509var _baseUri = Client.Options.BaseUri; 513"/api/jobs/{job}/cancel".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))), 579var _baseUri = Client.Options.BaseUri; 583"/api/jobs/{job}/wait".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
generated-code\Machine.cs (6)
70var _baseUri = Client.Options.BaseUri; 74"/api/machines/{queueId}/{machineName}/state".Replace("{queueId}", Uri.EscapeDataString(Client.Serialize(queueId))).Replace("{machineName}", Uri.EscapeDataString(Client.Serialize(machineName))), 148var _baseUri = Client.Options.BaseUri; 152"/api/machines/{queueId}/{machineName}/state".Replace("{queueId}", Uri.EscapeDataString(Client.Serialize(queueId))).Replace("{machineName}", Uri.EscapeDataString(Client.Serialize(machineName))),
generated-code\ScaleSets.cs (2)
52var _baseUri = Client.Options.BaseUri; 130var _baseUri = Client.Options.BaseUri;
generated-code\Storage.cs (3)
55var _baseUri = Client.Options.BaseUri; 139var _baseUri = Client.Options.BaseUri; 225var _baseUri = Client.Options.BaseUri;
generated-code\Telemetry.cs (13)
112var _baseUri = Client.Options.BaseUri; 199var _baseUri = Client.Options.BaseUri; 292var _baseUri = Client.Options.BaseUri; 296"/api/telemetry/job/build/{id}/finish".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 381var _baseUri = Client.Options.BaseUri; 479var _baseUri = Client.Options.BaseUri; 483"/api/telemetry/job/xunit/{id}/finish".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 576var _baseUri = Client.Options.BaseUri; 580"/api/telemetry/job/workitem/{id}/warning".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 673var _baseUri = Client.Options.BaseUri; 677"/api/telemetry/job/workitem/{id}/error".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 770var _baseUri = Client.Options.BaseUri; 774"/api/telemetry/job/workitem/{id}/log".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
generated-code\WorkItem.cs (15)
87var _baseUri = Client.Options.BaseUri; 91"/api/jobs/{job}/workitems/{id}/files/{file}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))).Replace("{file}", Uri.EscapeDataString(Client.Serialize(file))), 163var _baseUri = Client.Options.BaseUri; 167"/api/jobs/{job}/workitems/{id}/files".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 244var _baseUri = Client.Options.BaseUri; 248"/api/jobs/{job}/workitems/{id}/console".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))), 314var _baseUri = Client.Options.BaseUri; 318"/api/jobs/{job}/workitems".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))), 395var _baseUri = Client.Options.BaseUri; 399"/api/jobs/{job}/workitems/{id}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
Microsoft.DotNet.Helix.JobSender (18)
IJobDefinition.cs (2)
29IJobDefinition WithCorrelationPayloadUris(params Uri[] payloadUris); 41IJobDefinition WithCorrelationPayloadUris(IDictionary<Uri, string> payloadUrisWithDestinations);
IWorkItemDefinitionWithPayload.cs (1)
16IWorkItemDefinition WithPayloadUri(Uri payloadUri);
JobDefinition.cs (4)
57public IJobDefinition WithCorrelationPayloadUris(params Uri[] payloadUris) 59foreach (Uri uri in payloadUris) 66public IJobDefinition WithCorrelationPayloadUris(IDictionary<Uri, string> payloadUrisWithDestinations) 186Uri jobListUri = await storageContainer.UploadTextAsync(
Payloads\AdhocPayload.cs (1)
44Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", cancellationToken);
Payloads\ArchivePayload.cs (1)
42Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Archive.Name}", cancellationToken);
Payloads\DirectoryPayload.cs (1)
71Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", cancellationToken);
Payloads\SingleFilePayload.cs (1)
43Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", cancellationToken);
Payloads\UriPayload.cs (2)
9private readonly Uri _payloadUri; 11public UriPayload(Uri payloadUri)
StorageHelpers\ContainerBase.cs (2)
19public async Task<Uri> UploadFileAsync(Stream stream, string blobName, CancellationToken cancellationToken) 28public async Task<Uri> UploadTextAsync(string text, string blobName, CancellationToken cancellationToken)
StorageHelpers\IBlobContainer.cs (2)
17Task<Uri> UploadFileAsync(Stream stream, string blobName, CancellationToken cancellationToken); 18Task<Uri> UploadTextAsync(string text, string blobName, CancellationToken cancellationToken);
WorkItemDefinition.cs (1)
47public IWorkItemDefinition WithPayloadUri(Uri payloadUri)
Microsoft.DotNet.Helix.Sdk (4)
DownloadFromResultsContainer.cs (1)
102var uri = new Uri($"{ResultsContainer}{workItemName}/1/{file}");
GetHelixWorkItems.cs (1)
57var consoleUri = HelixApi.Options.BaseUri.AbsoluteUri.TrimEnd('/') + $"/api/2019-06-17/jobs/{jobName}/workitems/{Uri.EscapeDataString(name)}/console";
ProvisioningProfileProvider.cs (1)
189var uri = new Uri(GetProvisioningProfileUrl(platform));
SendHelixJob.cs (1)
516return def.WithCorrelationPayloadUris(new Dictionary<Uri, string>() { { new Uri(uri), destination } });
Microsoft.DotNet.SignCheck (7)
SignCheck.cs (7)
194var downloadFiles = new List<Uri>(); 201Uri uriResult; 203if ((Uri.TryCreate(inputFile, UriKind.Absolute, out uriResult)) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps)) 461private async Task DownloadFileAsync(Uri uri) 487private async Task DownloadFilesAsync(IEnumerable<Uri> uris)
Microsoft.DotNet.SignTool (1)
src\SignTool.cs (1)
162AppendLine(builder, depth: 2, text: $@"<FilesToSign Include=""{Uri.EscapeDataString(fileToSign.FullPath)}"">");
Microsoft.DotNet.SignTool.Tests (66)
FakeSignTool.cs (1)
54using (var stream = File.OpenWrite(Uri.UnescapeDataString(path)))
SignToolTests.cs (65)
514<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, fileToTest))}""> 666$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "CoreLibCrossARM.dll"))}""> 669<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "AspNetCoreCrossLib.dll"))}""> 786$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "4", "ABCDEFG/MsiSetup.msi"))}""> 789$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "engines\\MsiBootstrapper.exe-engine.exe"))}""> 792$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "4", "MsiBootstrapper.exe"))}""> 795$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithWix.nupkg"))}""> 839$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "lib/native/NativeLibrary.dll"))}""> 842<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "3", "lib/net461/ProjectOne.dll"))}""> 846<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "4", "lib/netcoreapp2.0/ContainerTwo.dll"))}""> 850<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "5", "lib/netcoreapp2.0/ProjectOne.dll"))}""> 854<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "6", "lib/netcoreapp2.1/ProjectOne.dll"))}""> 858<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "7", "lib/netstandard2.0/ProjectOne.dll"))}""> 862<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "9", "lib/netcoreapp2.0/ContainerOne.dll"))}""> 868<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "8", "ContainerOne.1.0.0.nupkg"))}""> 873<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 920<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "lib/native/NativeLibrary.dll"))}""> 923<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "3", "lib/net461/ProjectOne.dll"))}""> 927<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "4", "lib/netcoreapp2.0/ContainerTwo.dll"))}""> 931<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "5", "lib/netcoreapp2.0/ProjectOne.dll"))}""> 935<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "6", "lib/netcoreapp2.1/ProjectOne.dll"))}""> 939<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "7", "lib/netstandard2.0/ProjectOne.dll"))}""> 943<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "9", "lib/netcoreapp2.0/ContainerOne.dll"))}""> 949<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "8", "ContainerOne.1.0.0.nupkg"))}""> 954<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 990<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "0", "NativeLibrary.dll"))}""> 993<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "1", "SOS.NETCore.dll"))}""> 996<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.NativeLibrary.dll"))}""> 999<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "3", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.SOS.NETCore.dll"))}""> 1036<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "0", "NativeLibrary.dll"))}""> 1039<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "1", "SOS.NETCore.dll"))}""> 1042<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.NativeLibrary.dll"))}""> 1045<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "3", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.SOS.NETCore.dll"))}""> 1083<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "0", "NativeLibrary.dll"))}""> 1086<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "1", "SOS.NETCore.dll"))}""> 1089<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.NativeLibrary.dll"))}""> 1092<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "3", "this_is_a_big_folder_name_look/this_is_an_even_more_longer_folder_name/but_this_one_is_ever_longer_than_the_previous_other_two/Nested.SOS.NETCore.dll"))}""> 1195$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "0", "ABCDEFG/MsiSetup.msi"))}""> 1198$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "engines", "MsiBootstrapper.exe-engine.exe"))}""> 1201$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiBootstrapper.exe"))}""> 1244$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "0", "ABCDEFG/MsiApplication.exe"))}""> 1247$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiSetup.msi"))}""> 1312<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "1", "VisualStudio.Mac.Banana.dll"))}""> 1360<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "1", "lib/net461/ProjectOne.dll"))}""> 1364<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "lib/netstandard2.0/ProjectOne.dll"))}""> 1368<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "8", "Contents/Common7/IDE/PrivateAssemblies/ProjectOne.dll"))}""> 1374<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "6", "PackageWithRelationships.vsix"))}""> 1379<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 1427<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "6", "Contents/Common7/IDE/PrivateAssemblies/ProjectOne.dll"))}""> 1431<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "10", "Team%20Tools/Dynamic Code Coverage/net461/ProjectOne.dll"))}""> 1435<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "11", "Team%20Tools/Dynamic Code Coverage/netstandard2.0/ProjectOne.dll"))}""> 1441<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "4", "PackageWithRelationships.vsix"))}""> 1446<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "TestSpaces.vsix"))}""> 1484<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "Contents/Common7/IDE/PrivateAssemblies/ProjectOne.dll"))}""> 1488<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "7", "lib/net461/ProjectOne.dll"))}""> 1492<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "8", "lib/netstandard2.0/ProjectOne.dll"))}""> 1498<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 1503<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 1555<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "Contents/Common7/IDE/PrivateAssemblies/ProjectOne.dll"))}""> 1559<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "7", "lib/net461/ProjectOne.dll"))}""> 1563<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "8", "lib/netstandard2.0/ProjectOne.dll"))}""> 1569<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "A", "PackageWithRelationships.vsix"))}""> 1574<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 1608<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "ContainerSigning", "2", "Contents/Common7/IDE/PrivateAssemblies/ProjectOne.dll"))}""> 1614<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}"">
Microsoft.DotNet.VersionTools (1)
src\Automation\VstsApi\VstsAdapterClient.cs (1)
310string escapedRef = Uri.EscapeDataString(@ref);
Microsoft.Extensions.AI.Abstractions (12)
ChatCompletion\ChatClientMetadata.cs (2)
18public ChatClientMetadata(string? providerName = null, Uri? providerUri = null, string? defaultModelId = null) 33public Uri? ProviderUri { get; }
Contents\DataContent.cs (2)
56public DataContent(Uri uri, string? mediaType = null) 138/// or from a <see cref="System.Uri"/>. In the case of a <see cref="ReadOnlyMemory{T}"/>, this property returns a data URI containing
Contents\UriContent.cs (3)
22private Uri _uri; 56public UriContent(Uri uri, string mediaType) 63public Uri Uri
Embeddings\EmbeddingGeneratorMetadata.cs (2)
19public EmbeddingGeneratorMetadata(string? providerName = null, Uri? providerUri = null, string? defaultModelId = null, int? defaultModelDimensions = null) 35public Uri? ProviderUri { get; }
SpeechToText\SpeechToTextClientMetadata.cs (2)
20public SpeechToTextClientMetadata(string? providerName = null, Uri? providerUri = null, string? defaultModelId = null) 35public Uri? ProviderUri { get; }
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
620[typeof(Uri)] = _ => new JsonSchema { Type = JsonSchemaType.String, Format = "uri" },
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatClientMetadataTests.cs (1)
23var uri = new Uri("https://example.com");
Contents\UriContentTests.cs (1)
16Assert.Throws<ArgumentNullException>("uri", () => new UriContent((Uri)null!, "image/png"));
Embeddings\EmbeddingGeneratorMetadataTests.cs (1)
24var uri = new Uri("https://example.com");
SpeechToText\SpeechToTextClientMetadataTests.cs (1)
23var uri = new Uri("https://example.com");
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
102yield return new TestData<Uri>(new("http://example.com"), """{"type":["string","null"], "format":"uri"}"""); 1231[JsonSerializable(typeof(Uri))]
Microsoft.Extensions.AI.AzureAIInference (4)
AzureAIInferenceChatClient.cs (2)
56var providerUrl = typeof(ChatCompletionsClient).GetField("_endpoint", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) 57?.GetValue(chatCompletionsClient) as Uri;
AzureAIInferenceEmbeddingGenerator.cs (2)
69var providerUrl = typeof(EmbeddingsClient).GetField("_endpoint", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) 70?.GetValue(embeddingsClient) as Uri;
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (1)
38Uri endpoint = new("http://localhost/some/endpoint");
AzureAIInferenceEmbeddingGeneratorTests.cs (1)
34Uri endpoint = new("http://localhost/some/endpoint");
Microsoft.Extensions.AI.Evaluation.Console (4)
Commands\CleanCacheCommand.cs (1)
19internal async Task<int> InvokeAsync(DirectoryInfo? storageRootDir, Uri? endpointUri, CancellationToken cancellationToken = default)
Commands\CleanResultsCommand.cs (1)
22Uri? endpointUri,
Commands\ReportCommand.cs (1)
24Uri? endpointUri,
Program.cs (1)
49new Option<Uri>(
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Setup.cs (1)
18var endpoint = new Uri(Settings.Current.Endpoint);
test\Shared\ImageDataUri\ImageDataUri.cs (1)
12internal static Uri GetImageDataUri()
Microsoft.Extensions.AI.Evaluation.Reporting (1)
ReportingConfiguration.cs (1)
272Uri? providerUri = metadata?.ProviderUri;
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
237Uri discoveryUri = new Uri(discoveryUrl);
Microsoft.Extensions.AI.Integration.Tests (1)
test\Shared\ImageDataUri\ImageDataUri.cs (1)
12internal static Uri GetImageDataUri()
Microsoft.Extensions.AI.Ollama (4)
OllamaChatClient.cs (2)
32private readonly Uri _apiChatEndpoint; 61public OllamaChatClient(Uri endpoint, string? modelId = null, HttpClient? httpClient = null)
OllamaEmbeddingGenerator.cs (2)
24private readonly Uri _apiEmbeddingsEndpoint; 50public OllamaEmbeddingGenerator(Uri endpoint, string? modelId = null, HttpClient? httpClient = null)
Microsoft.Extensions.AI.Ollama.Tests (9)
IntegrationTestHelpers.cs (2)
13/// <summary>Gets a <see cref="Uri"/> to use for testing, or <see langword="null"/> if the associated tests should be disabled.</summary> 14public static Uri? GetOllamaUri()
OllamaChatClientIntegrationTests.cs (2)
17IntegrationTestHelpers.GetOllamaUri() is Uri endpoint ? 93var endpoint = IntegrationTestHelpers.GetOllamaUri();
OllamaChatClientTests.cs (2)
26Assert.Throws<ArgumentNullException>("endpoint", () => new OllamaChatClient((Uri)null!)); 70Uri endpoint = new("http://localhost/some/endpoint");
OllamaEmbeddingGeneratorIntegrationTests.cs (2)
14IntegrationTestHelpers.GetOllamaUri() is Uri endpoint ? 23var endpoint = IntegrationTestHelpers.GetOllamaUri();
OllamaEmbeddingGeneratorTests.cs (1)
49Uri endpoint = new("http://localhost/some/endpoint");
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (2)
OllamaSharpChatClientIntegrationTests.cs (1)
12IntegrationTestHelpers.GetOllamaUri() is Uri endpoint ?
OllamaSharpEmbeddingGeneratorIntegrationTests.cs (1)
12IntegrationTestHelpers.GetOllamaUri() is Uri endpoint ?
Microsoft.Extensions.AI.OpenAI (12)
OpenAIChatClient.cs (3)
28private static Uri DefaultOpenAIEndpoint { get; } = new("https://api.openai.com/v1"); 49Uri providerUrl = typeof(ChatClient).GetField("_endpoint", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) 50?.GetValue(chatClient) as Uri ?? DefaultOpenAIEndpoint;
OpenAIEmbeddingGenerator.cs (3)
55?.GetValue(embeddingClient) as Uri)?.ToString() ?? 107new(providerName, Uri.TryCreate(providerUrl, UriKind.Absolute, out Uri? providerUri) ? providerUri : null, defaultModelId, defaultModelDimensions);
OpenAIResponseChatClient.cs (3)
28private static Uri DefaultOpenAIEndpoint { get; } = new("https://api.openai.com/v1"); 52Uri providerUrl = typeof(OpenAIResponseClient).GetField("_endpoint", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) 53?.GetValue(responseClient) as Uri ?? DefaultOpenAIEndpoint;
OpenAISpeechToTextClient.cs (3)
26private static readonly Uri _defaultOpenAIEndpoint = new("https://api.openai.com/v1"); 46Uri providerUrl = typeof(AudioClient).GetField("_endpoint", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) 47?.GetValue(audioClient) as Uri ?? _defaultOpenAIEndpoint;
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (1)
36Uri endpoint = new("http://localhost/some/endpoint");
OpenAIEmbeddingGeneratorTests.cs (1)
33Uri endpoint = new("http://localhost/some/endpoint");
OpenAIResponseClientTests.cs (1)
35Uri endpoint = new("http://localhost/some/endpoint");
OpenAISpeechToTextClientTests.cs (1)
34Uri endpoint = new("http://localhost/some/endpoint");
test\Shared\ImageDataUri\ImageDataUri.cs (1)
12internal static Uri GetImageDataUri()
Microsoft.Extensions.DependencyModel (2)
DependencyContextLoader.cs (2)
161if (Uri.TryCreate(assembly.CodeBase, UriKind.Absolute, out Uri? codeBase)
Microsoft.Extensions.Http (1)
src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
51public static string? GetRedactedUriString(Uri? uri)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\AcceptanceTests.cs (1)
25private static readonly Uri _unreachableRequestUri = new("https://we.wont.hit.this.domain.anyway");
Microsoft.Extensions.Http.Resilience (13)
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
101if (!routingPipeline.TryGetNextRoute(out var route))
Internal\RequestMessageSnapshot.cs (1)
21private Uri? _requestUri;
Internal\UriExtensions.cs (3)
23public static Uri ReplaceHost(this Uri currentUri, Uri hostUri)
Resilience\Internal\ByAuthorityPipelineKeyProvider.cs (1)
16var url = requestMessage.RequestUri ?? throw new InvalidOperationException("The request message must have a URL specified.");
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategy.cs (1)
32public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Routing\Internal\RequestRoutingStrategy.cs (1)
29public abstract bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute);
Routing\Internal\RoutingResilienceStrategy.cs (1)
45if (!strategy.TryGetNextRoute(out var route))
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
48public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Routing\UriEndpoint.cs (2)
16private Uri? _uri; 25public Uri? Uri
Routing\WeightedUriEndpoint.cs (1)
25public Uri? Uri { get; set; }
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
HedgingBenchmark.cs (1)
15private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
HttpResilienceBenchmark.cs (1)
15private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
RetryBenchmark.cs (1)
19private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
StandardResilienceBenchmark.cs (1)
19private static readonly Uri _uri = new(HttpClientFactory.PrimaryEndpoint);
Microsoft.Extensions.Http.Resilience.Tests (8)
Hedging\HedgingTests.cs (2)
365Uri? outUri = null; 368.Callback((out Uri? uri) =>
Resilience\UriExtensionsTests.cs (3)
25var fallbackUri = new Uri("https://fallback-uri.com"); 26var initialUri = new Uri(initialUriString); 40var initialUri = new Uri(initialUriString);
Routing\IStubRoutingService.cs (1)
10Uri Route { get; }
Routing\MockRoutingStrategy.cs (1)
31public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Routing\RoutingStrategyTest.cs (1)
160while (strategy.TryGetNextRoute(out var route))
Microsoft.Extensions.Logging.AzureAppServices (2)
BlobAppendReferenceWrapper.cs (2)
15private readonly Uri _fullUri; 17private readonly Uri _appendUri;
Microsoft.Extensions.ML (17)
Builder\BuilderExtensions.cs (2)
66this PredictionEnginePoolBuilder<TData, TPrediction> builder, string modelName, Uri uri) 131this PredictionEnginePoolBuilder<TData, TPrediction> builder, string modelName, Uri uri, TimeSpan period)
ModelLoaders\UriModelLoader.cs (15)
25private Uri _uri; 45internal void Start(Uri uri, TimeSpan period) 105internal virtual async Task<bool> MatchEtagAsync(Uri uri, string eTag) 193private static readonly Action<ILogger, Uri, Exception> _uriReloadBegin = LoggerMessage.Define<Uri>( 198private static readonly Action<ILogger, Uri, double, Exception> _uriReloadEnd = LoggerMessage.Define<Uri, double>( 203private static readonly Action<ILogger, Uri, double, Exception> _uriReloadError = LoggerMessage.Define<Uri, double>( 208private static readonly Action<ILogger, Uri, Exception> _uriLoadError = LoggerMessage.Define<Uri>( 213public static void UriReloadBegin(ILogger logger, Uri uri) 218public static void UriReloadEnd(ILogger logger, Uri uri, TimeSpan duration) 223public static void UriReloadError(ILogger logger, Uri uri, TimeSpan duration, Exception exception) 228public static void UriLoadError(ILogger logger, Uri uri, Exception exception)
Microsoft.Extensions.ML.Tests (2)
UriLoaderTests.cs (2)
83public Func<Uri, string, bool> ETagMatches { get; set; } = delegate { return false; }; 100internal override Task<bool> MatchEtagAsync(Uri uri, string eTag)
Microsoft.Extensions.ServiceDiscovery (17)
Configuration\ConfigurationServiceEndpointProvider.cs (3)
204if (value.IndexOf("://") < 0 && Uri.TryCreate($"fakescheme://{value}", default, out var uri)) 216else if (Uri.TryCreate(value, default, out uri))
Http\ResolvingHttpClientHandler.cs (1)
19var originalUri = request.RequestUri;
Http\ResolvingHttpDelegatingHandler.cs (3)
43var originalUri = request.RequestUri; 61internal static Uri GetUriWithEndpoint(Uri uri, ServiceEndpoint serviceEndpoint, ServiceDiscoveryOptions options)
PassThrough\PassThroughServiceEndpointProviderFactory.cs (3)
31if ((serviceName.Contains("://", StringComparison.Ordinal) || !Uri.TryCreate($"fakescheme://{serviceName}", default, out var uri)) && !Uri.TryCreate(serviceName, default, out uri))
UriEndPoint.cs (7)
9/// An endpoint represented by a <see cref="System.Uri"/>. 11/// <param name="uri">The <see cref="System.Uri"/>.</param> 12internal sealed class UriEndPoint(Uri uri) : EndPoint 15/// Gets the <see cref="System.Uri"/> associated with this endpoint. 17public Uri Uri => uri; 22return obj is UriEndPoint other && Uri.Equals(other.Uri); 26public override int GetHashCode() => Uri.GetHashCode();
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
ServiceEndpointQuery.cs (3)
42&& Uri.TryCreate($"fakescheme://{input}", default, out var uri)) 46else if (Uri.TryCreate(input, default, out uri))
Microsoft.Extensions.ServiceDiscovery.Yarp (4)
ServiceDiscoveryDestinationResolver.cs (4)
57var originalUri = new Uri(originalConfig.Address); 63var healthUri = originalConfig.Health is { Length: > 0 } health ? new Uri(health) : null; 68Uri uri; 107private string GetDefaultScheme(Uri originalUri)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
YarpServiceDiscoveryTests.cs (2)
258Assert.True(Uri.TryCreate(address, default, out var uri), $"Failed to parse address '{address}' as URI.");
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
20public Uri? P5 { get; set; }
Microsoft.Maui (7)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
66 internal static readonly Uri AppOriginUri = new(AppOrigin);
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
42 .ToDictionary(p => p[0], p => Uri.UnescapeDataString(p[1]));
ImageSources\IUriImageSource.cs (1)
8 Uri Uri { get; }
VisualDiagnostics\SourceInfo.cs (3)
21 public SourceInfo(Uri sourceUri, int lineNumber, int linePosition) 28 public Uri SourceUri { get; } 38 public void Deconstruct(out Uri sourceUri, out int lineNumber, out int linePosition)
VisualDiagnostics\VisualDiagnostics.cs (1)
22 public static void RegisterSourceInfo(object target, Uri uri, int lineNumber, int linePosition)
Microsoft.Maui.Controls (77)
Application\Application.cs (2)
313 protected virtual void OnAppLinkRequestReceived(Uri uri) 364 public void SendOnAppLinkRequestReceived(Uri uri)
AppLinkEntry.cs (4)
28 public static readonly BindableProperty AppLinkUriProperty = BindableProperty.Create(nameof(AppLinkUri), typeof(Uri), typeof(AppLinkEntry), null); 34 public Uri AppLinkUri 36 get { return (Uri)GetValue(AppLinkUriProperty); } 75 public static AppLinkEntry FromUri(Uri uri)
BindableProperty.cs (1)
45 { typeof(Uri), new UriTypeConverter() },
IAppLinkEntry.cs (1)
9 Uri AppLinkUri { get; set; }
IAppLinks.cs (1)
9 void DeregisterLink(Uri appLinkUri);
ImageSource.cs (4)
101 public static ImageSource FromUri(Uri uri) 110 Uri uri; 111 return Uri.TryCreate(source, UriKind.Absolute, out uri) && uri.Scheme != "file" ? FromUri(uri) : FromFile(source); 114 public static implicit operator ImageSource(Uri uri)
ImageSourceConverter.cs (4)
14 => sourceType == typeof(string) || sourceType == typeof(Uri); 21 if (value is Uri uriValue) 29 return Uri.TryCreate(strValue, UriKind.Absolute, out Uri uri) && uri.Scheme != "file" ? ImageSource.FromUri(uri) : ImageSource.FromFile(strValue);
ResourceDictionary.cs (11)
25 Uri _source; 28 internal static Action<ResourceDictionary, Uri, string, Assembly, System.Xml.IXmlLineInfo> s_setAndLoadSource; 32 public Uri Source 46 public void SetAndCreateSource<T>(Uri value) 57 public void SetAndLoadSource(Uri value, string resourcePath, Assembly assembly, global::System.Xml.IXmlLineInfo lineInfo) 72 internal void SetSource(Uri source, ResourceDictionary sourceInstance) 419 internal static Uri GetUriWithExplicitAssembly(string value, Assembly defaultAssembly) 436 internal static Uri CombineUriAndAssembly(string value, Assembly assembly) 441 internal static string GetResourcePath(Uri uri, string rootTargetPath) 445 var resourceUri = uri.OriginalString.StartsWith("/", StringComparison.Ordinal) 458 if (value is not Uri uri)
Routing.cs (1)
245 var uri = new Uri(route, UriKind.RelativeOrAbsolute);
Shell\RequestDefinition.cs (2)
32 var uri = ShellUriHandler.CreateUri(uriPath); 45 public Uri FullUri { get; }
Shell\Shell.cs (1)
2167 public Uri AbsoluteUrl => shell.CurrentState.FullLocation;
Shell\ShellNavigationManager.cs (3)
93 var uri = navigationRequest.Request.FullUri; 415 var targetUri = ShellUriHandler.ConvertToStandardFormat(shell, request.Request.FullUri); 416 var currentUri = ShellUriHandler.ConvertToStandardFormat(shell, current.FullLocation);
Shell\ShellNavigationState.cs (10)
15 Uri _fullLocation; 17 internal Uri FullLocation 27 public Uri Location 42 var uri = ShellUriHandler.CreateUri(location); 56 public ShellNavigationState(Uri location) 62 public static implicit operator ShellNavigationState(Uri uri) => new ShellNavigationState(uri); 65 static Uri TrimDownImplicitAndDefaultPaths(Uri uri) 110 => sourceType == typeof(string) || sourceType == typeof(Uri); 116 Uri uri => (ShellNavigationState)uri,
Shell\ShellUriHandler.cs (20)
17 internal static Uri FormatUri(Uri path, Shell shell) 71 var returnValue = ConvertToStandardFormat("scheme", "host", null, new Uri(result, UriKind.Relative)); 88 internal static Uri CreateUri(string path) 98 if (Uri.TryCreate(path, UriKind.Absolute, out Uri result)) 131 public static Uri ConvertToStandardFormat(Shell shell, Uri request) 137 public static Uri ConvertToStandardFormat(string routeScheme, string routeHost, string route, Uri request) 165 static internal ShellNavigationRequest.WhatToDoWithTheStack CalculateStackRequest(Uri uri) 176 internal static ShellNavigationRequest GetNavigationRequest(Shell shell, Uri uri, bool enableRelativeShellRoutes = false, bool throwNavigationErrorAsException = true, ShellNavigationParameters shellNavigationParameters = null) 183 Uri request = ConvertToStandardFormat(shell, uri); 222 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request) 228 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request, Uri originalRequest, bool enableRelativeShellRoutes) 329 var uri = ConvertToStandardFormat(shell, CreateUri(route)); 350 Uri originalRequest) 430 Uri startingFrom, 781 public Uri GetUri()
StreamWrapper.cs (1)
93 public static async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken, HttpClient client)
UriImageSource.cs (7)
17 nameof(Uri), typeof(Uri), typeof(UriImageSource), default(Uri), 19 validateValue: (bindable, value) => value == null || ((Uri)value).IsAbsoluteUri); 48 public Uri Uri 50 get => (Uri)GetValue(UriProperty); 88 async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken = default(CancellationToken)) 113 async Task<Stream> DownloadStreamAsync(Uri uri, CancellationToken cancellationToken)
UriTypeConverter.cs (1)
28 if (value is not Uri uri)
WebView\WebViewSource.cs (3)
12 public static implicit operator WebViewSource(Uri url) 41 => sourceType == typeof(string) || sourceType == typeof(Uri); 47 Uri uri => (UrlWebViewSource)uri,
Microsoft.Maui.Controls.Build.Tasks (5)
CompiledConverters\ImageSourceTypeConverter.cs (2)
18 if (Uri.TryCreate(value, UriKind.Absolute, out Uri uri) && uri.Scheme != "file")
CompiledConverters\RDSourceTypeConverter.cs (1)
43 var uri = new Uri(value, UriKind.Relative);
CompiledValueProviders\StyleSheetProvider.cs (1)
56 var uri = new Uri(source, UriKind.Relative);
CreateObjectVisitor.cs (1)
547 if (hasValue && Uri.TryCreate(valueString, UriKind.RelativeOrAbsolute, out _))
Microsoft.Maui.Controls.DesignTools (2)
ImageSourceDesignTypeConverter.cs (2)
13 return Uri.TryCreate(strValue, UriKind.RelativeOrAbsolute, out Uri _);
Microsoft.Maui.Controls.Xaml (8)
CreateValuesVisitor.cs (4)
340 else if (nodeType == typeof(Uri)) 379 if (nodeType == typeof(Uri) && Uri.TryCreate(valuestring, UriKind.RelativeOrAbsolute, out Uri urival))
MarkupExtensions\StyleSheetExtension.cs (1)
17 public Uri Source { get; set; }
ResourceDictionaryHelpers.cs (3)
20 public static void LoadFromSource(ResourceDictionary rd, Uri source, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo) 33 var sourceUri = ResourceDictionary.RDSourceTypeConverter.CombineUriAndAssembly(value, assembly); 39 internal static void SetAndLoadSource(ResourceDictionary rd, Uri value, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
Microsoft.Maui.Essentials (41)
Browser\Browser.netstandard.tvos.watchos.cs (1)
9 public Task<bool> OpenAsync(Uri uri, BrowserLaunchOptions options) =>
Browser\Browser.shared.cs (6)
18 Task<bool> OpenAsync(Uri uri, BrowserLaunchOptions options); 54 public static Task<bool> OpenAsync(Uri uri) => Default.OpenAsync(uri); 62 public static Task<bool> OpenAsync(Uri uri, BrowserLaunchMode launchMode) => Default.OpenAsync(uri, launchMode); 70 public static Task<bool> OpenAsync(Uri uri, BrowserLaunchOptions options) => Default.OpenAsync(uri, options); 124 public static Task<bool> OpenAsync(this IBrowser browser, Uri uri) => 134 public static Task<bool> OpenAsync(this IBrowser browser, Uri uri, BrowserLaunchMode launchMode) =>
Email\Email.shared.cs (3)
78 yield return "subject=" + Uri.EscapeDataString(message.Subject); 81 yield return "body=" + Uri.EscapeDataString(message.Body); 85 string.Join(",", addresses.Select(Uri.EscapeDataString));
Launcher\Launcher.netstandard.watchos.cs (3)
8 Task<bool> PlatformCanOpenAsync(Uri uri) => 11 Task<bool> PlatformOpenAsync(Uri uri) => 17 Task<bool> PlatformTryOpenAsync(Uri uri) =>
Launcher\Launcher.shared.cs (9)
25 Task<bool> CanOpenAsync(Uri uri); 33 Task<bool> OpenAsync(Uri uri); 48 Task<bool> TryOpenAsync(Uri uri); 76 public static Task<bool> CanOpenAsync(Uri uri) 94 public static Task<bool> OpenAsync(Uri uri) 120 public static Task<bool> TryOpenAsync(Uri uri) 139 public Task<bool> CanOpenAsync(Uri uri) 147 public Task<bool> OpenAsync(Uri uri) 165 public Task<bool> TryOpenAsync(Uri uri)
Types\PlacemarkExtensions.shared.cs (1)
27 return Uri.EscapeDataString(address);
Types\Shared\WebUtils.shared.cs (7)
9 internal static IDictionary<string, string> ParseQueryString(Uri uri) 74 name = Uri.UnescapeDataString(name); 76 parameters[name] = Uri.UnescapeDataString(value); 81 internal static Uri EscapeUri(Uri uri) 90 internal static bool CanHandleCallback(Uri expectedUrl, Uri callbackUrl)
WebAuthenticator\WebAuthenticator.shared.cs (8)
60 /// <param name="uri">The <see cref="Uri"/> object to decode the query parameters from.</param> 62 IDictionary<string, string>? DecodeResponse(Uri uri); 81 public static Task<WebAuthenticatorResult> AuthenticateAsync(Uri url, Uri callbackUrl) 131 public static Task<WebAuthenticatorResult> AuthenticateAsync(this IWebAuthenticator webAuthenticator, Uri url, Uri callbackUrl) => 174 public Uri? Url { get; set; } 179 public Uri? CallbackUrl { get; set; }
WebAuthenticator\WebAuthenticatorResult.shared.cs (3)
26 public WebAuthenticatorResult(Uri uri) : this(uri, null) 39 public WebAuthenticatorResult(Uri uri, IWebAuthenticatorResponseDecoder responseDecoder) 66 public Uri CallbackUri { get; }
Microsoft.ML.Core (5)
Data\ServerChannel.cs (1)
164Uri BaseAddress { get; }
Utilities\ResourceManagerUtils.cs (3)
114if (!Uri.TryCreate(Path.Combine(MlNetResourcesUrl, relativeUrl), UriKind.Absolute, out var absoluteUrl)) 249private async Task<Exception> DownloadResource(IHostEnvironment env, IChannel ch, HttpClient httpClient, Uri uri, string path, string fileName, CancellationToken ct)
Utilities\Stream.cs (1)
843if (Uri.IsWellFormedUriString(file, UriKind.Absolute))
Microsoft.ML.Core.Tests (4)
UnitTests\TestResourceDownload.cs (4)
43if (!Uri.TryCreate("https://fake-website/fake-model.model/", UriKind.Absolute, out var badUri)) 73if (!Uri.TryCreate("https://cnn.com/", UriKind.Absolute, out var cnn))
Microsoft.ML.FastTree (1)
GamModelParameters.cs (1)
953Uri uri = server.BaseAddress;
Microsoft.ML.Parquet (3)
PartitionedPathUtils.cs (3)
26Uri baseUri = new Uri(basepath); 27Uri uri = new Uri(path); 42relativePath = Uri.UnescapeDataString(baseUri.MakeRelativeUri(uri).ToString());
Microsoft.Net.Http.Headers (1)
src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.Svcutil.NamedPipeMetadataImporter (2)
NamedPipeMetadataImporter.cs (2)
22public XmlReader GetReader(Uri uri) 30public async Task<XmlReader> GetMetadatadataAsync(Uri uri)
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\Devices\NetworkTests.cs (2)
52Action action = () => network.Ping((Uri)null); 60Action action = () => network.Ping((Uri)null, 1);
Microsoft.VisualStudio.LanguageServices (63)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
206System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/addparameterdi" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
238System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/changesignatur" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/memberselection" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/newtypedestinat" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
89System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/documentoutline/documentoutlin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/common/en" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
149System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/settingse" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
79System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/errorreporting/detailederrorin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
86System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractclass/extractclassdialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
96System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractinterface/extractinterf" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/generatetype/generatetypedialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
64System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/inheritancemargin/marginglyph/" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
135System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/movestaticme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
94System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/staticmember" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
118System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movetonamespace/movetonamespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
128System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pickmembers/pickmembersdialog." +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (1)
183System.Uri resourceLocater = new System.Uri("/Microsoft.VisualStudio.LanguageServices;component/previewpane/previewpane.xaml", System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\MainDialog\PullMemberUpDialog.g.cs (1)
103System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/maindialog/pullme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
77System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/warningdialog/pul" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
55System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
80System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
87System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/unusedreferences/dialog/remove" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
70System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingroo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
104System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingtre" +
NavigateTo\RoslynSearchResultPreviewPanel.cs (2)
26Uri uri, 33Contract.ThrowIfFalse(uri.IsAbsoluteUri, $"{nameof(TextDocumentLocation)} assumes the URI is an absolute URI and invokes {nameof(Uri.LocalPath)}.");
NavigateTo\RoslynSearchResultViewFactory.cs (1)
66Uri? absoluteUri;
PreviewPane\PreviewPane.xaml.cs (2)
51Uri helpLink, 255private void InitializeHyperlinks(Uri helpLink, string helpLinkToolTipText)
PreviewPane\PreviewPaneService.cs (1)
96var helpLinkUri = data.GetValidHelpLinkUri();
Progression\GraphBuilder.cs (7)
74var projectPath = inputNode.Id.GetNestedValueByName<Uri>(CodeGraphNodeIdName.Assembly); 75var filePath = inputNode.Id.GetNestedValueByName<Uri>(CodeGraphNodeIdName.File); 696if (!Uri.TryCreate(fileName, UriKind.RelativeOrAbsolute, out _)) 786if (!Uri.TryCreate(path, UriKind.Absolute, out var uri))
Progression\GraphNodeIdCreation.cs (5)
40var assembly = await GetAssemblyFullPathAsync(symbol, solution, cancellationToken).ConfigureAwait(false); 70Uri assembly = null; 392private static async Task<Uri> GetAssemblyFullPathAsync(ISymbol symbol, Solution solution, CancellationToken cancellationToken) 398private static async Task<Uri> GetAssemblyFullPathAsync(IAssemblySymbol containingAssembly, Solution solution, CancellationToken cancellationToken) 448var assembly = await GetAssemblyFullPathAsync(assemblySymbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\ContainsChildrenGraphQuery.cs (2)
43var uri = node.Id.GetNestedValueByName<Uri>(CodeGraphNodeIdName.File);
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (2)
57if (Uri.TryCreate(assembly.CodeBase, UriKind.RelativeOrAbsolute, out var uri) &&
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
181var pathAsUri = ProtocolConversions.CreateAbsoluteUri(path);
Utilities\VisualStudioNavigateToLinkService.cs (4)
26public Task<bool> TryNavigateToLinkAsync(Uri uri, CancellationToken cancellationToken) 33if (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps) 45public static void StartBrowser(Uri uri)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\AdvancedOptionPageControl.g.cs (1)
701System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/advancedoptionp" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
93System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/formatting/form" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/intellisenseopt" +
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
CustomProtocol\Projects.cs (1)
29public Uri[] SourceFiles { get; set; }
ProjectsHandler.cs (2)
25using var _2 = ArrayBuilder<Uri>.GetInstance(out var externalUris); 31var uri = new Uri(sourceFile.FilePath);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
554Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/advancedop"& _
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
141Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/intellisen"& _
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Features\Diagnostics\XamlDiagnostic.cs (3)
22public Uri? GetHelpLinkUri() 23=> Uri.TryCreate(HelpLink, UriKind.Absolute, out var uri) ? uri : null;
netstandard (1)
netstandard.cs (1)
2223[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Uri))]
PresentationBuildTasks (18)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
1792else if (typeToConvertTo == typeof(Uri)) 2688CodeObjectCreateExpression coceResourceLocator = new CodeObjectCreateExpression(typeof(System.Uri), uriParams); 2689CodeVariableDeclarationStatement cvdsresLocator = new CodeVariableDeclarationStatement(typeof(System.Uri), resVarname, coceResourceLocator); 3175CodeExpression ceValue = GetPropertyValueExpression(ctx, typeof(Uri), null, attributeValue);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
294else if (type == ReflectionHelper.GetSystemType(typeof(Uri)))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5509case KnownElements.Uri: t = typeof(Uri); break;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (4)
40Uri BaseUri 366public Uri BaseUri 460Uri sameUri = new Uri(serializedSafe); 813private Uri _baseUri;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParseException.cs (4)
111internal XamlParseException(string message, int lineNumber, int linePosition, Uri baseUri, Exception innerException) 192public Uri BaseUri 412Uri baseUri, 546private Uri _baseUri = null;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (4)
24Uri baseUri = new Uri("http://foo/"); 25Uri srcUri = new Uri(baseUri, relPath.Replace("#", "%23")); 34private static string GetResourceIDFromUri(Uri baseUri, Uri sourceUri)
PresentationCore (364)
MS\Internal\AppModel\CookieHandler.cs (3)
102internal static string GetCookie(Uri uri, bool throwIfNoCookie) 123internal static bool SetCookie(Uri uri, string cookieData) 128private static bool SetCookieUnsafe(Uri uri, string cookieData, string p3pHeader)
MS\Internal\AppModel\CustomCredentialPolicy.cs (2)
72public bool ShouldSendCredential(Uri challengeUri, WebRequest request, NetworkCredential credential, IAuthenticationModule authenticationModule) 96internal static int MapUrlToZone(Uri uri)
MS\Internal\AppModel\SiteOfOriginContainer.cs (6)
37internal static Uri SiteOfOrigin 42Uri siteOfOrigin = BaseUriHelper.FixFileUri(new Uri(System.AppDomain.CurrentDomain.BaseDirectory)); 95public override bool PartExists(Uri uri) 176protected override PackagePart GetPartCore(Uri uri) 198protected override PackagePart CreatePartCore(Uri uri, string contentType, CompressionOption compressionOption) 203protected override void DeletePartCore(Uri uri)
MS\Internal\AppModel\SiteOfOriginPart.cs (3)
30internal SiteOfOriginPart(Package container, Uri uri) : 141if (string.Equals(_absoluteLocation.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase)) 219private Uri _absoluteLocation = null;
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (9)
25public static CanonicalFontFamilyReference Create(Uri baseUri, string normalizedString) 32Uri absoluteUri = null; 44if (Uri.TryCreate(locationString, UriKind.Absolute, out absoluteUri)) 52resolved = Uri.TryCreate(baseUri, locationString, out absoluteUri); 58string unescapeFamilyName = Uri.UnescapeDataString(escapedFamilyName); 107public Uri LocationUri 151private CanonicalFontFamilyReference(Uri absoluteLocationUri, string familyName) 185private Uri _absoluteLocationUri; 187private static readonly CanonicalFontFamilyReference _unresolved = new CanonicalFontFamilyReference((Uri)null, string.Empty);
MS\Internal\FontCache\DWriteFactory.cs (3)
55private static Text.TextInterface.FontCollection GetFontCollectionFromFileOrFolder(Uri fontCollectionUri, bool isFolder) 94internal static Text.TextInterface.FontCollection GetFontCollectionFromFolder(Uri fontCollectionUri) 99internal static Text.TextInterface.FontCollection GetFontCollectionFromFile(Uri fontCollectionUri)
MS\Internal\FontCache\FamilyCollection.cs (7)
39private Uri _folderUri; 111Uri criticalSxSFontsLocation = new Uri(FamilyCollection.SxSFontsResourcePrefix); 278private FamilyCollection(Uri folderUri, MS.Internal.Text.TextInterface.FontCollection fontCollection) 288internal static FamilyCollection FromUri(Uri folderUri) 297internal static FamilyCollection FromWindowsFonts(Uri folderUri) 607internal FontFamily[] GetFontFamilies(Uri fontFamilyBaseUri, string fontFamilyLocationReference) 652private FontFamily CreateFontFamily(CompositeFontFamily compositeFontFamily, Uri fontFamilyBaseUri, string fontFamilyLocationReference)
MS\Internal\FontCache\FontCacheUtil.cs (12)
379private static readonly Uri _windowsFontsUriObject; 381internal static Uri WindowsFontsUriObject 443char unescapedChar = Uri.HexUnescape(s, ref i); 475internal static bool IsSupportedSchemeForAbsoluteFontFamilyUri(Uri absoluteUri) 482internal static void SplitFontFaceIndex(Uri fontUri, out Uri fontSourceUri, out int faceIndex) 509internal static Uri CombineUriWithFaceIndex(string fontUri, int faceIndex) 541internal static bool IsEnumerableFontUriScheme(Uri fontLocation) 561Uri fileUri; 562if (Uri.TryCreate(fontLocation, fakeFileName, out fileUri)) 572internal static bool IsAppSpecificUri(Uri fontLocation) 582internal static string GetUriExtension(Uri uri)
MS\Internal\FontCache\FontResourceCache.cs (2)
46internal static List<string> LookupFolder(Uri uri) 97private static bool IsFolderUri(Uri uri)
MS\Internal\FontCache\FontSource.cs (7)
45public FontSource(Uri fontUri) 50public FontSource(Uri fontUri, bool isComposite) 60public FontSource(Uri fontUri, bool isComposite, bool isInternalCompositeFont) 65private void Initialize(Uri fontUri, bool isComposite, bool isInternalCompositeFont) 119public Uri Uri 443private Uri _fontUri; 445private static readonly SizeLimitedCache<Uri, byte[]> s_resourceCache = new(MaximumCacheItems);
MS\Internal\FontCache\FontSourceCollection.cs (4)
32public FontSourceCollection(Uri folderUri) 37public FontSourceCollection(Uri folderUri, bool tryGetCompositeFontsOnly) 42private void Initialize(Uri folderUri, bool tryGetCompositeFontsOnly) 182private Uri _uri;
MS\Internal\FontFace\FontDriver.cs (3)
110internal TrueTypeFontDriver(UnmanagedMemoryStream unmanagedMemoryStream, Uri sourceUri) 228private Uri SourceUri 275private Uri _sourceUri;
MS\Internal\FontFace\FontFamilyIdentifier.cs (7)
74internal FontFamilyIdentifier(string friendlyName, Uri baseUri) 123internal Uri BaseUri 382public BasedFriendlyName(Uri baseUri, string name) 405public BasedNormalizedName(Uri baseUri, string name) 430private Uri _baseUri; 433protected BasedName(Uri baseUri, string name) 465private Uri _baseUri;
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (6)
50internal ByteRangeDownloader(Uri requestedUri, string tempFileName, SafeWaitHandle eventHandle) 70internal ByteRangeDownloader(Uri requestedUri, Stream tempStream, SafeWaitHandle eventHandle, Mutex fileMutex) 397private ByteRangeDownloader(Uri requestedUri, SafeWaitHandle eventHandle) 402if (!string.Equals(requestedUri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal) && !string.Equals(requestedUri.Scheme, Uri.UriSchemeHttps, StringComparison.Ordinal)) 843private Uri _requestedUri; // url to be downloaded
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (2)
194internal DeobfuscatingStream(Stream obfuscatedStream, Uri streamUri, bool leaveOpen) 200Uri partUri = System.IO.Packaging.PackUriHelper.GetPartUri(streamUri);
MS\Internal\IO\Packaging\NetStream.cs (4)
70Uri uri, 92if (fullStreamLength > 0 && ((string.Equals(uri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal)) || 93(string.Equals(uri.Scheme, Uri.UriSchemeHttps, StringComparison.Ordinal)))) 1263private Uri _uri; // uri we are resolving
MS\Internal\IO\Packaging\PreloadedPackages.cs (6)
49internal static Package GetPackage(Uri uri) 62internal static Package GetPackage(Uri uri, out bool threadSafe) 93internal static void AddPackage(Uri uri, Package package) 107internal static void AddPackage(Uri uri, Package package, bool threadSafe) 129internal static void RemovePackage(Uri uri) 148private static void ValidateUriKey(Uri uri)
MS\Internal\IO\Packaging\PseudoWebRequest.cs (10)
42internal PseudoWebRequest(Uri uri, Uri packageUri, Uri partUri, Package cacheEntry) 292if (IsScheme(Uri.UriSchemeFtp)) 300if (IsScheme(Uri.UriSchemeFtp)) 342if (IsScheme(Uri.UriSchemeHttp)) 350if (IsScheme(Uri.UriSchemeFtp)) 362private Uri _uri; // pack uri 363private Uri _innerUri; // inner uri extracted from the pack uri 364private Uri _partName; // name of PackagePart (if any) - null for full-container references
MS\Internal\Shaping\TypefaceMap.cs (2)
608Uri baseUri = canonicalFamilyReference?.LocationUri; 712Uri baseUri,
MS\Internal\Text\TextInterface\Factory.cs (5)
140internal FontFile CreateFontFile(Uri filePathUri) 174internal FontFace CreateFontFace(Uri filePathUri, uint faceIndex) 193internal FontFace CreateFontFace(Uri filePathUri, uint faceIndex, FontSimulations fontSimulationFlags) 295internal FontCollection GetFontCollection(Uri uri) 333internal static bool IsLocalUri(Uri uri)
MS\Internal\WpfWebRequestHelper.cs (7)
43internal static WebRequest CreateRequest(Uri uri) 76Uri requestUri = BaseUriHelper.PackAppBaseUri.MakeRelativeUri(uri); 159internal static Stream CreateRequestAndGetResponseStream(Uri uri) 164internal static Stream CreateRequestAndGetResponseStream(Uri uri, out ContentType contentType) 170internal static WebResponse CreateRequestAndGetResponse(Uri uri) 189Uri requestUri = BaseUriHelper.PackAppBaseUri.MakeRelativeUri(request.RequestUri); 205Uri requestUri = BaseUriHelper.PackAppBaseUri.MakeRelativeUri(request.RequestUri);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (5)
19internal static ContentType GetMimeTypeFromUri(Uri uriSource) 25Uri uri = uriSource; 75private static ContentType GetMimeTypeFromUrlMon(Uri uriSource) 106private static string GetDocument(Uri uri) 132internal static string GetFileExtension(Uri uri)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (3)
68internal static Uri GetBaseDirectory(AppDomain domain) 70Uri appBase = null; 75internal static int MapUrlToZoneWrapper(Uri uri)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (9)
53internal static string UriToString(Uri uri) 66internal static Uri BaseUri 78internal static bool DoSchemeAndHostMatch(Uri first, Uri second) 84internal static Uri GetResolvedUri(Uri baseUri, Uri orgUri) 86Uri newUri; 96Uri baseuri = baseUri ?? BindUriHelper.BaseUri;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\WinInet.cs (1)
14internal static Uri InternetCacheFolder
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Media\TypeConverterHelper.cs (4)
26internal Uri BaseUri; 31internal Uri OriginalUri; 69Debug.Assert(inputString is Uri); 70uriHolder.OriginalUri = (Uri)inputString;
System\IO\Packaging\PackageStore.cs (5)
52public static Package GetPackage(Uri uri) 79public static void AddPackage(Uri uri, Package package) 90Uri packUri = PackUriHelper.Create(uri); 123public static void RemovePackage(Uri uri) 138private static void ValidatePackageUri(Uri uri)
System\IO\Packaging\PackWebRequest.cs (12)
46internal PackWebRequest(Uri uri, Uri packageUri, Uri partUri) 63internal PackWebRequest(Uri uri, Uri packageUri, Uri partUri, Package cacheEntry, 373public override Uri RequestUri 563private Uri _uri; // pack uri 564private Uri _innerUri; // inner uri extracted from the pack uri 565private Uri _partName; // name of PackagePart (if any) - null for full-container references 578private static Uri _siteOfOriginUri = PackUriHelper.GetPackageUri(System.Windows.Navigation.BaseUriHelper.SiteOfOriginBaseUri); 579private static Uri _appBaseUri = PackUriHelper.GetPackageUri(System.Windows.Navigation.BaseUriHelper.PackAppBaseUri);
System\IO\Packaging\PackWebRequestFactory.cs (4)
48WebRequest IWebRequestCreate.Create(Uri uri) 71Uri packageUri = System.IO.Packaging.PackUriHelper.GetPackageUri(uri); 72Uri partUri = System.IO.Packaging.PackUriHelper.GetPartUri(uri); 135internal static WebRequest CreateWebRequest(Uri uri)
System\IO\Packaging\PackWebResponse.cs (10)
53internal PackWebResponse(Uri uri, Uri innerUri, Uri partName, WebRequest innerRequest) 118internal PackWebResponse(Uri uri, Uri innerUri, Uri partName, Package cacheEntry, 320public override Uri ResponseUri 919private Uri _uri; // full uri 920private Uri _innerUri; // inner uri 921private Uri _partName; // path to stream
System\Windows\Diagnostics\XamlSourceInfo.cs (2)
18public Uri SourceUri { get; private set; } 30public XamlSourceInfo(Uri sourceUri, int lineNumber, int linePosition)
System\Windows\Diagnostics\XamlSourceInfoHelper.cs (5)
82if (s_sourceBamlUriProperty == null || s_sourceBamlUriProperty.PropertyType != typeof(Uri) || 95internal static void SetXamlSourceInfo(object obj, XamlObjectEventArgs args, Uri overrideSourceUri) 99Uri sourceUri = overrideSourceUri ?? (Uri)s_sourceBamlUriProperty.GetValue(args); 107internal static void SetXamlSourceInfo(object obj, Uri sourceUri, int elementLineNumber, int elementLinePosition)
System\Windows\Input\CursorConverter.cs (1)
173Uri finalUri = BindUriHelper.GetResolvedUri(uriHolder.BaseUri, uriHolder.OriginalUri);
System\Windows\Media\Color.cs (4)
33private static Color FromProfile(Uri profileUri) 64public static Color FromAValues(float a, float[] values, Uri profileUri) 104public static Color FromValues(float[] values, Uri profileUri) 290Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
System\Windows\Media\ColorContext.cs (8)
156public ColorContext(Uri profileUri) 234public Uri ProfileUri 238Uri uri = _profileUri; 479private void Initialize(Uri profileUri, bool isStandardProfileUriNotFromUser) 539private static Uri GetStandardColorSpaceProfile() 549Uri profilePath; 552if (!Uri.TryCreate(profilePathString, UriKind.Absolute, out profilePath)) 785private Uri _profileUri;
System\Windows\Media\Effects\Generated\PixelShader.cs (4)
82public Uri UriSource 86return (Uri) GetValue(UriSourceProperty); 259internal static Uri s_UriSource = null; 286typeof(Uri),
System\Windows\Media\Effects\PixelShader.cs (2)
70Uri newUri = (Uri)e.NewValue;
System\Windows\Media\FontEmbeddingManager.cs (9)
24_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer); 45Uri glyphTypeface = glyphRun.GlyphTypeface.FontUri; 65public ICollection<Uri> GlyphTypefaceUris 82public ICollection<ushort> GetUsedGlyphs(Uri glyphTypeface) 94private class UriComparer : IEqualityComparer<Uri> 98public bool Equals(Uri x, Uri y) 105public int GetHashCode(Uri obj) 125private Dictionary<Uri, Dictionary<ushort, bool>> _collectedGlyphTypefaces;
System\Windows\Media\FontFamily.cs (3)
66public FontFamily(Uri baseUri, string familyName) 178public Uri BaseUri 507Uri locationUri = new Uri(Util.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
System\Windows\Media\FontFamilyConverter.cs (1)
80Uri baseUri = null;
System\Windows\Media\Fonts.cs (8)
57public static ICollection<FontFamily> GetFontFamilies(Uri baseUri) 80public static ICollection<FontFamily> GetFontFamilies(Uri baseUri, string location) 87Uri fontLocation; 88if (!string.IsNullOrEmpty(location) && Uri.TryCreate(location, UriKind.Absolute, out fontLocation)) 150public static ICollection<Typeface> GetTypefaces(Uri baseUri) 172public static ICollection<Typeface> GetTypefaces(Uri baseUri, string location) 232Uri fontLocation, 233Uri fontFamilyBaseUri,
System\Windows\Media\Generated\MediaTimeline.cs (4)
74public Uri Source 78return (Uri) GetValue(SourceProperty); 181internal static Uri s_Source = null; 207typeof(Uri),
System\Windows\Media\GlyphTypeface.cs (7)
55public GlyphTypeface(Uri typefaceSource) : this(typefaceSource, StyleSimulations.None) 64public GlyphTypeface(Uri typefaceSource, StyleSimulations styleSimulations) 96Uri typefaceSource = new Uri(uriPath); 111private void Initialize(Uri typefaceSource, StyleSimulations styleSimulations) 122Uri fontSourceUri; 279public Uri FontUri 1977private Uri _originalUri;
System\Windows\Media\ImageSourceConverter.cs (2)
30if (sourceType == typeof(string) || sourceType == typeof(Stream) || sourceType == typeof(Uri) || sourceType == typeof(byte[])) 91if (((value is string) && (!string.IsNullOrEmpty((string)value))) || (value is Uri))
System\Windows\Media\Imaging\BitmapDecoder.cs (22)
51Uri bitmapUri, 154Uri baseUri, 155Uri uri, 219Uri baseUri, 220Uri uri, 232Uri finalUri = null; 263((finalUri.Scheme == Uri.UriSchemeHttp) || 264(finalUri.Scheme == Uri.UriSchemeHttps))) 438Uri bitmapUri, 455Uri bitmapUri, 878Uri uri = new Uri(_baseUri, _uri); 988Uri uri, 1009Debug.Assert((uri.Scheme == Uri.UriSchemeHttp) || (uri.Scheme == Uri.UriSchemeHttps)); 1051else if (uri.Scheme == Uri.UriSchemeHttp) // for http 1055else if (uri.Scheme == Uri.UriSchemeHttps) // for https 1183private static Stream ProcessHttpsFiles(Uri uri, Stream stream) 1201private static Stream ProcessHttpFiles(Uri uri, Stream stream) 1216private static Stream ProcessUncFiles(Uri uri) 1324Uri uri, 1633internal Uri _uri; 1636internal Uri _baseUri;
System\Windows\Media\Imaging\BitmapDownload.cs (2)
26internal Uri inputUri; 70Uri uri,
System\Windows\Media\Imaging\BitmapFrame.cs (7)
38Uri baseUri, 39Uri uri, 93Uri bitmapUri 106Uri bitmapUri, 130Uri bitmapUri, 147Uri bitmapUri, 301public abstract Uri BaseUri { get; set; }
System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
154public override Uri BaseUri
System\Windows\Media\Imaging\BitmapFrameEncode.cs (1)
62public override Uri BaseUri
System\Windows\Media\Imaging\BitmapImage.cs (9)
32public BitmapImage(Uri uriSource) 42public BitmapImage(Uri uriSource, RequestCachePolicy uriCachePolicy) 94public Uri BaseUri 227private BitmapImage CheckCache(Uri uri) 253private void InsertInCache(Uri uri) 283Uri uri = UriSource; 639_uriSource = e.NewValue as Uri; 895private Uri _baseUri; 905private Uri _uriSource;
System\Windows\Media\Imaging\BmpBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\Generated\BitmapImage.cs (4)
160public Uri UriSource 164return (Uri) GetValue(UriSourceProperty); 460internal static Uri s_UriSource = null; 502typeof(Uri),
System\Windows\Media\Imaging\GifBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\IconBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\ImagingCache.cs (9)
22internal static void AddToImageCache(Uri uri, object obj) 28internal static void RemoveFromImageCache(Uri uri) 34internal static object CheckImageCache(Uri uri) 40internal static void AddToDecoderCache(Uri uri, object obj) 46internal static void RemoveFromDecoderCache(Uri uri) 52internal static object CheckDecoderCache(Uri uri) 58private static void AddToCache(Uri uri, object obj, Hashtable table) 100private static void RemoveFromCache(Uri uri, Hashtable table) 113private static object CheckCache(Uri uri, Hashtable table)
System\Windows\Media\Imaging\JpegBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (5)
25Uri baseUri, 26Uri uri, 42Uri uriToDecode = (_baseUri != null) ? new Uri(_baseUri, _uri) : _uri; 45if (uriToDecode.Scheme == Uri.UriSchemeHttp || 46uriToDecode.Scheme == Uri.UriSchemeHttps)
System\Windows\Media\Imaging\PngBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\TiffBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
51Uri baseUri, 52Uri uri,
System\Windows\Media\Imaging\WmpBitmapDecoder.cs (3)
34Uri bitmapUri, 61Uri baseUri, 62Uri uri,
System\Windows\Media\mediaclock.cs (2)
189Uri baseUri = ((IUriContext)Timeline).BaseUri; 191Uri toPlay = null;
System\Windows\Media\MediaPlayer.cs (3)
138public Uri Source 439Uri source 862Uri source
System\Windows\Media\MediaPlayerState.cs (11)
217internal Uri Source 652Uri source 811private void OpenMedia(Uri source) 832Uri appBase = SecurityHelper.GetBaseDirectory(AppDomain.CurrentDomain); 834Uri uriToOpen = ResolveUri(source, appBase); 847private Uri ResolveUri(Uri uri, Uri appBase) 861private string DemandPermissions(Uri absoluteUri) 937Uri source 1101private Uri _sourceUri;
System\Windows\Media\MediaTimeline.cs (4)
30public MediaTimeline(Uri source) : this() 40internal MediaTimeline(ITypeDescriptorContext context, Uri source) : this() 94Uri IUriContext.BaseUri 255private Uri _baseUri = null;
System\Windows\Media\Parsers.cs (1)
117Uri profileUri;
System\Windows\Navigation\BaseUriHelper.cs (37)
25private static readonly Uri _siteOfOriginBaseUri = PackUriHelper.Create(new Uri(SOOBASE)); 27private static readonly Uri _packAppBaseUri = PackUriHelper.Create(new Uri(APPBASE)); 29private static Uri _baseUri; 57typeof(Uri), 71public static Uri GetBaseUri(DependencyObject element) 73Uri baseUri = GetBaseUriCore(element); 114internal static Uri SiteOfOriginBaseUri 122internal static Uri PackAppBaseUri 133internal static bool IsPackApplicationUri(Uri uri) 157internal static void GetAssemblyAndPartNameFromPackAppUri(Uri uri, out Assembly assembly, out string partName) 165Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 227internal static void GetAssemblyNameAndPart(Uri uri, out string partName, out string assemblyName, out string assemblyVersion, out string assemblyKey) 283assemblyName = Uri.UnescapeDataString(assemblyInfo[0]); 323string assemblyName = Uri.UnescapeDataString(assemblyInfo[0]); 340internal static Uri GetResolvedUri(Uri baseUri, Uri orgUri) 345internal static Uri MakeRelativeToSiteOfOriginIfPossible(Uri sUri) 347if (Uri.Compare(sUri, SiteOfOriginBaseUri, UriComponents.Scheme, UriFormat.UriEscaped, StringComparison.OrdinalIgnoreCase) == 0) 349Uri packageUri = PackUriHelper.GetPackageUri(sUri); 359internal static Uri ConvertPackUriToAbsoluteExternallyVisibleUri(Uri packUri) 363Uri relative = MakeRelativeToSiteOfOriginIfPossible(packUri); 379internal static Uri FixFileUri(Uri uri) 382string.Equals(uri.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase) && 383string.Compare(uri.OriginalString, 0, Uri.UriSchemeFile, 0, Uri.UriSchemeFile.Length, StringComparison.OrdinalIgnoreCase) != 0) 391internal static Uri BaseUri 427internal static Uri AppendAssemblyVersion(Uri uri, Assembly assemblyInfo) 429Uri source = null; 430Uri baseUri = null; 521internal static Uri GetBaseUriCore(DependencyObject element) 523Uri baseUri = null; 537baseUri = doCurrent.GetValue(BaseUriProperty) as Uri;
PresentationCore.Tests (1)
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
301yield return new object[] { new KeySpline(0.1, 0.2, 0.3, 0.4), typeof(Uri), CultureInfo.InvariantCulture };
PresentationFramework (584)
MS\Internal\AppModel\AppModelKnownContentFactory.cs (7)
27internal static object BamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 32internal static object BamlConverterCore(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe) 47Uri partUri = PackUriHelper.GetPartUri(baseUri); 67internal static object XamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 72internal static object XamlConverterCore(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe) 129internal static object HtmlXappConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 134internal static object HtmlXappConverterCore(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe)
MS\Internal\AppModel\AppSecurityManager.cs (13)
38internal static void SafeLaunchBrowserDemandWhenUnsafe(Uri originatingUri, Uri destinationUri, bool fIsTopLevel) 56internal static LaunchResult SafeLaunchBrowserOnlyIfPossible(Uri originatingUri, Uri destinationUri, bool fIsTopLevel) 68internal static LaunchResult SafeLaunchBrowserOnlyIfPossible(Uri originatingUri, Uri destinationUri, string targetName, bool fIsTopLevel) 72bool isKnownScheme = (Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttp)) || 73(Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttps)) || 76bool fIsMailTo = string.Equals(destinationUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase); 108internal static void UnsafeLaunchBrowser(Uri uri, string targetFrame = null) 116internal static void ShellExecuteDefaultBrowser(Uri uri) 129if (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps)
MS\Internal\AppModel\ContentFilePart.cs (1)
29internal ContentFilePart(Package container, Uri uri) :
MS\Internal\AppModel\IContentContainer.cs (3)
18void OnContentReady(ContentType contentType, Object content, Uri uri, Object navState); 22void OnNavigationProgress(Uri uri, long bytesRead, long maxBytes); 25void OnStreamClosed(Uri uri);
MS\Internal\AppModel\INavigator.cs (4)
45Uri Source 56Uri CurrentSource 78bool Navigate(Uri source); 89bool Navigate(Uri source, Object extraData);
MS\Internal\AppModel\Journaling.cs (6)
145internal JournalEntryUri(JournalEntryGroupState jeGroupState, Uri uri) 186internal JournalEntryKeepAlive(JournalEntryGroupState jeGroupState, Uri uri, object keepAliveRoot) 734internal JournalEntryPageFunctionUri(JournalEntryGroupState jeGroupState, PageFunctionBase pageFunction, Uri markupUri) 744_markupUri = (Uri)info.GetValue("_markupUri", typeof(Uri)); 803private Uri _markupUri;
MS\Internal\AppModel\JournalNavigationScope.cs (4)
76public Uri Source 81public Uri CurrentSource 91public bool Navigate(Uri source) 95public bool Navigate(Uri source, object extraData)
MS\Internal\AppModel\MimeObjectFactory.cs (5)
15internal delegate object StreamToObjectFactoryDelegate(Stream s, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter); 16internal delegate object StreamToObjectFactoryDelegateCore(Stream s, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe); 29internal static object GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 34internal static object GetObjectAndCloseStreamCore(Stream s, ContentType contentType, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe) 59StreamToObjectFactoryDelegateCore methodCore = new StreamToObjectFactoryDelegateCore((Stream s, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter, bool isUnsafe) => method(s, baseUri, canUseTopLevelBrowser, sandboxExternalContent, allowAsync, isJournalNavigation, out asyncObjectConverter));
MS\Internal\AppModel\ProgressPage.cs (1)
59public Uri DeploymentPath
MS\Internal\AppModel\RequestStatusBarUpdateEventArgs.cs (1)
31internal RequestSetStatusBarEventArgs(Uri targetUri)
MS\Internal\AppModel\ResourceContainer.cs (5)
107public override bool PartExists(Uri uri) 143protected override PackagePart GetPartCore(Uri uri) 256private static ResourceManagerWrapper GetResourceManagerWrapper(Uri uri, out string partName, out bool isContentFile) 339protected override PackagePart CreatePartCore(Uri uri, string contentType, CompressionOption compressionOption) 344protected override void DeletePartCore(Uri uri)
MS\Internal\AppModel\ResourcePart.cs (1)
25public ResourcePart(Package container, Uri uri, string name, ResourceManagerWrapper rmWrapper) :
MS\Internal\Controls\WebBrowserEvent.cs (4)
58Uri source = String.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 146private static bool IsAllowedScriptScheme(Uri uri) 197Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 225Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString);
MS\Internal\Data\DefaultValueConverter.cs (2)
739public Uri BaseUri 798private Uri _cachedBaseUri;
MS\Internal\DataStreams.cs (1)
118if ((currentValue != null) && !(currentValue is Uri))
MS\Internal\IO\Packaging\PackageFilter.cs (2)
495private string GetFilterClsid(ContentType contentType, Uri partUri) 594private string GetPartExtension(Uri partUri)
MS\Internal\Navigation\BindStream.cs (2)
28Uri uri, IContentContainer cc, Dispatcher callbackDispatcher) 459private Uri _uri;
MS\Internal\Utility\BindUriHelper.cs (16)
23private static Uri placeboBase = new Uri(PLACEBOURI); 26internal static Uri GetResolvedUri(Uri originalUri) 68internal static Uri GetUriToNavigate(DependencyObject element, Uri baseUri, Uri inputUri) 70Uri uriToNavigate = inputUri; 98Uri currentSource = null; 138internal static bool StartWithFragment(Uri uri) 144internal static string GetFragment(Uri uri) 146Uri workuri = uri; 170internal static Uri GetUriRelativeToPackAppBase(Uri original) 177Uri resolved = GetResolvedUri(original); 178Uri packUri = BaseUriHelper.PackAppBaseUri; 179Uri relative = packUri.MakeRelativeUri(resolved);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (9)
53internal static string UriToString(Uri uri) 66internal static Uri BaseUri 78internal static bool DoSchemeAndHostMatch(Uri first, Uri second) 84internal static Uri GetResolvedUri(Uri baseUri, Uri orgUri) 86Uri newUri; 96Uri baseuri = baseUri ?? BindUriHelper.BaseUri;
System\Windows\Annotations\Storage\XmlStreamStore.cs (36)
47_predefinedNamespaces = new Dictionary<Uri, IList<Uri>>(6); 89public XmlStreamStore(Stream stream, IDictionary<Uri, IList<Uri>> knownNamespaces) 387public static IList<Uri> GetWellKnownCompatibleNamespaces(Uri name) 452public IList<Uri> IgnoredNamespaces 463public static IList<Uri> WellKnownNamespaces 467Uri[] res = new Uri[_predefinedNamespaces.Keys.Count]; 719private void LoadStream(IDictionary<Uri, IList<Uri>> knownNamespaces) 764private void CheckKnownNamespaces(IDictionary<Uri, IList<Uri>> knownNamespaces) 769IList<Uri> allNamespaces = new List<Uri>(); 772foreach (Uri name in _predefinedNamespaces.Keys) 778foreach (Uri knownNamespace in knownNamespaces.Keys) 792foreach (KeyValuePair<Uri, IList<Uri>> item in knownNamespaces) 796foreach (Uri name in item.Value) 818private XmlCompatibilityReader SetupReader(IDictionary<Uri, IList<Uri>> knownNamespaces) 823foreach (Uri name in _predefinedNamespaces.Keys) 831foreach (Uri knownNamespace in knownNamespaces.Keys) 846foreach (KeyValuePair<Uri, IList<Uri>> item in knownNamespaces) 850foreach (Uri name in item.Value) 877if (!Uri.IsWellFormedUriString(xmlNamespace, UriKind.RelativeOrAbsolute)) 881Uri namespaceUri = new Uri(xmlNamespace, UriKind.RelativeOrAbsolute); 989private void SetStream(Stream stream, IDictionary<Uri, IList<Uri>> knownNamespaces) 1033private List<Uri> _ignoredNamespaces = new List<Uri>(); 1044private static readonly Dictionary<Uri, IList<Uri>> _predefinedNamespaces;
System\Windows\Application.cs (30)
346public static void LoadComponent(Object component, Uri resourceLocator) 361Uri currentUri = new Uri(BaseUriHelper.PackAppBaseUri, resourceLocator); 437public static object LoadComponent(Uri resourceLocator) 456internal static object LoadComponent(Uri resourceLocator, bool bSkipJournaledProperties) 468Uri packUri = BindUriHelper.GetResolvedUri(BaseUriHelper.PackAppBaseUri, resourceLocator); 574public static StreamResourceInfo GetResourceStream(Uri uriResource) 606public static StreamResourceInfo GetContentStream(Uri uriContent) 633public static StreamResourceInfo GetRemoteStream(Uri uriRemote) 650Uri resolvedUri = BindUriHelper.GetResolvedUri(BaseUriHelper.SiteOfOriginBaseUri, uriRemote); 652Uri packageUri = PackUriHelper.GetPackageUri(resolvedUri); 653Uri partUri = PackUriHelper.GetPartUri(resolvedUri); 714public static string GetCookie(Uri uri) 727public static void SetCookie(Uri uri, string value) 1021public Uri StartupUri 1550Uri relativeUri = BindUriHelper.GetUriRelativeToPackAppBase(StartupUri); 1941internal Uri ApplicationMarkupBaseUri 2003private static PackagePart GetResourceOrContentPart(Uri uri) 2008Uri packAppUri = BaseUriHelper.PackAppBaseUri; 2009Uri resolvedUri = BindUriHelper.GetResolvedUri(packAppUri, uri); 2011Uri packageUri = PackUriHelper.GetPackageUri(resolvedUri); 2012Uri partUri = PackUriHelper.GetPartUri(resolvedUri); 2033private static Package GetResourcePackage(Uri packageUri) 2038Uri packUri = PackUriHelper.Create(packageUri); 2238private void ConfigAppWindowAndRootElement(object root, Uri uri) 2328private static bool IsComponentBeingLoadedFromOuterLoadBaml(Uri curComponentUri) 2424private Uri _startupUri; 2425private Uri _applicationMarkupBaseUri; 2502internal NestedBamlLoadInfo(Uri uri, Stream stream, bool bSkipJournalProperty) 2514internal Uri BamlUri 2542private Uri _BamlUri = null;
System\Windows\ColorConvertedBitmapExtension.cs (5)
97Uri imageUri = GetResolvedUri(_image); 98Uri sourceProfileUri = GetResolvedUri(_sourceProfile); 99Uri destinationProfileUri = GetResolvedUri(_destinationProfile); 132private Uri GetResolvedUri(string uri) 144private Uri _baseUri;
System\Windows\Controls\AVElementHelper.cs (7)
63_source = new SettableState<Uri>(null); 117internal Uri BaseUri 679Uri 681Uri sourceUri 724_source._value = (Uri)e.NewValue; 840private Uri _baseUri; 855private SettableState<Uri> _source;
System\Windows\Controls\CustomDictionarySources.cs (39)
15/// Collection of <see cref="Uri"/> objects representing local file system or UNC paths. 29internal class CustomDictionarySources : IList<Uri>, IList 41_uriList = new List<Uri>(); 55public IEnumerator<Uri> GetEnumerator() 75int IList<Uri>.IndexOf(Uri item) 88void IList<Uri>.Insert(int index, Uri item) 101void IList<Uri>.RemoveAt(int index) 103Uri uri = _uriList[index]; 116Uri IList<Uri>.this[int index] 125Uri oldUri = _uriList[index]; 141void ICollection<Uri>.Add(Uri item) 152void ICollection<Uri>.Clear() 158bool ICollection<Uri>.Contains(Uri item) 163void ICollection<Uri>.CopyTo(Uri[] array, int arrayIndex) 168int ICollection<Uri>.Count 176bool ICollection<Uri>.IsReadOnly 180return ((ICollection<Uri>)_uriList).IsReadOnly; 184bool ICollection<Uri>.Remove(Uri item) 205((IList<Uri>)this).Add((Uri)value); 206return _uriList.IndexOf((Uri)value); 211((IList<Uri>)this).Clear(); 226((IList<Uri>)this).Insert(index, (Uri)value); 247((IList<Uri>)this).Remove((Uri)value); 252((IList<Uri>)this).RemoveAt(index); 263((IList<Uri>)this)[index] = (Uri)value; 278get { return ((IList<Uri>)this).Count; } 334private static void ValidateUri(Uri item) 356private readonly List<Uri> _uriList;
System\Windows\Controls\DataGridColumn.cs (1)
1167else if (typeof(Uri).IsAssignableFrom(propertyType))
System\Windows\Controls\Frame.cs (12)
158Uri IUriContext.BaseUri 173protected virtual Uri BaseUri 177return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 227typeof(Uri), 230(Uri) null, 267Uri uriToNavigate = BindUriHelper.GetUriToNavigate(frame, ((IUriContext)frame).BaseUri, (Uri)e.NewValue); 296public Uri Source 298get { return (Uri) GetValue(SourceProperty); } 856public bool Navigate(Uri source) 874public bool Navigate(Uri source, Object extraData) 964public Uri CurrentSource
System\Windows\Controls\Image.cs (4)
265Uri IUriContext.BaseUri 280protected virtual Uri BaseUri 284return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 473Uri baseUri = BaseUriHelper.GetBaseUriCore(d);
System\Windows\Controls\MediaElement.cs (4)
119typeof(Uri), 208public Uri Source 210get { return (Uri)GetValue(SourceProperty); } 672Uri IUriContext.BaseUri
System\Windows\Controls\SoundPlayerAction.cs (8)
50typeof(Uri), 58public Uri Source 60get { return (Uri)GetValue(SourceProperty); } 68soundPlayerAction.OnSourceChangedHelper((Uri)e.NewValue); 78private void OnSourceChangedHelper(Uri newValue) 163private delegate Stream LoadStreamCaller(Uri uri); 168private Stream LoadStreamAsync(Uri uri) 242private Uri m_lastRequestedAbsoluteUri;
System\Windows\Controls\WebBrowser.cs (5)
97public void Navigate(Uri source) 120public void Navigate(Uri source, string targetFrameName, byte[] postData, string additionalHeaders) 144Uri uri = new Uri(source); 355public Uri Source 833private void DoNavigate(Uri source, ref object targetFrameName, ref object postData, ref object headers, bool ignoreEscaping = false)
System\Windows\Data\XmlDataProvider.cs (7)
66public Uri Source 237Uri IUriContext.BaseUri 246protected virtual Uri BaseUri 351Uri sourceUri = this.Source; 354Uri baseUri = _baseUri ?? BindUriHelper.BaseUri; 834private Uri _source; 835private Uri _baseUri;
System\Windows\Data\XmlNamespaceMapping.cs (3)
31public XmlNamespaceMapping(string prefix, Uri uri) 59public Uri Uri 150private Uri _uri;
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
229Uri uri = new Uri(ns, UriKind.RelativeOrAbsolute);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
143public static IEnumerable<ResourceDictionary> GetResourceDictionariesForSource(Uri uri) 190internal static void AddResourceDictionaryForUri(Uri uri, ResourceDictionary rd) 198private static void AddResourceDictionaryForUriImpl(Uri uri, ResourceDictionary rd) 206_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 220internal static void RemoveResourceDictionaryForUri(Uri uri, ResourceDictionary rd) 228private static void RemoveResourceDictionaryForUriImpl(Uri uri, ResourceDictionary rd) 253private static void RemoveEntries(Uri uri, 268private static Dictionary<Uri, List<WeakReference<ResourceDictionary>>> _dictionariesFromUri;
System\Windows\Diagnostics\ResourceDictionaryInfo.cs (2)
19Uri sourceUri) 46public Uri SourceUri { get; private set; }
System\Windows\Documents\DocumentReference.cs (13)
131typeof(Uri), 134(Uri) null, 144Uri oldSource = (Uri) e.OldValue; 145Uri newSource = (Uri) e.NewValue; 159public Uri Source 161get { return (Uri) GetValue(SourceProperty); } 170Uri IUriContext.BaseUri 172get { return (Uri)GetValue(BaseUriHelper.BaseUriProperty); } 248private Uri _ResolveUri() 250Uri uriToNavigate = this.Source; 263Uri uriToLoad = _ResolveUri();
System\Windows\Documents\DocumentSequence.cs (2)
463Uri IUriContext.BaseUri 465get { return (Uri) GetValue(BaseUriHelper.BaseUriProperty); }
System\Windows\Documents\FixedDocument.cs (13)
175Uri IUriContext.BaseUri 177get { return (Uri) GetValue(BaseUriHelper.BaseUriProperty); } 865Uri baseUri = BaseUriHelper.GetBaseUri(this); 873Uri structureUri = GetStructureUriFromRelationship(baseUri, _structureRelationshipName); 893Uri baseUri = BaseUriHelper.GetBaseUri(fixedPage); 901Uri structureUri = GetStructureUriFromRelationship(baseUri, _storyFragmentsRelationshipName); 923private static object ValidateAndLoadPartFromAbsoluteUri(Uri AbsoluteUriDoc, bool validateOnly, string rootElement, out ContentType mimeType) 964private static Uri GetStructureUriFromRelationship(Uri contentUri, string relationshipName) 966Uri absTargetUri = null; 969Uri partUri = PackUriHelper.GetPartUri(contentUri); 972Uri packageUri = PackUriHelper.GetPackageUri(contentUri); 985Uri targetUri = null;
System\Windows\Documents\FixedElement.cs (3)
249NavigateUri = GetValue(NavigateUriProperty) as Uri 294Uri source = _object as Uri;
System\Windows\Documents\FixedPage.cs (13)
325public static Uri GetNavigateUri(UIElement element) 328return (Uri)element.GetValue(NavigateUriProperty); 336public static void SetNavigateUri(UIElement element, Uri uri) 348Uri IUriContext.BaseUri 350get { return (Uri) GetValue(BaseUriHelper.BaseUriProperty); } 548typeof(Uri), 551(Uri) null, 602internal static Uri GetLinkUri(IInputElement element, Uri inputUri) 623Uri workuri = inputUri; 656Uri baseUri = BaseUriHelper.GetBaseUri(dpo); 657Uri absoluteUri = BindUriHelper.GetUriToNavigate(dpo, baseUri, inputUri); 1087Uri startPartUri = ((IUriContext)docSequence).BaseUri;
System\Windows\Documents\FixedSchema.cs (22)
70Uri packageUri, 71Uri baseUri 128Uri packageUri, 129Uri baseUri) 165Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative)); 166Uri absTargetUri = PackUriHelper.Create(_packageUri, targetUri); 224private Uri _packageUri; 225private Uri _baseUri; 269public virtual void ValidateRelationships(Package package, Uri packageUri, Uri partUri, ContentType mimeType) 536public override void ValidateRelationships(Package package, Uri packageUri, Uri partUri, ContentType mimeType) 554Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 555Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 576Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 577Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 596Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 597Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 624Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 625Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 647Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 648Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri);
System\Windows\Documents\FixedSOMImage.cs (5)
27private FixedSOMImage(Rect imageRect, GeneralTransform trans, Uri sourceUri, FixedNode node, DependencyObject o) : base(node, trans) 48Uri imageUri = null; 69Uri imageUri = null; 111internal Uri Source 134private Uri _source;
System\Windows\Documents\FixedSOMTextRun.cs (1)
414private Uri _fontUri;
System\Windows\Documents\FixedTextBuilder.cs (10)
1179public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1188public Uri Uri 1234private Uri _uri; 1257public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1266public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1276Uri relUri = FixedPage.GetNavigateUri(e); 1409Uri navUri = FixedPage.GetNavigateUri(child); 1461Uri navUri = _logicalHyperlinkContainer.GetUri(element, page, out shadowHyperlink); 1718private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1793private Uri _currentNavUri;
System\Windows\Documents\Glyphs.cs (6)
78Uri IUriContext.BaseUri 82return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 294Uri uri = FontUri; 879DependencyProperty.Register( "FontUri", typeof(Uri), typeof(Glyphs), 885public Uri FontUri 889return (Uri)GetValue(FontUriProperty);
System\Windows\Documents\Hyperlink.cs (18)
333typeof(Uri), 336(Uri)null, 375public Uri NavigateUri 379return (Uri)GetValue(NavigateUriProperty); 523private static Uri s_cachedNavigateUri; 542private static void CacheNavigateUri(DependencyObject d, Uri targetUri) 558private static void NavigateToUri(IInputElement sourceElement, Uri targetUri, string targetWindow) 571Uri cachedUri = Hyperlink.s_cachedNavigateUri; 615Uri targetUri = (Uri)dObject.GetValue(GetNavigateUriProperty(element)); 738Uri IUriContext.BaseUri 753protected virtual Uri BaseUri 757return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 881Uri navigateUri = (Uri)e.NewValue; 1114Uri inputUri = (Uri)dObject.GetValue(GetNavigateUriProperty(element)); 1125internal static void RaiseNavigate(IInputElement element, Uri targetUri, string targetWindow)
System\Windows\Documents\NLGSpellerInterop.cs (1)
319internal override object LoadDictionary(Uri item, string trustedFolder)
System\Windows\Documents\PageContent.cs (13)
124Uri uriToLoad = _ResolveUri(); 213typeof(Uri), 216(Uri) null, 228public Uri Source 230get { return (Uri) GetValue(SourceProperty); } 300Uri IUriContext.BaseUri 304return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 363Uri uriToLoad = _ResolveUri(); 480private Uri _ResolveUri() 482Uri uriToNavigate = this.Source; 522Uri uriToLoad = _ResolveUri(); 579internal static void _LoadPageImpl(Uri baseUri, Uri uriToLoad, out FixedPage fixedPage, out Stream pageStream)
System\Windows\Documents\PageContentAsyncResult.cs (4)
40internal PageContentAsyncResult(AsyncCallback callback, object state, Dispatcher dispatcher, Uri baseUri, Uri source, FixedPage child) 256private Uri _baseUri; 257private Uri _source;
System\Windows\Documents\RtfToXamlReader.cs (1)
8350if (!Uri.IsWellFormedUriString(pictureUri, UriKind.Absolute))
System\Windows\Documents\Serialization\ISerializerFactory.cs (1)
42Uri ManufacturerWebsite
System\Windows\Documents\Serialization\SerializerDescriptor.cs (2)
243public Uri ManufacturerWebsite 363private Uri _manufacturerWebsite;
System\Windows\Documents\Speller.cs (19)
276foreach (Uri item in dictionaryLocations) 312internal void OnDictionaryUriAdded(Uri uri) 327Uri pathUri; 345internal void OnDictionaryUriRemoved(Uri uri) 416private Dictionary<Uri, DictionaryInfo> UriMap 422_uriMap = new Dictionary<Uri, DictionaryInfo>(); 1533private static Uri ResolvePathUri(Uri uri) 1535Uri fileUri; 1554private void LoadDictionaryFromPackUri(Uri item) 1557Uri tempLocationUri; 1578private void CleanupDictionaryTempFile(Uri tempLocationUri) 1602private static Uri LoadPackFile(Uri uri) 1606Uri resolvedUri = MS.Internal.Utility.BindUriHelper.GetResolvedUri(BaseUriHelper.PackAppBaseUri, uri); 1923internal DictionaryInfo(Uri pathUri, object lexicon) 1929internal Uri PathUri 1952private readonly Uri _pathUri; 2036private Dictionary<Uri, DictionaryInfo> _uriMap;
System\Windows\Documents\SpellerInteropBase.cs (1)
189internal abstract object LoadDictionary(Uri item, string trustedFolder);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
233internal override object LoadDictionary(Uri item, string trustedFolder)
System\Windows\Documents\WpfPayload.cs (8)
316Uri payloadUri = new Uri($"payload://wpf{newWpfPayoutCount}", UriKind.Absolute); 317Uri entryPartUri = System.IO.Packaging.PackUriHelper.Create(payloadUri, xamlEntryPart.Uri); // gives an absolute uri of the entry part 318Uri packageUri = System.IO.Packaging.PackUriHelper.GetPackageUri(entryPartUri); // extracts package uri from combined package+part uri 455Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 683Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 702Uri imagePartUri = new Uri(XamlPayloadDirectory + imageSourceString, UriKind.Relative); 767Uri entryPartUri = new Uri(XamlPayloadDirectory + XamlEntryName, UriKind.Relative); 813Uri entryPartUri = entryPartRelationship.TargetUri;
System\Windows\Documents\XPSS0ValidatingLoader.cs (11)
30internal object Load(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType) 35internal void Validate(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType, string rootElement) 50private object Load(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType, string rootElement) 67Uri uri = pc.BaseUri; 69Uri packageUri = PackUriHelper.GetPackageUri(uri); 70Uri partUri = PackUriHelper.GetPartUri(uri); 74Uri parentPackageUri = null; 106Uri targetUri = PackUriHelper.ResolvePartUri(partUri, relationShip.TargetUri); 107Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 171internal void UriHitHandler(int node,Uri uri) 195foreach (Uri resUri in validResources.Keys)
System\Windows\Interop\BrowserInteropHelper.cs (1)
39public static Uri Source => null;
System\Windows\Interop\IErrorPage.cs (2)
16Uri DeploymentPath { get; set;} 41Uri SupportUri { get; set;}
System\Windows\Interop\IProgressPage.cs (1)
16Uri DeploymentPath { get; set;}
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
77case 1: assembly = typeof(System.Uri).Assembly; break; 797case 704: t = () => typeof(Uri); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
8120typeof(System.Uri), // type 8126SetDelegate = delegate (object target, object value) { ((System.Windows.ResourceDictionary)target).Source = (System.Uri)value; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12021typeof(System.Uri),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
103case 1: assembly = new Baml6Assembly(typeof(System.Uri).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (3)
4346private Uri GetBaseUri( ) 4348Uri baseuri = ParserContext.BaseUri; 4465Uri baseuri = GetBaseUri();
System\Windows\Markup\KnownTypes.cs (1)
6251case KnownElements.Uri: t = typeof(System.Uri); break;
System\Windows\Markup\ParserContext.cs (3)
366public Uri BaseUri 460Uri sameUri = new Uri(serializedSafe); 813private Uri _baseUri;
System\Windows\Markup\ProvideValueServiceProvider.cs (1)
69Uri IUriContext.BaseUri
System\Windows\Markup\WpfXamlLoader.cs (4)
19public static object Load(System.Xaml.XamlReader xamlReader, bool skipJournaledProperties, Uri baseUri) 28bool skipJournaledProperties, Object rootObject, XamlObjectWriterSettings parentSettings, Uri baseUri) 36Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) 70bool skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
System\Windows\Markup\XamlParseException.cs (6)
111internal XamlParseException(string message, int lineNumber, int linePosition, Uri baseUri, Exception innerException) 192public Uri BaseUri 270internal static string GetMarkupFilePath(Uri resourceUri) 310Uri baseUri, 412Uri baseUri, 546private Uri _baseUri = null;
System\Windows\Markup\XamlReader.cs (8)
300internal static bool ShouldReWrapException(Exception e, Uri baseUri) 489internal static void RewrapException(Exception e, Uri baseUri) 494internal static void RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 499internal static XamlParseException WrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 977Uri baseUri = uriContext?.BaseUri; 1133private static Uri GetBaseUri(Uri uri) 1169private Uri _baseUri;
System\Windows\Navigation\JournalEntry.cs (8)
82internal JournalEntry(JournalEntryGroupState jeGroupState, Uri uri) 99_source = (Uri)info.GetValue("_source", typeof(Uri)); 197public Uri Source 319internal static string GetDisplayName(Uri uri, Uri siteOfOrigin) 330Uri relative = BaseUriHelper.MakeRelativeToSiteOfOriginIfPossible(uri); 444private Uri _source;
System\Windows\Navigation\NavigatingCancelEventArgs.cs (3)
34Uri uri, Object content, CustomContentState customContentState, 51public Uri Uri 160 private Uri _uri;
System\Windows\Navigation\NavigationEventArgs.cs (3)
31internal NavigationEventArgs(Uri uri, Object content, Object extraData, WebResponse response, object Navigator, bool isNavigationInitiator) 44public Uri Uri 118private Uri _uri;
System\Windows\Navigation\NavigationFailedEventArgs.cs (3)
31internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) 44public Uri Uri 122private Uri _uri;
System\Windows\Navigation\NavigationProgressEventArgs.cs (3)
32internal NavigationProgressEventArgs(Uri uri, long bytesRead, long maxBytes, object Navigator) 43public Uri Uri 84private Uri _uri;
System\Windows\Navigation\NavigationService.cs (59)
94Uri bpu = e.Uri; 198private static bool IsSameUri(Uri baseUri, Uri a, Uri b, bool withFragment) 209Uri aResolved = BindUriHelper.GetResolvedUri(baseUri, a); 210Uri bResolved = BindUriHelper.GetResolvedUri(baseUri, b); 235private void NavigateToFragmentOrCustomContentState(Uri uri, object navState) 288Uri resolvedUri = BindUriHelper.GetResolvedUri(_currentSource, uri); 734private void SetBaseUri(DependencyObject dobj, Uri fullUri) 738Uri curBaseUri; 743curBaseUri = (Uri)(dobj.GetValue(BaseUriHelper.BaseUriProperty)); 751Uri baseUri = fullUri; 845private bool HookupNewTree(Object newTree, NavigateInfo navInfo, Uri newUri) 964private bool OnBeforeSwitchContent(Object newBP, NavigateInfo navInfo, Uri newUri) 1081void IContentContainer.OnContentReady(ContentType contentType, Object bp, Uri bpu, Object navState) 1114Uri bpuClean = BindUriHelper.GetUriRelativeToPackAppBase(bpu); 1204void IContentContainer.OnNavigationProgress(Uri sourceUri, long bytesRead, long maxBytes) 1253void IContentContainer.OnStreamClosed(Uri sourceUri) 1308public Uri Source 1349public Uri CurrentSource 1444public bool Navigate(Uri source) 1465public bool Navigate(Uri source, Object navigationState) 1474public bool Navigate(Uri source, Object navigationState, bool sandboxExternalContent) 1483internal bool Navigate(Uri source, Object navigationState, bool sandboxExternalContent, bool navigateOnSourceChanged) 1504Uri resolvedSource = null; 1625Uri source = navigateInfo?.Source; 1985private bool FireNavigating(Uri source, Object bp, Object navState, WebRequest request) 1988Uri cleanSource = BindUriHelper.GetUriRelativeToPackAppBase(source); 2051private bool HandleNavigating(Uri source, Object content, Object navState, WebRequest newRequest, bool navigateOnSourceChanged) 2306private void FireNavigationProgress(Uri source) 2599internal void DoNavigate(Uri source, NavigationMode f, Object navState) 2624Uri requestUri = BindUriHelper.GetUriRelativeToPackAppBase(_request.RequestUri); 2709private WebRequest CreateWebRequest(Uri resolvedDestinationUri, NavigateInfo navInfo) 2844private void GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState) 2856Uri requestUri = BindUriHelper.GetUriRelativeToPackAppBase(_request.RequestUri); 2863Uri cleanSource = BindUriHelper.GetUriRelativeToPackAppBase(destinationUri); 2950private void DelegateToBrowser(bool isPack, Uri destinationUri) 3025Uri source = navigateInfo?.Source; 3028Uri resolvedSource = BindUriHelper.GetResolvedUri(null, source); 3161Uri baseUri = pfBase.GetValue(BaseUriHelper.BaseUriProperty) as Uri; 3167Uri markupUri; 4015private Uri _currentSource; 4016private Uri _currentCleanSource; 4134internal RequestState(WebRequest request, Uri source, Object navState, Dispatcher callbackDispatcher) 4150internal Uri Source 4175private Uri _source; 4191internal BPReadyEventArgs(Object content, Uri uri) 4209internal Uri Uri 4218private Uri _uri; 4226internal NavigateInfo(Uri source) 4231internal NavigateInfo(Uri source, NavigationMode navigationMode) 4237internal NavigateInfo(Uri source, NavigationMode navigationMode, JournalEntry journalEntry) 4244internal Uri Source 4281private Uri _source; 4297internal PageFunctionReturnInfo(PageFunctionBase finishingChildPageFunction, Uri source, NavigationMode navigationMode, JournalEntry journalEntry, object returnEventArgs) 4323internal NavigateQueueItem(Uri source, object content, NavigationMode mode, Object navState, NavigationService nc) 4360internal Uri Source 4395private Uri _source;
System\Windows\Navigation\NavigationWindow.cs (11)
243public bool Navigate(Uri source) 259public bool Navigate(Uri source, Object extraData) 387Uri IUriContext.BaseUri 391return (Uri)GetValue(BaseUriHelper.BaseUriProperty); 549(Uri)null, 569Uri uriToNavigate = BindUriHelper.GetUriToNavigate(navWin, d.GetValue(BaseUriHelper.BaseUriProperty) as Uri, (Uri)e.NewValue); 606public Uri Source 608get { return (Uri)GetValue(SourceProperty); } 617public Uri CurrentSource
System\Windows\Navigation\RequestNavigateEventArgs.cs (3)
15private Uri _uri; 33public RequestNavigateEventArgs(Uri uri, string target) : base() 45public Uri Uri
System\Windows\ResourceDictionary.cs (13)
126public Uri Source 143Uri sourceUri; 165Uri uri = BindUriHelper.GetResolvedUri(_baseUri, sourceUri); 185Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this, SystemResources.ClassicResourceName); 198Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this, SystemResources.GenericResourceName); 309Uri System.Windows.Markup.IUriContext.BaseUri 1432Uri baseUri = (_rootElement is IUriContext) ? ((IUriContext)_rootElement).BaseUri : _baseUri; 2589public ResourceDictionarySourceUriWrapper(Uri originalUri, Uri versionedUri) : base(originalUri.OriginalString, UriKind.RelativeOrAbsolute) 2595internal Uri OriginalUri 2601internal Uri VersionedUri 2631private Uri _source = null; 2632private Uri _baseUri = null;
System\Windows\SourceUriTypeConverterMarkupExtension.cs (3)
33Uri convertedUri = convertedValue as Uri; 37Uri appendedVersionUri = BaseUriHelper.AppendAssemblyVersion(convertedUri, _assemblyInfo);
System\Windows\Standard\Verify.cs (1)
215public static void UriIsAbsolute(Uri uri, string parameterName)
System\Windows\SystemResources.cs (5)
891private ResourceDictionary LoadDictionary(Assembly assembly, string assemblyName, string resourceName, bool isTraceEnabled, out Uri dictionarySourceUri) 941Uri streamUri = null; 943if (Uri.TryCreate(packUri, UriKind.Absolute, out streamUri)) 992private Uri _themedDictionarySourceUri; 993private Uri _genericDictionarySourceUri;
System\Windows\TemplateContent.cs (1)
1159type == typeof(string) || type == typeof(Uri) || type == typeof(Type)
System\Windows\ThemeDictionaryExtension.cs (3)
16[MarkupExtensionReturnType(typeof(Uri))] 97private static Uri GenerateUri(string assemblyName, string resourceName, ReadOnlySpan<char> themeName) 118internal static Uri GenerateFallbackUri(ResourceDictionary dictionary, string resourceName)
System\Windows\ThemeManager.cs (2)
189Uri dictionaryUri = new Uri(FluentColorDictionaryUri + colorFileName, UriKind.Absolute); 370private static ThemeMode GetThemeModeFromSourceUri(Uri source)
PresentationFramework.Fluent.Tests (1)
ResourceTests\FluentResourceDictionaryTests.cs (1)
70var uri = new Uri(source, UriKind.RelativeOrAbsolute);
PresentationFramework.Tests (1)
System\Windows\Controls\VirtualizationCacheLengthConverter.Tests.cs (1)
282yield return new object[] { new VirtualizationCacheLength(666.666), typeof(Uri), CultureInfo.InvariantCulture };
PresentationUI (71)
artifacts\obj\PresentationUI\x86\Debug\net10.0\InstallationError.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/installationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS\Internal\Documents\FindToolBar.g.cs (1)
171System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/ms/internal/documents/findtoolbar.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationError.g.cs (1)
123System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationProgress.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationprogress.xaml", System.UriKind.Relative);
InstallationError.xaml.cs (4)
33public Uri DeploymentPath 125public Uri SupportUri 226private Uri _deploymentPath; 230private Uri _supportUri;
MS\Internal\Documents\Application\AddressUtility.cs (5)
28internal static bool IsMailtoUri(Uri mailtoUri) 30return mailtoUri is not null && string.Equals(mailtoUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase); 38internal static string GetEmailAddressFromMailtoUri(Uri mailtoUri) 62internal static Uri GenerateMailtoUri(string address) 70Uri.UriSchemeMailto,
MS\Internal\Documents\Application\CriticalFileToken.cs (3)
37internal CriticalFileToken(Uri location) 109internal Uri Location 123private Uri _location;
MS\Internal\Documents\Application\Document.cs (2)
279internal Uri Uri 335private Uri _uri;
MS\Internal\Documents\Application\DocumentManager.cs (2)
90Uri source, CriticalFileToken fileToken) 111Uri source, Stream stream)
MS\Internal\Documents\Application\DocumentProperties.cs (3)
30private DocumentProperties(Uri uri) 216internal static void InitializeCurrentDocumentProperties(Uri uri) 398private Uri _uri;
MS\Internal\Documents\Application\DocumentStream.cs (4)
737Uri location = MakeTemporaryFileName(inSameFolder, i); 801private Uri MakeTemporaryFileName(bool inSameFolder, int generation) 951private static void ThrowIfInvalidXpsFileForSave(Uri location) 968private static void ThrowIfInvalidXpsFileForOpen(Uri location)
MS\Internal\Documents\Application\FileController.cs (1)
430Uri originalUri = doc.Uri;
MS\Internal\Documents\Application\FilePresentation.cs (1)
92Uri file = new Uri(filePath);
MS\Internal\Documents\Application\NavigationHelper.cs (2)
41internal static void NavigateToExternalUri(Uri uri) 73internal delegate void NavigateDelegate(Uri uri);
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
83Uri partUri, string contentType, CompressionOption compressionOption)
MS\Internal\Documents\Application\TransactionalPackage.cs (10)
156Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(part.Uri); 210Uri partUri, string contentType, CompressionOption compressionOption) 220Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri); 262protected override void DeletePartCore(Uri partUri) 272Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri); 344protected override PackagePart GetPartCore(Uri partUri) 350Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri); 522Uri partUri = packagePart.Uri; 572private Dictionary<Uri, WriteableOnDemandPackagePart> _activeParts = 573new Dictionary<Uri, WriteableOnDemandPackagePart>();
MS\Internal\Documents\RightsManagementLicense.cs (2)
143internal Uri ReferralInfoUri 171private Uri _referralInfoUri;
MS\Internal\Documents\RightsManagementManager.cs (3)
1122if (!Uri.Equals( 1340private bool ProcessRMTemplate(Uri templateFilename, out bool exitDialog) 1420private string GetTemplateFromFile(Uri templateFilename)
MS\Internal\Documents\RightsManagementProvider.cs (1)
669Uri referralInfoUri = null;
MS\Internal\Documents\RMPermissions.cs (2)
53Uri referralUri = userLicense.ReferralInfoUri; 201private Uri _referralUri;
MS\Internal\Documents\RMPublishingDialog.cs (14)
62Uri referralUri = licenseEnumerator.Current.ReferralInfoUri; 183internal Uri ReferralUri 206internal Uri Template 320private Uri GetTemplatePath() 340Uri newUri = null; 372List<Uri> templateList = new List<Uri>(); 852private Uri _referralUri; 867private Uri _templatePath; 977public ServerSideTemplate(Uri filename) 985public Uri Template 1015public static List<ServerSideTemplate> BuildTemplateList(List<Uri> files) 1021foreach (Uri file in files) 1031private Uri _template;
TenFeetInstallationError.xaml.cs (4)
35public Uri DeploymentPath 129public Uri SupportUri 230private Uri _deploymentPath; 234private Uri _supportUri;
TenFeetInstallationProgress.xaml.cs (3)
71public Uri DeploymentPath 76DownloadFrom.Text = (value as Uri).ToString(); 170private Uri _deploymentPath;
ReachFramework (300)
AlphaFlattener\Interfaces.cs (1)
58Uri navigateUri,
AlphaFlattener\MetroDevice.cs (1)
714Uri navigateUri,
AlphaFlattener\Utility.cs (1)
1761public static Uri GetFontUri(GlyphTypeface typeface)
packaging\XpsDigitalSignature.cs (15)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 308ICollection<Uri> containingCollection, 309ICollection<Uri> containedCollection 315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 316foreach( Uri uri in containingCollection ) 325foreach( Uri uri in containedCollection ) 342private bool IsOptional( Uri uri ) 364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>();
Packaging\XpsDocument.cs (8)
737Dictionary<Uri,Uri> dependentList, 854Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> (); 909internal static void SaveWithUI(IntPtr parent, Uri source, Uri target)
Packaging\XpsFixedDocumentReaderWriter.cs (14)
54Uri pageSource 73Uri Uri { get; } 212Uri Uri { get; } 478Uri pageUri = this.CurrentXpsManager.CreateStructureUri(); 517Uri targetUri, 562Uri pageUri 704Dictionary<Uri,Uri> dependentList, 808Dictionary<Uri,Uri> dependents, 844Uri partUri, 958Uri relativeUri = new Uri(attribute, UriKind.Relative); 969AddPageToCache( Uri pageUri ) 1051Uri documentStructureUri = PackUriHelper.ResolvePartUri(documentStructureRelationship.SourceUri,
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (11)
51Uri documentSource 70Uri Uri { get; } 156Uri Uri { get; } 361Uri documentUri 436Dictionary<Uri,Uri> dependentList, 477Uri partUri 557Uri relativeUri = new Uri(attribute, UriKind.Relative); 574Dictionary<Uri,Uri> dependents, 603AddDocumentToCache(Uri documentUri)
Packaging\XpsFixedPageReaderWriter.cs (42)
56Uri resourceUri 72Uri uri 88Uri uri 104Uri uri 120Uri uri 139Uri Uri { get; } 222Uri resourceUri 378Uri Uri { get; } 469_fontCache = new Dictionary<Uri, XpsFont>(MS.Internal.UriComparer.Default); 470_colorContextCache = new Dictionary<Uri, XpsColorContext>(); 471_resourceDictionaryCache = new Dictionary<Uri, XpsResourceDictionary>(); 472_imageCache = new Dictionary<Uri, XpsImage>(); 473_resourceCache = new Dictionary<Uri, XpsResource>(); 725Uri targetUri, 776Uri resourceUri 856Uri pageUri = this.CurrentXpsManager.CreateFragmentUri(PageNumber); 895Uri resourceUri 1110Uri uri 1136Uri uri 1162Uri uri 1275Uri uri 1352Dictionary<Uri,Uri> dependentList, 1403Dictionary<Uri,Uri> dependents 1410foreach( Uri uri in _imageCache.Keys) 1417foreach( Uri uri in _fontCache.Keys) 1424foreach( Uri uri in _colorContextCache.Keys) 1431foreach( Uri uri in _resourceDictionaryCache.Keys) 1439foreach( Uri uri in _resourceCache.Keys) 1517Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default); 1520Uri absUri = PackUriHelper.ResolvePartUri(parentPart.Uri, rel.TargetUri); 1525Uri absUri = PackUriHelper.ResolvePartUri(Uri, rel.TargetUri); 1802Uri resourceUri 1847Uri imageUri 1892Uri fontUri 1962private Dictionary<Uri,XpsImage> _imageCache; 1963private Dictionary<Uri,XpsFont> _fontCache; 1964private Dictionary<Uri,XpsColorContext> _colorContextCache; 1965private Dictionary<Uri,XpsResourceDictionary> _resourceDictionaryCache; 1966private Dictionary<Uri,XpsResource> _resourceCache;
Packaging\XpsInterleavingPolicy.cs (1)
607Uri Uri { get; }
Packaging\XpsManager.cs (37)
54_cachedParts = new Dictionary<Uri, PackagePart>(11); 171_packageCache = new Dictionary<Uri,int>(); 289Uri partUri 356System.Uri partUri = GenerateUniqueUri(contentType); 364Uri partUri 398System.Uri partUri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 441Uri printTicketUri = GeneratePrintTicketUri(relatedPart); 495Uri printTicketUri = GeneratePrintTicketUri(relatedPart); 528Uri uri 572GetSignatureDefinitionPart(Uri documentUri) 616Uri propertiesPartUri = 664GetPrintTicketPart(Uri documentUri) 690Uri printTicketUri = PackUriHelper.ResolvePartUri(documentUri, printTicketRel.TargetUri); 767Dictionary<Uri,Uri> dependents, 782Uri 786Uri SigOriginRelUri = digSigMgr.SignatureOrigin; 811Uri SigOriginUri = GetSignatureOriginUri(); 845IEnumerable<System.Uri> partList, 913Uri 935Uri 984_cachedParts = new Dictionary<Uri, PackagePart>(11); 1000Uri 1033Uri 1076Uri 1260AddPackageToCache(Uri uri, Package package ) 1271AddPackageReference( Uri uri ) 1281RemovePackageReference( Uri uri, Package package ) 1315private Uri _uri; 1321private Dictionary<Uri, PackagePart> _cachedParts; 1325internal static Dictionary<Uri, int> _packageCache; 1423Uri startPartUri = PackUriHelper.ResolvePartUri(startingPartRelationship.SourceUri, 1503Uri baseUri, 1504Uri fileUri 1507Uri dummyAbsoluteUri = new Uri("http://dummy"); 1520Uri relativeUri = baseUri.MakeRelativeUri(fileUri); 1521Uri unescapedUri = new Uri(relativeUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
Packaging\XpsPartBase.cs (2)
48public Uri Uri 100private Uri _uri;
Packaging\XpsResource.cs (2)
62Uri 64Uri inUri
Packaging\XpsResourcePolicy.cs (14)
181Dictionary<UInt32, Uri> 195Dictionary<int, Uri> 212Dictionary<int, Uri> 226Dictionary<int, Uri> 240Dictionary<int, Uri> 254Dictionary<int, Uri> 268Dictionary<int, Uri> 286Dictionary<UInt32, Uri> _imageCrcTable; 289Dictionary<int,Uri> _imageUriHashTable; 292Dictionary<int, Uri> _currentPageImageTable; 295Dictionary<int, Uri> _colorContextTable; 298Dictionary<int, Uri> _currentPageColorContextTable; 301Dictionary<int, Uri> _resourceDictionaryTable; 304Dictionary<int, Uri> _currentPageResourceDictionaryTable;
Packaging\XPSSignatureDefinition.cs (3)
44Uri 96private Uri _pageUri; 360Uri pageUri = new Uri(SpotLocation.PageUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
PrintConfig\FallbackPTProvider.cs (2)
385if (!Uri.IsWellFormedUriString(deviceNamepace, UriKind.Absolute)) 391Uri.EscapeDataString(this._driverName),
Serialization\ColorTypeConverter.cs (4)
276Uri profileUri = null; 282Dictionary<int, Uri> colorContextTable = manager.ResourcePolicy.ColorContextTable; 283Dictionary<int, Uri> currentPageColorContextTable = manager.ResourcePolicy.CurrentPageColorContextTable; 354Uri safeUnescapedUri = new Uri(profileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
Serialization\DrawingContextFlattener.cs (3)
77Uri navigateUri, 350Uri navigateUri, 920Uri navigateUri,
Serialization\FontTypeConverter.cs (2)
179Uri resourceUri = fontSubsetter.ComputeFontSubset(fontGlyphRun); 238return typeof(Uri).Equals(type);
Serialization\ImageSourceTypeConverter.cs (9)
171Uri imageUri = GetBitmapSourceFromImageTable(manager, bitmapSource); 176Dictionary<int, Uri> currentPageImageTable = manager.ResourcePolicy.CurrentPageImageTable; 229Uri sourceUri = new Uri(decoder.ToString()); 320return typeof(Uri).Equals(type); 432Uri 435Uri imageUri = null; 452Dictionary<int, Uri> imageUriHashTable = manager.ResourcePolicy.ImageUriHashTable; 472Dictionary<UInt32, Uri> imageCrcTable = manager.ResourcePolicy.ImageCrcTable; 492AddBitmapSourceToImageTables(PackageSerializationManager manager, Uri imageUri)
Serialization\Manager\MetroSerializationManager.cs (1)
278Uri targetUri,
Serialization\Manager\NGCSerializationManager.cs (1)
335Uri targetUri,
Serialization\Manager\NGCSerializationManagerAsync.cs (1)
553Uri targetUri,
Serialization\Manager\NullPackagingPolicy.cs (4)
714Uri targetUri, 731Uri targetUri 849Uri 864Uri
Serialization\Manager\ReachDocumentPageSerializer.cs (4)
45((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 50((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
51((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 137((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializer.cs (6)
61((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 63((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 68((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 98((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 100((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 105((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (6)
90((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 92((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 97((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 127((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 129((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 134((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializer.cs (6)
69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 79((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>(); 109((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 114((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 119((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
106((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 111((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 141((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 146((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
42((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 44((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 49((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (2)
79((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 81((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>();
Serialization\Manager\ReachSerializationUtils.cs (11)
467_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 469_serializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 474_serializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 554_serializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 558_serializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 898Uri uri = null; 942private bool IsFragment(Uri uri) 947private void SerializeHyperlink(PathGeometry geometry, String id, Uri navigateUri) 977Uri documentUri = SerializationManager.PackagingPolicy.CurrentFixedDocumentUri; 978Uri pageUri = SerializationManager.PackagingPolicy.CurrentFixedPageUri; 980Uri relativeUri = PackUriHelper.GetRelativeUri(pageUri, documentUri);
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
68_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 73_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
51_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 53_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 58_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (3)
68_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 70_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 75_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
77_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 87_xpsOMSerializationManager.ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (3)
75_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 77_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMPackagingPolicy.cs (16)
112Uri uri = _xpsManager.GenerateUniqueUri(XpsS0Markup.FixedDocumentContentType); 316Uri targetUri, 331Uri targetUri 456Uri uri = GenerateUriForObfuscatedFont(); 536private void ReleaseFontResource(Uri uri) 581Uri imageUri = _xpsManager.GenerateUniqueUri(contentType); 633Uri colorContextUri = _xpsManager.GenerateUniqueUri(XpsS0Markup.ColorContextContentType); 701Uri 709Uri 771Uri uri = _xpsManager.GenerateUniqueUri(contentType); 778Uri uri 794Uri 798Uri uri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 814Uri printTicketUri = _xpsManager.GeneratePrintTicketUri(contentType); 952private Uri _currentFixedDocumentUri; 953private Uri _currentFixedPageUri;
Serialization\Manager\XpsOMSerializationManager.cs (1)
490Uri targetUri,
Serialization\Manager\XpsPackagingPolicy.cs (11)
35Uri uri 63Uri 94Uri _uri; 277Uri targetUri, 293Uri targetUri 464Uri 475Uri 1200Uri targetUri, 1222Uri targetUri 1349Uri 1371Uri
Serialization\Manager\XpsSerializationManager.cs (1)
827Uri targetUri,
Serialization\VisualSerializer.cs (11)
229else if (obj is Uri) 231rslt.Append(GetUriAsString((Uri)obj)); 638Object obj = converter.ConvertTo(_context, null, imageSource, typeof(Uri)); 640Uri uri = obj as Uri; 869protected Uri _navigateUri; 1651private string GetUriAsString(Uri uri) 2077Uri uri = Utility.GetFontUri(glyphRun.GlyphTypeface); 2085uri = converter.ConvertTo(_context, null, glyphRun, typeof(Uri)) as Uri; 2342Uri navigateUri,
Serialization\VisualTreeFlattener.cs (2)
208internal override void AddRelationshipToCurrentPage(Uri targetUri, string relationshipName) 513Uri navigateUri = null;
Serialization\XpsFontSubsetter.cs (15)
104_fontEmbeddingManagerCache = new Dictionary<Uri, FEMCacheItem>(3, MS.Internal.UriComparer.Default); 123Uri 132Uri fontUri = null; 371private IDictionary<Uri, FEMCacheItem> _fontEmbeddingManagerCache; 397Uri fontUri = glyphTypeface.FontUri; 451Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 477Uri 482Uri fontUri = null; 597Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 605Uri 608Uri sourceUri = _fontUri; 609Uri destUri = _fontResourceStream.Uri; 633Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 655ParseGuidFromUri( Uri uri ) 733private Uri _fontUri;
SerializerFactory\XpsSerializerFactory.cs (1)
63public Uri ManufacturerWebsite
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (4)
25internal class UriComparer : IEqualityComparer<Uri> 53public bool Equals(Uri a, Uri b) 77public int GetHashCode(Uri uri)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
53internal static string UriToString(Uri uri)
Roslyn.VisualStudio.DiagnosticsWindow (4)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (1)
86System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/telemetrypanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (1)
78System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/workspacepanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\PerfMargin\StatusIndicator.g.cs (1)
62System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/perfmargin/statusindicator.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\VenusMargin\ProjectionBufferMargin.g.cs (1)
54System.Uri resourceLocater = new System.Uri(("/Roslyn.VisualStudio.DiagnosticsWindow;component/venusmargin/projectionbuffermarg" +
Sample (8)
Transformers\AddExternalDocsTransformer.cs (8)
14Uri.TryCreate(configuration["DocumentationBaseUrl"], UriKind.Absolute, out var baseUri)) 16var url = new Uri(baseUri, $"/api/docs/operations/{Uri.EscapeDataString(id)}"); 30if (Uri.TryCreate(configuration["DocumentationBaseUrl"], UriKind.Absolute, out var baseUri)) 32var url = new Uri(baseUri, $"/api/docs/schemas/{Uri.EscapeDataString(schema.Type.ToString()!.ToLowerInvariant())}");
Security.TransportSecurity.IntegrationTests (4)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (4)
32var localhostEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_Localhost_Address); 103var domainNameEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_DomainName_Address); 181var domainNameEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_DomainName_Address); 185var fqdnEndpointUri = new Uri(Endpoints.Tcp_ClientCredentialType_Certificate_With_CanonicalName_Fqdn_Address);
Shared.Tests (3)
ImageDataUri\ImageDataUri.cs (1)
12internal static Uri GetImageDataUri()
JsonSchemaExporter\TestTypes.cs (2)
102yield return new TestData<Uri>(new("http://example.com"), """{"type":["string","null"], "format":"uri"}"""); 1231[JsonSerializable(typeof(Uri))]
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
28public static IEnumerable<Uri> GetUris(this IHost host)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
24public static IEnumerable<Uri> GetUris(this IWebHost host)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
209var uri = new Uri(testUrl);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
28public static IEnumerable<Uri> GetUris(this IHost host)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
24public static IEnumerable<Uri> GetUris(this IWebHost host)
System (1)
src\libraries\shims\System\ref\System.cs (1)
923[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Uri))]
System.ComponentModel.TypeConverter (14)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
54Uri uri = new Uri(fileName);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
140/// <see cref="Uri"/> and <see cref="CultureInfo"/> are the only types that can be inherited for which 179[typeof(Uri)] = new IntrinsicTypeConverterData((type) => new UriTypeConverter()), 1592Debug.Assert(callingType != typeof(Uri) && callingType != typeof(CultureInfo)); 1599if (baseType == typeof(Uri) || baseType == typeof(CultureInfo))
System\ComponentModel\UriTypeConverter.cs (9)
25return sourceType == typeof(string) || sourceType == typeof(Uri) || base.CanConvertFrom(context, sourceType); 34return destinationType == typeof(Uri) || destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType); 53if (value is Uri uri) 69if (value is Uri uri) 73ConstructorInfo? ctor = typeof(Uri).GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string), typeof(UriKind) }, null); 83if (destinationType == typeof(Uri)) 96return Uri.TryCreate(text, UriKind.RelativeOrAbsolute, out _); 98return value is Uri; 101private static UriKind GetUriKind(Uri uri) => uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative;
System.Configuration.ConfigurationManager (5)
src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
21internal static string GetNormalizedUriHash(Uri uri)
System\Configuration\ClientConfigPaths.cs (4)
90if (Uri.IsWellFormedUriString(externalConfigPath, UriKind.Absolute)) 92Uri externalConfigUri = new Uri(externalConfigPath, UriKind.Absolute); 263else if (Uri.TryCreate(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assembly.ManifestModule.Name), UriKind.Absolute, out Uri codeBase))
System.Data.Common (5)
System\Data\Common\DataStorage.cs (1)
93typeof(Uri),
System\Data\Common\ObjectStorage.cs (1)
335if (type == typeof(Uri))
System\Data\TypeLimiter.cs (1)
171typeof(Uri),
System\Data\xmlsaver.cs (1)
267if (type == typeof(Uri))
System\Data\XMLSchema.cs (1)
1816new NameType("anyURI", typeof(System.Uri) ), /* XSD Apr */
System.Diagnostics.EventLog (1)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (1)
511public System.Uri HelpLink { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } }
System.Diagnostics.Process (2)
System\Diagnostics\Process.Unix.cs (2)
643else if (Uri.TryCreate(filename, UriKind.Absolute, out Uri? uri))
System.DirectoryServices.Protocols (7)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (7)
68public CompareRequest(string distinguishedName, string attributeName, System.Uri value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 107public DirectoryAttribute(string name, System.Uri value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 112public int Add(System.Uri value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 120public void Insert(int index, System.Uri value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 249public virtual System.Uri[] Referral { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } } 599public override System.Uri[] Referral { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } } 630public System.Uri[] Reference { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } }
System.IO.IsolatedStorage (2)
src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
21internal static string GetNormalizedUriHash(Uri uri)
System\IO\IsolatedStorage\Helper.cs (1)
132Uri locationUri = new Uri(location);
System.IO.Packaging (122)
System\IO\Packaging\FileFormatException.cs (6)
55public FileFormatException(Uri? sourceUri) 73public FileFormatException(Uri? sourceUri, string? message) 89public FileFormatException(Uri? sourceUri, Exception? innerException) 110public FileFormatException(Uri? sourceUri, string? message, Exception? innerException) 151public Uri? SourceUri 159private readonly Uri? _sourceUri;
System\IO\Packaging\InternalRelationshipCollection.cs (9)
82internal PackageRelationship Add(Uri targetUri, TargetMode targetMode, string relationshipType, string? id) 203private static Uri GetRelationshipPartUri(PackagePart? part) 205Uri sourceUri; 346Uri targetUri = new Uri(targetAttributeValue, DotNetRelativeOrAbsolute); 390private PackageRelationship Add(Uri targetUri, TargetMode targetMode, string relationshipType, string? id, bool parsing) 414Uri resolvedUri = GetResolvedTargetUri(targetUri, targetMode); 550private Uri GetResolvedTargetUri(Uri target, TargetMode targetMode) 625private readonly Uri _uri; // the URI of our relationship part
System\IO\Packaging\Package.cs (13)
187public PackagePart CreatePart(Uri partUri, string contentType) 210public PackagePart CreatePart(Uri partUri, 259public PackagePart GetPart(Uri partUri) 282public virtual bool PartExists(Uri partUri) 307public void DeletePart(Uri partUri) 353Uri owningPartUri = PackUriHelper.GetSourcePartUriFromRelationshipPartUri(validatedPartUri); 355if (Uri.Compare(owningPartUri, PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) == 0) 578public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType) 602public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType, string? id) 729protected abstract PackagePart CreatePartCore(Uri partUri, 741protected abstract PackagePart? GetPartCore(Uri partUri); 750protected abstract void DeletePartCore(Uri partUri); 1134private PackagePart? GetPartHelper(Uri partUri)
System\IO\Packaging\PackagePart.cs (6)
39protected PackagePart(Package package, Uri partUri) 67protected PackagePart(Package package, Uri partUri, string? contentType) 97Uri partUri, 134public Uri Uri 376public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType) 402public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType, string? id)
System\IO\Packaging\PackageRelationship.cs (6)
28public Uri SourceUri 43public Uri TargetUri 113internal PackageRelationship(Package package, PackagePart? sourcePart, Uri targetUri, TargetMode targetMode, string relationshipType, string id) 160internal static Uri ContainerRelationshipPartName 174private readonly Uri _targetUri; 179private static readonly Uri s_containerRelationshipPartName = PackUriHelper.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
System\IO\Packaging\PackageRelationshipSelector.cs (4)
31public PackageRelationshipSelector(Uri sourceUri, PackageRelationshipSelectorType selectorType, string selectionCriteria) 37if (Uri.Compare(sourceUri, PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) != 0) 63public Uri SourceUri 164private readonly Uri _sourceUri;
System\IO\Packaging\PackUriHelper.cs (35)
36public static Uri CreatePartUri(Uri partUri) 47Uri resolvedUri = new Uri(s_defaultUri, partUri); 76public static Uri ResolvePartUri(Uri sourcePartUri, Uri targetUri) 84Uri resolvedUri; 102public static Uri GetRelativeUri(Uri sourcePartUri, Uri targetPartUri) 120public static Uri GetNormalizedPartUri(Uri partUri) 140public static int ComparePartUri(Uri? firstPartUri, Uri? secondPartUri) 165public static bool IsRelationshipPartUri(Uri partUri) 187public static Uri GetRelationshipPartUri(Uri partUri) 191if (Uri.Compare(partUri, PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) == 0) 240public static Uri GetSourcePartUriFromRelationshipPartUri(Uri relationshipPartUri) 287internal static Uri PackageRootUri 299internal static bool TryValidatePartUri(Uri partUri, [NotNullWhen(true)] out ValidatedPartUri? validatedPartUri) 337internal static ValidatedPartUri ValidatePartUri(Uri partUri) 358internal static string GetStringForPartUri(Uri partUri) 370private static Exception? GetExceptionIfPartUriInvalid(Uri partUri, out string partUriString) 435private static void ThrowIfAbsoluteUri(Uri uri) 442private static ArgumentException? GetExceptionIfAbsoluteUri(Uri uri) 509private static int CompareUsingSystemUri(Uri? firstUri, Uri? secondUri) 511return Uri.Compare( 520private static string GetStringForPartUriFromAnyUri(Uri partUri) 525Uri safeUnescapedUri; 570private static readonly Uri s_defaultUri = new Uri("http://defaultcontainer/"); 573private static readonly Uri s_packageRootUri = new Uri("/", UriKind.Relative); 868private static readonly Uri s_containerRelationshipNormalizedPartUri = new ValidatedPartUri("/_RELS/.RELS",
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (35)
31public static Uri Create(Uri packageUri) 49public static Uri Create(Uri packageUri, Uri? partUri) 70public static Uri Create(Uri packageUri, Uri? partUri, string? fragment) 102absolutePackageUri = string.Concat(PackUriHelper.UriSchemePack, Uri.SchemeDelimiter, absolutePackageUri); 104Uri packUri = new Uri(absolutePackageUri); 131public static Uri GetPackageUri(Uri packUri) 134ValidateAndGetPackUriComponents(packUri, out Uri packageUri, out _); 154public static Uri? GetPartUri(Uri packUri) 157ValidateAndGetPackUriComponents(packUri, out _, out Uri? partUri); 174public static int ComparePackUri(Uri? firstPackUri, Uri? secondPackUri) 185ValidateAndGetPackUriComponents(firstPackUri, out Uri firstPackageUri, out Uri? firstPartUri); 186ValidateAndGetPackUriComponents(secondPackUri, out Uri secondPackageUri, out Uri? secondPartUri); 214internal static void ValidateAndGetPackUriComponents(Uri packUri, out Uri packageUri, out Uri? partUri) 249private static Uri ValidatePackageUri(Uri packageUri) 261private static Uri ValidatePackUri(Uri packUri) 294path = path.Replace(c.ToString(), Uri.HexEscape(c)); 302private static Uri GetPackageUriComponent(Uri packUri) 313Uri packageUri = new Uri(Uri.UnescapeDataString(hostAndPort)); 322private static PackUriHelper.ValidatedPartUri? GetPartUriComponent(Uri packUri)
System\IO\Packaging\PartBasedPackageProperties.cs (2)
444Uri propertiesPartUri = PackUriHelper.ResolvePartUri( 728private static Uri GeneratePropertyPartUri()
System\IO\Packaging\ZipPackage.cs (4)
36protected override PackagePart CreatePartCore(Uri partUri, 79protected override PackagePart? GetPartCore(Uri partUri) 108protected override void DeletePartCore(Uri partUri) 214Uri partUri = new Uri(GetOpcNameFromZipItemName(zipArchiveEntry.FullName), UriKind.Relative);
System\IO\Packaging\ZipPackagePartPiece.cs (2)
131&& Uri.TryCreate(ZipPackage.GetOpcNameFromZipItemName(prefixName), UriKind.Relative, out Uri? unvalidatedPartUri)
System.Net.Http (155)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (7)
14public readonly Uri UriPrefix; 18internal CredentialCacheKey(Uri uriPrefix, string authenticationType) 28internal bool Match(Uri uri, int prefixLen, string authenticationType) 58private bool IsPrefix(Uri uri, int prefixLen) 61Uri uriPrefix = UriPrefix; 104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
51public static string? GetRedactedUriString(Uri? uri)
System\Net\Http\DiagnosticsHandler.cs (13)
126if (request.RequestUri is Uri requestUri && requestUri.IsAbsoluteUri) 255[DynamicDependency(nameof(Uri.Host), typeof(Uri))] 256[DynamicDependency(nameof(Uri.Port), typeof(Uri))] 288[DynamicDependency(nameof(Uri.Host), typeof(Uri))] 289[DynamicDependency(nameof(Uri.Port), typeof(Uri))] 309[DynamicDependency(nameof(Uri.Host), typeof(Uri))] 310[DynamicDependency(nameof(Uri.Port), typeof(Uri))]
System\Net\Http\FormUrlEncodedContent.cs (1)
58while (!Uri.TryEscapeDataString(data, builder.RawChars.Slice(builder.Length), out charsWritten))
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
520if (Uri.IsHexEncoding(dataString, index)) // %FF 523unescapedBytes[unescapedBytesCount++] = (byte)Uri.HexUnescape(dataString, ref index);
System\Net\Http\Headers\HttpContentHeaders.cs (2)
73public Uri? ContentLocation 75get { return (Uri?)GetSingleParsedValue(KnownHeaders.ContentLocation.Descriptor); }
System\Net\Http\Headers\HttpRequestHeaders.cs (2)
188public Uri? Referrer 190get { return (Uri?)GetSingleParsedValue(KnownHeaders.Referer.Descriptor); }
System\Net\Http\Headers\HttpResponseHeaders.cs (2)
47public Uri? Location 49get { return (Uri?)GetSingleParsedValue(KnownHeaders.Location.Descriptor); }
System\Net\Http\Headers\UriHeaderParser.cs (6)
42if (!Uri.TryCreate(uriString, _uriKind, out Uri? uri)) 47if (!Uri.TryCreate(uriString, _uriKind, out uri)) 90Debug.Assert(value is Uri); 91Uri uri = (Uri)value;
System\Net\Http\HttpClient.cs (23)
32private Uri? _baseAddress; 81public Uri? BaseAddress 162public Task<string> GetStringAsync(Uri? requestUri) => 168public Task<string> GetStringAsync(Uri? requestUri, CancellationToken cancellationToken) 234public Task<byte[]> GetByteArrayAsync(Uri? requestUri) => 240public Task<byte[]> GetByteArrayAsync(Uri? requestUri, CancellationToken cancellationToken) 312public Task<Stream> GetStreamAsync(Uri? requestUri) => 315public Task<Stream> GetStreamAsync(Uri? requestUri, CancellationToken cancellationToken) 359public Task<HttpResponseMessage> GetAsync(Uri? requestUri) => 365public Task<HttpResponseMessage> GetAsync(Uri? requestUri, HttpCompletionOption completionOption) => 371public Task<HttpResponseMessage> GetAsync(Uri? requestUri, CancellationToken cancellationToken) => 377public Task<HttpResponseMessage> GetAsync(Uri? requestUri, HttpCompletionOption completionOption, CancellationToken cancellationToken) => 383public Task<HttpResponseMessage> PostAsync(Uri? requestUri, HttpContent? content) => 389public Task<HttpResponseMessage> PostAsync(Uri? requestUri, HttpContent? content, CancellationToken cancellationToken) 399public Task<HttpResponseMessage> PutAsync(Uri? requestUri, HttpContent? content) => 405public Task<HttpResponseMessage> PutAsync(Uri? requestUri, HttpContent? content, CancellationToken cancellationToken) 415public Task<HttpResponseMessage> PatchAsync(Uri? requestUri, HttpContent? content) => 421public Task<HttpResponseMessage> PatchAsync(Uri? requestUri, HttpContent? content, CancellationToken cancellationToken) 431public Task<HttpResponseMessage> DeleteAsync(Uri? requestUri) => 437public Task<HttpResponseMessage> DeleteAsync(Uri? requestUri, CancellationToken cancellationToken) => 743Uri? requestUri = null; 810private static Uri? CreateUri(string? uri) => 813private HttpRequestMessage CreateRequestMessage(HttpMethod method, Uri? uri) =>
System\Net\Http\HttpMessageInvoker.cs (1)
102request.RequestUri is Uri requestUri &&
System\Net\Http\HttpRequestMessage.cs (4)
28private Uri? _requestUri; 97public Uri? RequestUri 120: this(HttpMethod.Get, (Uri?)null) 124public HttpRequestMessage(HttpMethod method, Uri? requestUri)
System\Net\Http\HttpRuleParser.cs (1)
307return Uri.TryCreate($"http://u@{host}/", UriKind.Absolute, out _);
System\Net\Http\HttpTelemetry.cs (1)
183public void Redirect(Uri redirectUri)
System\Net\Http\Metrics\MetricsHandler.cs (1)
144if (request.RequestUri is Uri requestUri && requestUri.IsAbsoluteUri)
System\Net\Http\NetEventSource.Http.cs (3)
22public static void UriBaseAddress(object obj, Uri? baseAddress) 56public static void AuthenticationInfo(Uri uri, string message) 67public static void AuthenticationError(Uri? uri, string message)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
80private static bool TryGetValidAuthenticationChallengeForScheme(string scheme, AuthenticationType authenticationType, Uri uri, ICredentials credentials, 110private static bool TryGetAuthenticationChallenge(HttpResponseMessage response, bool isProxyAuth, Uri authUri, ICredentials credentials, out AuthenticationChallenge challenge) 213private static async ValueTask<HttpResponseMessage> SendWithAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, bool preAuthenticate, bool isProxyAuth, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) 219Uri? preAuthCredentialUri = null; 223(Uri uriPrefix, NetworkCredential credential)? preAuthCredentialPair; 360public static ValueTask<HttpResponseMessage> SendWithProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (2)
76private static async Task<HttpResponseMessage> SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, TokenImpersonationLevel impersonationLevel, bool isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken) 235public static Task<HttpResponseMessage> SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (3)
37private readonly Uri? _proxyUri; 75public HttpConnectionPool(HttpConnectionPoolManager poolManager, HttpConnectionKind kind, string? host, int port, string? sslHostName, Uri? proxyUri) 286public Uri? ProxyUri => _proxyUri;
System\Net\Http\SocketsHttpHandler\CookieHelper.cs (1)
21Uri requestUri = response.RequestMessage.RequestUri;
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (9)
31private readonly ConcurrentDictionary<Uri, long> _failedProxies = new ConcurrentDictionary<Uri, long>(); 43/// <param name="uri">The <see cref="Uri"/> of the proxy to check.</param> 45public long GetProxyRenewTicks(Uri uri) 76public void SetProxyFailed(Uri uri) 87public bool TryRenewProxy(Uri uri, long renewTicks) => 88_failedProxies.TryRemove(new KeyValuePair<Uri, long>(uri, renewTicks)); 124foreach (KeyValuePair<Uri, long> kvp in _failedProxies) 128((ICollection<KeyValuePair<Uri, long>>)_failedProxies).Remove(kvp);
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (2)
24var builder = new UriBuilder(Uri.UriSchemeHttp, host, port); 25Uri uri = builder.Uri;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
332Debug.Assert(request.RequestUri.Scheme == Uri.UriSchemeHttp); 398void WriteHost(Uri requestUri)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (8)
256private HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri? proxyUri, bool isProxyConnect) 258Uri? uri = request.RequestUri; 330public ValueTask<HttpResponseMessage> SendAsyncCore(HttpRequestMessage request, Uri? proxyUri, bool async, bool doRequestAuth, bool isProxyConnect, CancellationToken cancellationToken) 369public ValueTask<HttpResponseMessage> SendProxyConnectAsync(HttpRequestMessage request, Uri proxyUri, bool async, CancellationToken cancellationToken) 382Uri? proxyUri = null; 427private async ValueTask<HttpResponseMessage> SendAsyncMultiProxy(HttpRequestMessage request, bool async, bool doRequestAuth, MultiProxy multiProxy, Uri? firstProxy, CancellationToken cancellationToken) 526public readonly Uri? ProxyUri; 529public HttpConnectionKey(HttpConnectionKind kind, string? host, int port, string? sslHostName, Uri? proxyUri, string identity)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (21)
16private readonly Uri? _httpProxy; 17private readonly Uri? _httpsProxy; 19public HttpEnvironmentProxyCredentials(Uri? httpProxy, NetworkCredential? httpCred, 20Uri? httpsProxy, NetworkCredential? httpsCred) 28public NetworkCredential? GetCredential(Uri? uri, string authType) 38public static HttpEnvironmentProxyCredentials? TryCreate(Uri? httpProxy, Uri? httpsProxy) 73value = Uri.UnescapeDataString(value); 103private readonly Uri? _httpProxyUri; // String URI for HTTP requests 104private readonly Uri? _httpsProxyUri; // String URI for HTTPS requests 108private HttpEnvironmentProxy(Uri? httpProxy, Uri? httpsProxy, string? bypassList) 122private static Uri? GetUriFromString(string? value) 175string auth = Uri.UnescapeDataString(value.AsSpan(0, separatorIndex)); 222ub.UserName = Uri.EscapeDataString(user); 227ub.Password = Uri.EscapeDataString(password); 230Uri uri = ub.Uri; 254private bool IsMatchInBypassList(Uri input) 290public Uri? GetProxy(Uri uri) 298public bool IsBypassed(Uri uri)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.Unix.cs (3)
21Uri? httpProxy = GetUriFromString(Environment.GetEnvironmentVariable(EnvHttpProxyLC)); 27Uri? httpsProxy = GetUriFromString(Environment.GetEnvironmentVariable(EnvHttpsProxyLC)) ?? 32Uri? allProxy = GetUriFromString(Environment.GetEnvironmentVariable(EnvAllProxyLC)) ??
System\Net\Http\SocketsHttpHandler\HttpNoProxy.cs (3)
9public Uri? GetProxy(Uri destination) => null; 10public bool IsBypassed(Uri host) => true;
System\Net\Http\SocketsHttpHandler\IMultiWebProxy.cs (2)
7/// An <see cref="IWebProxy"/> capable of returning more than one proxy for a single <see cref="Uri"/>. 14public MultiProxy GetMultiProxy(Uri uri);
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (12)
15private readonly Uri[]? _uris; 19private Uri? _currentUri; 21private MultiProxy(FailedProxyCache? failedProxyCache, Uri[] uris) 41public static MultiProxy Empty => new MultiProxy(null, Array.Empty<Uri>()); 53Uri[] uris = Array.Empty<Uri>(); 56while (TryParseProxyConfigPart(span, secure, manualSettingsUsed: true, out Uri? uri, out int charactersConsumed)) 93public bool ReadNext([NotNullWhen(true)] out Uri? uri, out bool isFinalProxy) 110Uri? oldestFailedProxyUri = null; 153private bool ReadNextHelper([NotNullWhen(true)] out Uri? uri, out bool isFinalProxy) 196private static bool TryParseProxyConfigPart(ReadOnlySpan<char> proxyString, bool secure, bool manualSettingsUsed, [NotNullWhen(true)] out Uri? uri, out int charactersConsumed) 261if ((proxyType & wantedFlag) != 0 && Uri.TryCreate(string.Concat("http://", proxyString.Slice(0, iter)), UriKind.Absolute, out uri))
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (5)
16public void Add(Uri uriPrefix, string authType, NetworkCredential cred) 29public void Remove(Uri uriPrefix, string authType) 44public (Uri uriPrefix, NetworkCredential credential)? GetCredential(Uri uriPrefix, string authType) 54CredentialCacheHelper.TryGetCredential(_cache, uriPrefix, authType, out Uri? mostSpecificMatchUri, out NetworkCredential? mostSpecificMatch);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (4)
33Uri? redirectUri; 89private Uri? GetUriForRedirect(Uri requestUri, HttpResponseMessage response) 105Uri? location = response.Headers.Location;
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
675Uri? requestUri = request.RequestUri;
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
32public static async ValueTask EstablishSocksTunnelAsync(Stream stream, string host, int port, Uri proxyUri, ICredentials? proxyCredentials, bool async, CancellationToken cancellationToken)
System.Net.Http.Json (40)
System\Net\Http\Json\HttpClientJsonExtensions.cs (11)
19private static Task<object?> FromJsonAsyncCore(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 24private static Task<TValue?> FromJsonAsyncCore<TValue>(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 27private static Task<object?> FromJsonAsyncCore(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 30private static Task<TValue?> FromJsonAsyncCore<TValue>(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken) => 34Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, 36Uri? requestUri, 109private static Uri? CreateUri(string? uri) =>
System\Net\Http\Json\HttpClientJsonExtensions.Delete.cs (7)
18private static readonly Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> s_deleteAsync = 48public static Task<object?> DeleteFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 78public static Task<TValue?> DeleteFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 104public static Task<object?> DeleteFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 130public static Task<TValue?> DeleteFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default) => 158public static Task<object?> DeleteFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, CancellationToken cancellationToken = default) => 186public static Task<TValue?> DeleteFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, CancellationToken cancellationToken = default) =>
System\Net\Http\Json\HttpClientJsonExtensions.Get.AsyncEnumerable.cs (6)
53Uri? requestUri, 89Uri? requestUri, 126Uri? requestUri, 134Uri? requestUri, 145Uri? requestUri, 155Uri? requestUri,
System\Net\Http\Json\HttpClientJsonExtensions.Get.cs (7)
18private static readonly Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> s_getAsync = 28public static Task<object?> GetFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 38public static Task<TValue?> GetFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 44public static Task<object?> GetFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 50public static Task<TValue?> GetFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default) => 60public static Task<object?> GetFromJsonAsync(this HttpClient client, Uri? requestUri, Type type, CancellationToken cancellationToken = default) => 70public static Task<TValue?> GetFromJsonAsync<TValue>(this HttpClient client, Uri? requestUri, CancellationToken cancellationToken = default) =>
System\Net\Http\Json\HttpClientJsonExtensions.Patch.cs (3)
48public static Task<HttpResponseMessage> PatchAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonSerializerOptions? options = null, CancellationToken cancellationToken = default) 83public static Task<HttpResponseMessage> PatchAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, CancellationToken cancellationToken) 116public static Task<HttpResponseMessage> PatchAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
System\Net\Http\Json\HttpClientJsonExtensions.Post.cs (3)
26public static Task<HttpResponseMessage> PostAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonSerializerOptions? options = null, CancellationToken cancellationToken = default) 41public static Task<HttpResponseMessage> PostAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, CancellationToken cancellationToken) 52public static Task<HttpResponseMessage> PostAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
System\Net\Http\Json\HttpClientJsonExtensions.Put.cs (3)
26public static Task<HttpResponseMessage> PutAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonSerializerOptions? options = null, CancellationToken cancellationToken = default) 41public static Task<HttpResponseMessage> PutAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, CancellationToken cancellationToken) 52public static Task<HttpResponseMessage> PutAsJsonAsync<TValue>(this HttpClient client, Uri? requestUri, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
System.Net.HttpListener (32)
src\libraries\Common\src\System\Net\CookieParser.cs (2)
628if (Uri.TryCreate(CheckQuoted(_tokenizer.Value), UriKind.Absolute, out Uri? parsed))
System\Net\HttpListenerRequest.cs (6)
21private Uri? _requestUri; 28private CookieCollection ParseCookies(Uri? uri, string setCookieHeader) 211public Uri? UrlReferrer 221bool success = Uri.TryCreate(referrer, UriKind.RelativeOrAbsolute, out Uri? urlReferrer); 226public Uri? Url => RequestUri;
System\Net\HttpListenerRequestUriBuilder.cs (7)
44private Uri? _requestUri; 61public static Uri GetRequestUri(string rawUri, string cookedUriScheme, string cookedUriHost, 70private Uri Build() 84bool isValid = Uri.TryCreate(_cookedUriScheme + Uri.SchemeDelimiter + _cookedUriHost + _cookedUriPath + 142_requestUriString.Append(Uri.SchemeDelimiter); 153if (!Uri.TryCreate(_requestUriString.ToString(), UriKind.Absolute, out _requestUri))
System\Net\Managed\HttpEndPointListener.cs (1)
175private HttpListener? SearchListener(Uri? uri, out ListenerPrefix? prefix)
System\Net\Managed\HttpEndPointManager.cs (1)
96if (lp.Host != "*" && lp.Host != "+" && Uri.CheckHostName(lp.Host) == UriHostNameType.Unknown)
System\Net\Managed\HttpListenerRequest.Managed.cs (4)
151Uri? raw_uri = null; 153if (MaybeUri(_rawUrl!.ToLowerInvariant()) && Uri.TryCreate(_rawUrl, UriKind.Absolute, out raw_uri)) 170if (!Uri.TryCreate(base_uri + path, UriKind.Absolute, out _requestUri)) 378private Uri? RequestUri => _requestUri;
System\Net\ServiceNameStore.cs (8)
51UriHostNameType hostType = Uri.CheckHostName(hostPortAndDistinguisher); 86hostType = Uri.CheckHostName(host); // Revalidate the host 100Uri? constructedUri; 102if (!Uri.TryCreate(Uri.UriSchemeHttp + Uri.SchemeDelimiter + host, UriKind.Absolute, out constructedUri)) 220if (Uri.IsWellFormedUriString(uriPrefix, UriKind.Absolute)) 222Uri hostUri = new Uri(uriPrefix);
System\Net\WebSockets\HttpListenerWebSocketContext.cs (3)
13private readonly Uri _requestUri; 29Uri requestUri, 65public override Uri RequestUri => _requestUri;
System.Net.Mail (5)
System\Net\Mail\AlternateView.cs (1)
51public Uri? BaseUri
System\Net\Mail\Attachment.cs (3)
257internal Uri? ContentLocation 261Uri? uri; 262if (!Uri.TryCreate(_part.ContentLocation, UriKind.RelativeOrAbsolute, out uri))
System\Net\Mail\LinkedResource.cs (1)
39public Uri? ContentLink
System.Net.Primitives (31)
src\libraries\Common\src\System\Net\CookieParser.cs (2)
628if (Uri.TryCreate(CheckQuoted(_tokenizer.Value), UriKind.Absolute, out Uri? parsed))
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (7)
14public readonly Uri UriPrefix; 18internal CredentialCacheKey(Uri uriPrefix, string authenticationType) 28internal bool Match(Uri uri, int prefixLen, string authenticationType) 58private bool IsPrefix(Uri uri, int prefixLen) 61Uri uriPrefix = UriPrefix; 104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
System\Net\Cookie.cs (3)
51private Uri? m_commentUri; // Do not rename (binary serialization) 133public Uri? CommentUri 358internal void VerifyAndSetDefaults(CookieVariant variant, Uri uri)
System\Net\CookieContainer.cs (11)
192Uri? uri; 219if (!Uri.TryCreate(uriSb.ToString(), UriKind.Absolute, out uri)) 545public void Add(Uri uri, Cookie cookie) 556public void Add(Uri uri, CookieCollection cookies) 569internal CookieCollection CookieCutter(Uri uri, string? headerName, string setCookieHeader) 639public CookieCollection GetCookies(Uri uri) 672internal CookieCollection? InternalGetCookies(Uri uri) 702private void BuildCookieCollectionFromDomainMatches(Uri uri, bool isSecure, int port, ref CookieCollection? cookies, List<string> matchingDomainKeys) 825public string GetCookieHeader(Uri uri) 832internal string GetCookieHeader(Uri uri, out string optCookie2) 861public void SetCookies(Uri uri, string cookieHeader)
System\Net\CredentialCache.cs (3)
24public void Add(Uri uriPrefix, string authType, NetworkCredential cred) 74public void Remove(Uri? uriPrefix, string? authType) 127public NetworkCredential? GetCredential(Uri uriPrefix, string authType)
System\Net\ICredentials.cs (1)
22NetworkCredential? GetCredential(Uri uri, string authType);
System\Net\IWebProxy.cs (3)
14Uri? GetProxy(Uri destination); 15bool IsBypassed(Uri host);
System\Net\NetworkCredential.cs (1)
144public NetworkCredential GetCredential(Uri? uri, string? authenticationType)
System.Net.Requests (58)
System\Net\FileWebRequest.cs (5)
22private readonly Uri _uri; 31internal FileWebRequest(Uri uri) 33if (uri.Scheme != (object)Uri.UriSchemeFile) 109public override Uri RequestUri => _uri; 307public WebRequest Create(Uri uri) => new FileWebRequest(uri);
System\Net\FileWebResponse.cs (3)
19private readonly Uri _uri; 24internal FileWebResponse(FileWebRequest request, Uri uri, FileAccess access, bool useAsync) 97public override Uri ResponseUri
System\Net\FtpControlStream.cs (6)
48private Uri? _responseUri; 773Uri uri, 859internal Uri ResponseUri 964Uri baseUri = request.RequestUri; 993Uri? newUri; 994if (!Uri.TryCreate(baseUri, escapedFilename, out newUri))
System\Net\FtpWebRequest.cs (7)
189private readonly Uri _uri; 338public override Uri RequestUri 485internal FtpWebRequest(Uri uri) 489if ((object)uri.Scheme != (object)Uri.UriSchemeFtp) 509username = Uri.UnescapeDataString(userInfo.AsSpan(0, index)); 511password = Uri.UnescapeDataString(userInfo.AsSpan(index)); 1711public WebRequest Create(Uri uri)
System\Net\FtpWebResponse.cs (3)
15private readonly Uri _responseUri; 24internal FtpWebResponse(Stream? responseStream, long contentLength, Uri responseUri, FtpStatusCode statusCode, string? statusLine, DateTime lastModified, string? bannerMessage, string? welcomeMessage, string? exitMessage) 122public override Uri ResponseUri
System\Net\GlobalProxySelection.cs (3)
27public Uri GetProxy(Uri uri) => uri; 29public bool IsBypassed(Uri uri) => true; // no proxy, always bypasses
System\Net\HttpWebRequest.cs (9)
38private readonly Uri _requestUri = null!; 70private Uri? _hostUri; 210internal HttpWebRequest(Uri uri) 343public Uri Address 367Uri hostUri = _hostUri ?? Address; 380Uri? hostUri; 943public override Uri RequestUri 1641private bool TryGetHostUri(string hostName, [NotNullWhen(true)] out Uri? hostUri) 1644return Uri.TryCreate(s, UriKind.Absolute, out hostUri);
System\Net\HttpWebResponse.cs (3)
25private readonly Uri _requestUri; 58internal HttpWebResponse(HttpResponseMessage _message, Uri requestUri, CookieContainer? cookieContainer) 229public override Uri ResponseUri
System\Net\ICredentialPolicy.cs (1)
8bool ShouldSendCredential(Uri challengeUri, WebRequest request, NetworkCredential credential, IAuthenticationModule authenticationModule);
System\Net\IWebRequestCreate.cs (1)
21WebRequest Create(Uri uri);
System\Net\ServicePoint\ServicePoint.cs (2)
22internal ServicePoint(Uri address) 41public Uri Address { get; }
System\Net\ServicePoint\ServicePointManager.cs (6)
103public static ServicePoint FindServicePoint(Uri address) => FindServicePoint(address, null); 107public static ServicePoint FindServicePoint(Uri address, IWebProxy? proxy) 170private static bool ProxyAddressIfNecessary(ref Uri address, IWebProxy? proxy) 176Uri? proxyAddress = proxy.GetProxy(address); 196private static string MakeQueryString(Uri address) => address.IsDefaultPort ? 200private static string MakeQueryString(Uri address, bool isProxy)
System\Net\WebRequest.cs (8)
75private static WebRequest Create(Uri requestUri, bool useUriBase) 170public static WebRequest Create(Uri requestUri) 189public static WebRequest CreateDefault(Uri requestUri) 205public static HttpWebRequest CreateHttp(Uri requestUri) 252if (Uri.TryCreate(prefix, UriKind.Absolute, out Uri? tempUri)) 328public WebRequest Create(Uri Uri) 407public virtual Uri RequestUri
System\Net\WebResponse.cs (1)
121public virtual Uri ResponseUri
System.Net.Security (16)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (10)
25static partial void ReportRedirected(Uri newUri); 26static partial void ReportRedirectNotFollowed(Uri redirectUri); 156Uri uri = new Uri(uriString); 183Uri? redirectUri; 189Uri? location = (Uri?)responseHeadersLocationProp.GetValue(responseHeaders); 190redirectUri = GetUriForRedirect((Uri)requestUriProp.GetValue(requestMessage)!, statusCode, location, out hasRedirect); 257private static Uri? GetUriForRedirect(Uri requestUri, int statusCode, Uri? location, out bool hasRedirect)
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
208if (Uri.TryCreate(entry, UriKind.Absolute, out Uri? uri))
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (4)
189UriHostNameType hostType = Uri.CheckHostName(hostPortAndDistinguisher); 224hostType = Uri.CheckHostName( 241Uri? constructedUri; 245if (!Uri.TryCreate(string.Concat(HttpSchemeAndDelimiter, host), UriKind.Absolute, out constructedUri))
System.Net.WebClient (72)
System\Net\WebClient.cs (72)
27private Uri? _baseAddress; 218protected virtual WebRequest GetWebRequest(Uri address) 282public byte[] DownloadData(Uri address) 298private byte[] DownloadDataInternal(Uri address, out WebRequest request) 322public void DownloadFile(Uri address, string fileName) 361public Stream OpenRead(Uri address) 388public Stream OpenWrite(Uri address) => 394public Stream OpenWrite(Uri address, string? method) 426public byte[] UploadData(Uri address, byte[] data) => 432public byte[] UploadData(Uri address, string? method, byte[] data) 451private byte[] UploadDataInternal(Uri address, string method, byte[] data, out WebRequest request) 550public byte[] UploadFile(Uri address, string fileName) => 556public byte[] UploadFile(Uri address, string? method, string fileName) 570Uri uri = GetUri(address); 571bool needsHeaderAndBoundary = (uri.Scheme != Uri.UriSchemeFile); 621public byte[] UploadValues(Uri address, NameValueCollection data) => 627public byte[] UploadValues(Uri address, string? method, NameValueCollection data) 658public string UploadString(Uri address, string data) => 664public string UploadString(Uri address, string? method, string data) 688public string DownloadString(Uri address) 778private Uri GetUri(string address) 782Uri? uri; 785if (!Uri.TryCreate(_baseAddress, address, out uri)) 790else if (!Uri.TryCreate(address, UriKind.Absolute, out uri)) 798private Uri GetUri(Uri address) 802Uri? uri = address; 804if (!address.IsAbsoluteUri && _baseAddress != null && !Uri.TryCreate(_baseAddress, address, out uri)) 949if (request.RequestUri.Scheme == Uri.UriSchemeFile) 1016if (request.RequestUri.Scheme == Uri.UriSchemeFile) 1165private string MapToDefaultMethod(Uri address) 1167Uri uri = !address.IsAbsoluteUri && _baseAddress != null ? 1171return string.Equals(uri.Scheme, Uri.UriSchemeFtp, StringComparison.Ordinal) ? 1190public void OpenReadAsync(Uri address) => 1193public void OpenReadAsync(Uri address, object? userToken) 1225public void OpenWriteAsync(Uri address) => 1228public void OpenWriteAsync(Uri address, string? method) => 1231public void OpenWriteAsync(Uri address, string? method, object? userToken) 1287public void DownloadStringAsync(Uri address) => 1290public void DownloadStringAsync(Uri address, object? userToken) 1313public void DownloadDataAsync(Uri address) => 1316public void DownloadDataAsync(Uri address, object? userToken) 1339public void DownloadFileAsync(Uri address, string fileName) => 1342public void DownloadFileAsync(Uri address, string fileName, object? userToken) 1362public void UploadStringAsync(Uri address, string data) => 1365public void UploadStringAsync(Uri address, string? method, string data) => 1368public void UploadStringAsync(Uri address, string? method, string data, object? userToken) 1411public void UploadDataAsync(Uri address, byte[] data) => 1414public void UploadDataAsync(Uri address, string? method, byte[] data) => 1417public void UploadDataAsync(Uri address, string? method, byte[] data, object? userToken) 1450public void UploadFileAsync(Uri address, string fileName) => 1453public void UploadFileAsync(Uri address, string? method, string fileName) => 1456public void UploadFileAsync(Uri address, string? method, string fileName, object? userToken) 1469Uri uri = GetUri(address); 1470bool needsHeaderAndBoundary = (uri.Scheme != Uri.UriSchemeFile); 1487public void UploadValuesAsync(Uri address, NameValueCollection data) => 1490public void UploadValuesAsync(Uri address, string? method, NameValueCollection data) => 1493public void UploadValuesAsync(Uri address, string? method, NameValueCollection data, object? userToken) 1539public Task<string> DownloadStringTaskAsync(Uri address) 1563public Task<Stream> OpenReadTaskAsync(Uri address) 1588public Task<Stream> OpenWriteTaskAsync(Uri address) => 1594public Task<Stream> OpenWriteTaskAsync(Uri address, string? method) 1619public Task<string> UploadStringTaskAsync(Uri address, string data) => 1625public Task<string> UploadStringTaskAsync(Uri address, string? method, string data) 1650public Task<byte[]> DownloadDataTaskAsync(Uri address) 1675public Task DownloadFileTaskAsync(Uri address, string fileName) 1700public Task<byte[]> UploadDataTaskAsync(Uri address, byte[] data) => 1706public Task<byte[]> UploadDataTaskAsync(Uri address, string? method, byte[] data) 1731public Task<byte[]> UploadFileTaskAsync(Uri address, string fileName) => 1737public Task<byte[]> UploadFileTaskAsync(Uri address, string? method, string fileName) 1765public Task<byte[]> UploadValuesTaskAsync(Uri address, NameValueCollection data) => 1768public Task<byte[]> UploadValuesTaskAsync(Uri address, string? method, NameValueCollection data)
System.Net.WebProxy (14)
System\Net\IWebProxyScript.cs (1)
9bool Load(Uri scriptLocation, string script, Type helperType);
System\Net\WebProxy.cs (12)
21public WebProxy() : this((Uri?)null, false, null, null) { } 23public WebProxy(Uri? Address) : this(Address, false, null, null) { } 25public WebProxy(Uri? Address, bool BypassOnLocal) : this(Address, BypassOnLocal, null, null) { } 27public WebProxy(Uri? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList) : this(Address, BypassOnLocal, BypassList, null) { } 29public WebProxy(Uri? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList, ICredentials? Credentials) 66public Uri? Address { get; set; } 101public Uri? GetProxy(Uri destination) 108private static Uri? CreateProxyUri(string? address, int? port = null) 120var proxyUri = new Uri(address); 153private bool IsMatchInBypassList(Uri input) 195public bool IsBypassed(Uri host)
System\Net\WebProxy.NonWasm.cs (1)
16private static bool IsLocal(Uri host)
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketContext.cs (1)
12public abstract Uri RequestUri { get; }
System.Net.WebSockets.Client (7)
System\Net\WebSockets\ClientWebSocket.cs (3)
82public Task ConnectAsync(Uri uri, CancellationToken cancellationToken) 94public Task ConnectAsync(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken) 124private async Task ConnectAsyncCore(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken)
System\Net\WebSockets\WebSocketHandle.Managed.cs (4)
49public async Task ConnectAsync(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken, ClientWebSocketOptions options) 538public Uri? GetProxy(Uri destination) => throw new NotSupportedException(); 539public bool IsBypassed(Uri host) => throw new NotSupportedException();
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\DataContract.cs (4)
644"Uri" => typeof(Uri), 725else if (type == typeof(Uri)) 1657if (Uri.TryCreate(dataContractNs, UriKind.RelativeOrAbsolute, out Uri? uri))
System\Runtime\Serialization\ExtensionDataReader.cs (3)
726Uri uri = isTypedNode ? ((DataNode<Uri>)dataNode).GetValue() : (Uri)dataNode.Value;
System\Runtime\Serialization\Globals.cs (3)
92s_typeOfUri ??= typeof(Uri); 336private static Uri? s_dataContractXsdBaseNamespaceUri; 337internal static Uri DataContractXsdBaseNamespaceUri =>
System\Runtime\Serialization\PrimitiveDataContract.cs (3)
1023public UriDataContract() : base(typeof(Uri), DictionaryGlobals.UriLocalName, DictionaryGlobals.SchemaNamespace) 1034writer.WriteUri((Uri)obj); 1055writer.WriteUri((Uri?)obj, name, ns);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (3)
324internal virtual void WriteUri(XmlWriterDelegator xmlWriter, Uri value) 331internal virtual void WriteUri(XmlWriterDelegator xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns) 334WriteNull(xmlWriter, typeof(Uri), true/*isMemberTypeSerializable*/, name, ns);
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
94internal override void WriteUri(XmlWriterDelegator xmlWriter, Uri value) 102internal override void WriteUri(XmlWriterDelegator xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns) 105WriteNull(xmlWriter, typeof(Uri), true/*isMemberTypeSerializable*/, name, ns);
System\Runtime\Serialization\XmlReaderDelegator.cs (3)
327return new DataNode<Uri>(ReadContentAsUri()); 722internal Uri ReadElementContentAsUri() 742internal Uri ReadContentAsUri()
System\Runtime\Serialization\XmlWriterDelegator.cs (4)
347WriteUri((Uri)value); 426WriteUri(((DataNode<Uri>)dataNode).GetValue()); 642internal void WriteUri(Uri? value) 647internal void WriteUri(Uri? value, XmlDictionaryString name, XmlDictionaryString? ns)
System.Private.Uri (103)
System\IriHelper.cs (3)
92var dest = size <= Uri.StackallocThreshold 93? new ValueStringBuilder(stackalloc char[Uri.StackallocThreshold]) 108if (ch == Uri.c_DummyChar || ch == '%' || CheckIsReserved(ch, component) || UriHelper.IsNotSafeForUnescape(ch))
System\PercentEncodingHelper.cs (1)
20Debug.Assert(UriHelper.DecodeHexChars(input[1], input[2]) != Uri.c_DummyChar);
System\Uri.cs (26)
21public partial class Uri : ISpanFormattable, IEquatable<Uri>, ISerializable 395public Uri(Uri baseUri, string? relativeUri, bool dontEscape) 418/// Initializes a new instance of the <see cref="Uri"/> class with the specified URI and additional <see cref="UriCreationOptions"/>. 420/// <param name="uriString">A string that identifies the resource to be represented by the <see cref="Uri"/> instance.</param> 421/// <param name="creationOptions">Options that control how the <seealso cref="Uri"/> is created and behaves.</param> 437public Uri(Uri baseUri, string? relativeUri) 500private void CreateUri(Uri baseUri, string? relativeUri, bool dontEscape) 510Uri? uriResult = ResolveHelper(baseUri, this, ref relativeUri, ref dontEscape); 541public Uri(Uri baseUri, Uri relativeUri) 556Uri? resolvedRelativeUri = ResolveHelper(baseUri, this, ref newUriString, ref dontEscape); 588private static unsafe void GetCombinedString(Uri baseUri, string relativeStr, 1568/// Attempts to format a canonical string representation for the <see cref="Uri"/> instance into the specified span. 1648public static bool operator ==(Uri? uri1, Uri? uri2) 1663public static bool operator !=(Uri? uri1, Uri? uri2) 1690Uri? other = comparand as Uri; 1714/// Compares two <see cref="Uri"/> instances for equality. 1716/// <param name="other">The <see cref="Uri"/> to compare to this instance.</param> 1718public bool Equals([NotNullWhen(true)] Uri? other) 1841public Uri MakeRelativeUri(Uri uri) 4691private static string CombineUri(Uri basePart, string relativePart, UriFormat uriFormat) 4971public string MakeRelative(Uri toUri)
System\UriBuilder.cs (11)
23private Uri? _uri; 36_uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + uri); 42public UriBuilder(Uri uri) 117if (!Uri.CheckSchemeName(value)) 125if (!Uri.CheckSchemeName(value)) 198: Uri.InternalEscapeString(value.Replace('\\', '/')); 235public Uri Uri 313var vsb = new ValueStringBuilder(stackalloc char[Uri.StackallocThreshold]); 324schemeDelimiter = host.Length == 0 ? ":" : Uri.SchemeDelimiter; 330? Uri.SchemeDelimiter
System\UriCreationOptions.cs (4)
7/// Options that control how a <seealso cref="Uri"/> is created and behaves. 16/// <see cref="Uri"/> instances created with this option do not support <see cref="Uri.Fragment"/>s. 17/// <see cref="Uri.GetComponents(UriComponents, UriFormat)"/> may not be used for <see cref="UriComponents.Path"/> or <see cref="UriComponents.Query"/>.
System\UriExt.cs (25)
270public static bool TryCreate([NotNullWhen(true), StringSyntax(StringSyntaxAttribute.Uri, "uriKind")] string? uriString, UriKind uriKind, [NotNullWhen(true)] out Uri? result) 284/// Creates a new <see cref="Uri"/> using the specified <see cref="string"/> instance and <see cref="UriCreationOptions"/>. 286/// <param name="uriString">The string representation of the <see cref="Uri"/>.</param> 287/// <param name="creationOptions">Options that control how the <seealso cref="Uri"/> is created and behaves.</param> 288/// <param name="result">The constructed <see cref="Uri"/>.</param> 289/// <returns><see langword="true"/> if the <see cref="Uri"/> was successfully created; otherwise, <see langword="false"/>.</returns> 290public static bool TryCreate([NotNullWhen(true), StringSyntax(StringSyntaxAttribute.Uri)] string? uriString, in UriCreationOptions creationOptions, [NotNullWhen(true)] out Uri? result) 303public static bool TryCreate(Uri? baseUri, string? relativeUri, [NotNullWhen(true)] out Uri? result) 305if (TryCreate(relativeUri, UriKind.RelativeOrAbsolute, out Uri? relativeLink)) 317public static bool TryCreate(Uri? baseUri, Uri? relativeUri, [NotNullWhen(true)] out Uri? result) 388public static int Compare(Uri? uri1, Uri? uri2, UriComponents partsToCompare, UriFormat compareFormat, 423Uri? result; 425if (!Uri.TryCreate(uriString, uriKind, out result)) 754internal static Uri? CreateHelper(string uriString, bool dontEscape, UriKind uriKind, ref UriFormatException? e, in UriCreationOptions creationOptions = default) 783Uri result = new Uri(flags, syntax, uriString); 812internal static Uri? ResolveHelper(Uri baseUri, Uri? relativeUri, ref string? newUriString, ref bool userEscaped) 985public bool IsBaseOf(Uri uri) 999internal bool IsBaseOfHelper(Uri uriLink) 1052private void CreateThisFromUri(Uri otherUri)
System\UriHelper.cs (7)
144vsb = new ValueStringBuilder(stackalloc char[Uri.StackallocThreshold]); 203var vsb = new ValueStringBuilder(stackalloc char[Uri.StackallocThreshold]); 373bool iriParsing = Uri.IriParsingStatic(syntax) 395if (ch == Uri.c_DummyChar) 401else if (ch == Uri.c_DummyChar) 517/// <para>If either char is not hex, returns <see cref="Uri.c_DummyChar"/>.</para> 527return Uri.c_DummyChar;
System\UriScheme.cs (16)
65protected virtual void InitializeAndValidate(Uri uri, out UriFormatException? parsingError) 77Debug.Assert(sizeof(Uri.Flags) == sizeof(ulong)); 80ulong previous = Interlocked.Or(ref Unsafe.As<Uri.Flags, ulong>(ref uri._flags), (ulong)Uri.Flags.CustomParser_ParseMinimalAlreadyCalled); 81if (((Uri.Flags)previous & Uri.Flags.CustomParser_ParseMinimalAlreadyCalled) != 0) 98protected virtual string? Resolve(Uri baseUri, Uri? relativeUri, out UriFormatException? parsingError) 110Uri? result = Uri.ResolveHelper(baseUri, relativeUri, ref newUriString, ref userEscaped); 118protected virtual bool IsBaseOf(Uri baseUri, Uri relativeUri) 135protected virtual string GetComponents(Uri uri, UriComponents components, UriFormat format) 155protected virtual bool IsWellFormedOriginalString(Uri uri) 173if (!Uri.CheckSchemeName(schemeName)) 190if (!Uri.CheckSchemeName(schemeName))
System\UriSyntax.cs (10)
265internal void InternalValidate(Uri thisUri, out UriFormatException? parsingError) 271Debug.Assert(sizeof(Uri.Flags) == sizeof(ulong)); 272Interlocked.Or(ref Unsafe.As<Uri.Flags, ulong>(ref thisUri._flags), (ulong)Uri.Flags.CustomParser_ParseMinimalAlreadyCalled); 275internal string? InternalResolve(Uri thisBaseUri, Uri uriLink, out UriFormatException? parsingError) 280internal bool InternalIsBaseOf(Uri thisBaseUri, Uri uriLink) 285internal string InternalGetComponents(Uri thisUri, UriComponents uriComponents, UriFormat uriFormat) 290internal bool InternalIsWellFormedOriginalString(Uri thisUri)
System.Private.Xml (148)
System\Xml\Core\IDtdParserAdapter.cs (1)
16Uri? BaseUri { get; }
System\Xml\Core\XmlReaderSettings.cs (1)
343internal XmlReader CreateReader(Stream input, Uri? baseUri, string? baseUriString, XmlParserContext? inputContext)
System\Xml\Core\XmlTextReaderImpl.cs (14)
125public Uri? inputbaseUri; 588Uri baseUri = uriResolver.ResolveUri(null, uriStr); 682internal XmlTextReaderImpl(Stream stream, byte[]? bytes, int byteCount, XmlReaderSettings settings, Uri? baseUri, string? baseUriStr, 2357internal Uri? DtdParserProxy_BaseUri 2829private void InitStreamInput(Uri? baseUri, Stream stream, Encoding? encoding) 2835private void InitStreamInput(Uri? baseUri, string baseUriStr, Stream stream, Encoding? encoding) 2840private void InitStreamInput(Uri? baseUri, string baseUriStr, Stream stream, byte[]? bytes, int byteCount, Encoding? encoding) 2915private void InitTextReaderInput(string baseUriStr, Uri? baseUri, TextReader input) 7888private void PushExternalEntityOrSubset(string? publicId, string? systemId, Uri? baseUri, string? entityName) 7890Uri uri; 7948private bool OpenAndPush(Uri uri) 7992Uri? entityBaseUri = null; 9498private static bool UriEqual(Uri? uri1, string? uri1Str, string? uri2Str, XmlResolver? resolver) 9507Uri uri2 = resolver.ResolveUri(null, uri2Str);
System\Xml\Core\XmlTextReaderImpl.Unix.cs (1)
18Uri uri = resolver.ResolveUri(null, url);
System\Xml\Core\XmlTextReaderImplAsync.cs (7)
860private Task InitStreamInputAsync(Uri baseUri, Stream stream, Encoding? encoding) 866private async Task InitStreamInputAsync(Uri? baseUri, string baseUriStr, Stream stream, byte[]? bytes, int byteCount, Encoding? encoding) 942private Task<int> InitTextReaderInputAsync(string baseUriStr, Uri? baseUri, TextReader input) 5100private async Task PushExternalEntityOrSubsetAsync(string? publicId, string? systemId, Uri? baseUri, string? entityName) 5102Uri uri; 5159private async Task<bool> OpenAndPushAsync(Uri uri) 5201Uri? entityBaseUri = null;
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
49internal Uri? baseUri; 189Uri? IDtdParserAdapter.BaseUri
System\Xml\IApplicationResourceStreamResolver.cs (1)
17Stream GetApplicationResourceStream(Uri relativeUri);
System\Xml\Resolvers\XmlPreloadedResolver.cs (14)
129private readonly Dictionary<Uri, PreloadedData> _mappings; 171public XmlPreloadedResolver(XmlResolver? fallbackResolver, XmlKnownDtds preloadedDtds, IEqualityComparer<Uri>? uriComparer) 174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer); 191public override Uri ResolveUri(Uri? baseUri, string? relativeUri) 225public override object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn) 265public override bool SupportsType(Uri absoluteUri, Type? type) 282public void Add(Uri uri, byte[] value) 290public void Add(Uri uri, byte[] value, int offset, int count) 302public void Add(Uri uri, Stream value) 324public void Add(Uri uri, string value) 332public IEnumerable<Uri> PreloadedUris 341public void Remove(Uri uri) 350private void Add(Uri uri, PreloadedData data)
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
17public override Task<object> GetEntityAsync(Uri absoluteUri,
System\Xml\Schema\BaseValidator.cs (2)
23private Uri? _baseUri; 106public Uri? BaseUri
System\Xml\Schema\Chameleonkey.cs (1)
17internal Uri chameleonLocation;
System\Xml\Schema\DataTypeImplementation.cs (5)
2583public override Type ValueType { get { return typeof(Uri); } } 2592internal override Type ListValueType { get { return typeof(Uri[]); } } 2611return ((Uri)value1).Equals((Uri)value2) ? 0 : -1; 2623Uri? uri;
System\Xml\Schema\DtdParser.cs (7)
259Uri? baseUri = readerAdapter.BaseUri; 315Uri? baseUriOb = _readerAdapter.BaseUri; 506Uri? baseUri = _readerAdapter.BaseUri; 3440Uri? tmp = _readerAdapter.BaseUri; 3460Uri? baseUri = _readerAdapter.BaseUri; 3468Uri? baseUri = _readerAdapter.BaseUri; 3475Uri? baseUri = _readerAdapter.BaseUri;
System\Xml\Schema\DtdParserAsync.cs (1)
150Uri? baseUri = _readerAdapter.BaseUri;
System\Xml\Schema\FacetChecker.cs (1)
1414if (value.Equals(((Uri)enumeration[i]!).OriginalString))
System\Xml\Schema\Preprocessor.cs (4)
268Uri? includeLocation = null; 286Uri? ruri = null; 2122private Uri? ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location) 2132private object? GetSchemaEntity(Uri ruri)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
141Uri? includeLocation = null; 177Uri? subUri; 219Uri? ruri = ResolveSchemaLocationUri(schema, schemaLocation); 1794private Uri? ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location) 1806private Stream? GetSchemaEntity(Uri ruri)
System\Xml\Schema\XdrBuilder.cs (2)
519Uri _baseUri = _xmlResolver.ResolveUri(null, _reader.BaseURI); 523Uri ruri = _xmlResolver.ResolveUri(_baseUri, uri.Substring(x_schema.Length));
System\Xml\Schema\XdrValidator.cs (1)
344Uri ruri = this.XmlResolver!.ResolveUri(BaseUri, url);
System\Xml\Schema\XmlSchema.cs (2)
51private Uri? _baseUri; 377internal Uri? BaseUri
System\Xml\Schema\XmlSchemaExternal.cs (2)
13private Uri? _baseUri; 48internal Uri? BaseUri
System\Xml\Schema\XmlSchemaSet.cs (6)
236Uri tempSchemaUri = tempResolver.ResolveUri(null, schemaUri); 276Uri schemaUri = new Uri(schemaDocument.BaseURI!, UriKind.RelativeOrAbsolute); 843internal XmlSchema? FindSchemaByNSAndUrl(Uri? schemaUri, string ns, DictionaryEntry[]? locationsTable) 1110Uri? baseUri; 1238internal bool IsSchemaLoaded(Uri schemaUri, string? targetNamespace, out XmlSchema? schema) 1277internal bool GetSchemaByUri(Uri schemaUri, [NotNullWhen(true)] out XmlSchema? schema)
System\Xml\Schema\XmlSchemaValidator.cs (3)
119private Uri? _sourceUri; 281public Uri? SourceUri 1846Uri ruri = _xmlResolver.ResolveUri(_sourceUri, url);
System\Xml\Schema\XmlValueConverter.cs (6)
326protected static readonly Type UriType = typeof(Uri); 671protected static string AnyUriToString(Uri value) 1734if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return AnyUriToString((Uri)value); 1870if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return ((Uri)value); 2256if (IsDerivedFrom(sourceType, UriType)) return AnyUriToString((Uri)value); 2999if (itemTypeDst == UriType) return ToArray<Uri>(value, nsResolver);
System\Xml\Schema\XsdValidator.cs (1)
577Uri ruri = this.XmlResolver!.ResolveUri(BaseUri, url);
System\Xml\Serialization\XmlSchemas.cs (1)
98public int Add(XmlSchema schema, Uri? baseUri)
System\Xml\XmlConvert.cs (5)
1306internal static Uri ToUri(string? s) 1318Uri? uri; 1319if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out uri)) 1327internal static Exception? TryToUri(string s, out Uri? result) 1339if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out result))
System\Xml\XmlDownloadManager.cs (4)
13internal static Stream GetStream(Uri uri, ICredentials? credentials, IWebProxy? proxy) 27internal static Task<Stream> GetStreamAsync(Uri uri, ICredentials? credentials, IWebProxy? proxy) 31Uri fileUri = uri; 40private static async Task<Stream> GetNonFileStreamAsync(Uri uri, ICredentials? credentials, IWebProxy? proxy)
System\Xml\XmlResolver.cs (6)
27public abstract object? GetEntity(Uri absoluteUri, 31public virtual Task<object> GetEntityAsync(Uri absoluteUri, 41public virtual Uri ResolveUri(Uri? baseUri, string? relativeUri) 45Uri uri = new Uri(relativeUri!, UriKind.RelativeOrAbsolute); 79public virtual bool SupportsType(Uri absoluteUri, Type? type)
System\Xml\XmlResolver.FileSystemResolver.cs (2)
29public override object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn) 40public override Task<object> GetEntityAsync(Uri absoluteUri, string? role, Type? ofObjectToReturn)
System\Xml\XmlResolver.ThrowingResolver.cs (2)
38public override object GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn) 43public override Task<object> GetEntityAsync(Uri absoluteUri, string? role, Type? ofObjectToReturn)
System\Xml\XmlSecureResolver.cs (4)
24public override object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn) => XmlResolver.ThrowingResolver.GetEntity(absoluteUri, role, ofObjectToReturn); 27public override Task<object> GetEntityAsync(Uri absoluteUri, string? role, Type? ofObjectToReturn) => XmlResolver.ThrowingResolver.GetEntityAsync(absoluteUri, role, ofObjectToReturn); 31public override Uri ResolveUri(Uri? baseUri, string? relativeUri) => base.ResolveUri(baseUri, relativeUri);
System\Xml\XmlUrlResolver.cs (4)
39public override object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn) 50public override async Task<object> GetEntityAsync(Uri absoluteUri, string? role, Type? ofObjectToReturn) 60public override Uri ResolveUri(Uri? baseUri, string? relativeUri) =>
System\Xml\Xsl\Runtime\XmlCollation.cs (2)
163Uri? collationUri; 173if (!Uri.TryCreate(collationLiteral, UriKind.Absolute, out collationUri))
System\Xml\Xsl\Runtime\XmlQueryContext.cs (2)
121Uri? uriResolvedBase, uriResolved; 165private XPathNavigator? ConstructDocument(object dataSource, string? uriRelative, Uri? uriResolved)
System\Xml\Xsl\SourceLineInfo.cs (2)
85Uri? uri; 88System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) &&
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
29public List<Uri> ImportHrefs = new List<Uri>();
System\Xml\Xsl\Xslt\XsltLoader.cs (9)
75Uri resolvedUri = origResolver.ResolveUri(null, uri); 189private Uri ResolveUri(string relativeUri, string baseUri) 191Uri? resolvedBaseUri = (baseUri.Length != 0) ? _xmlResolver.ResolveUri(null, baseUri) : null; 192Uri resolvedUri = _xmlResolver.ResolveUri(resolvedBaseUri, relativeUri); 200private XmlReader CreateReader(Uri uri, XmlResolver xmlResolver) 225private Stylesheet LoadStylesheet(Uri uri, bool include) 254List<Uri> importHrefs = _curStylesheet.ImportHrefs; 487Uri uri = ResolveUri(_input.Value, _input.BaseUri!); 515Uri uri = ResolveUri(_input.Value, _input.BaseUri!);
System\Xml\Xsl\XsltOld\Compiler.cs (3)
566internal Uri ResolveUri(string relativeUri) 570Uri uri = _xmlResolver.ResolveUri((baseUri.Length != 0) ? _xmlResolver.ResolveUri(null, baseUri) : null, relativeUri); 578internal NavigatorInput ResolveDocument(Uri absoluteUri)
System\Xml\Xsl\XsltOld\ContainerAction.cs (5)
196internal Stylesheet CompileImport(Compiler compiler, Uri uri, int id) 229Uri? uri = imports[i] as Uri; 240Uri uri = compiler.ResolveUri(compiler.GetSingleAttribute(compiler.Input.Atoms.Href)); 520Uri uri = compiler.ResolveUri(compiler.GetSingleAttribute(compiler.Input.Atoms.Href));
System\Xml\Xsl\XsltOld\Processor.cs (1)
161internal XPathNavigator GetNavigator(Uri ruri)
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (3)
253private Uri ComposeUri(string thisUri, string baseUri) 257Uri? uriBase = null; 274Uri uri = ComposeUri(it.Current!.Value, baseUri ?? it.Current.BaseURI);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
872[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Uri))]
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
1517if (Uri.TryCreate(dataContractNamespace, UriKind.RelativeOrAbsolute, out Uri? uri))
System\Runtime\Serialization\Schema\ImportGlobals.cs (2)
87private static Uri? s_dataContractXsdBaseNamespaceUri; 88internal static Uri DataContractXsdBaseNamespaceUri => s_dataContractXsdBaseNamespaceUri ??= new Uri(DataContractXsdBaseNamespace);
System.Security.Cryptography (21)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (10)
25static partial void ReportRedirected(Uri newUri); 26static partial void ReportRedirectNotFollowed(Uri redirectUri); 156Uri uri = new Uri(uriString); 183Uri? redirectUri; 189Uri? location = (Uri?)responseHeadersLocationProp.GetValue(responseHeaders); 190redirectUri = GetUriForRedirect((Uri)requestUriProp.GetValue(requestMessage)!, statusCode, location, out hasRedirect); 257private static Uri? GetUriForRedirect(Uri requestUri, int statusCode, Uri? location, out bool hasRedirect)
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (2)
184static partial void ReportRedirected(Uri newUri) 192static partial void ReportRedirectNotFollowed(Uri redirectUri)
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (2)
344if (Uri.TryCreate(name.Uri, UriKind.Absolute, out Uri? uri) &&
System\Security\Cryptography\X509Certificates\OpenSslX509ChainEventSource.cs (2)
315internal void DownloadRedirected(Uri redirectUri) 345internal void DownloadRedirectNotFollowed(Uri redirectUri)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (2)
1246if (Uri.TryCreate(name.Uri, UriKind.Absolute, out Uri? uri) &&
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
36public void AddUri(Uri uri)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
1505/// <seealso cref="Uri.CheckHostName"/> 1513UriHostNameType kind = Uri.CheckHostName(hostname);
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannelFactory.cs (2)
44/// <param name="via">The <see cref="Uri" /> that address that the channel uses to send messages.</param> 46public override IWSTrustChannelContract CreateChannel(EndpointAddress endpointAddress, Uri via)
System.ServiceModel.NetFramingBase (54)
System\ServiceModel\Channels\AddressingVersionExtensions.cs (2)
14public static Uri AnonymousUri(this AddressingVersion thisPtr) 27public static Uri NoneUri(this AddressingVersion thisPtr)
System\ServiceModel\Channels\BufferedConnection.cs (1)
253public async ValueTask<IConnection> ConnectAsync(Uri uri, TimeSpan timeout)
System\ServiceModel\Channels\Connection.cs (1)
25ValueTask<IConnection> ConnectAsync(Uri uri, TimeSpan timeout);
System\ServiceModel\Channels\ConnectionPool.cs (13)
45protected abstract TKey GetPoolKey(EndpointAddress address, Uri via); 201public TItem TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, out TKey key) 662protected override string GetPoolKey(EndpointAddress address, Uri via) 682readonly Dictionary<Uri, string> _forwardTable = new Dictionary<Uri, string>(); 683readonly Dictionary<string, ICollection<Uri>> _reverseTable = new Dictionary<string, ICollection<Uri>>(); 685public void Add(Uri uri, string pipeName) 689ICollection<Uri> uris; 692uris = new Collection<Uri>(); 706ICollection<Uri> uris; 710foreach (Uri uri in uris) 717public bool TryGetValue(Uri uri, out string pipeName)
System\ServiceModel\Channels\ConnectionPoolHelper.cs (2)
16private Uri _via; 31public ConnectionPoolHelper(ConnectionPool connectionPool, IConnectionInitiator connectionInitiator, Uri via)
System\ServiceModel\Channels\FramingChannels.cs (6)
22EndpointAddress localAddress, Uri localVia, EndpointAddress remoteAddress, Uri via) 28EndpointAddress remoteAddress, Uri via) 153EndpointAddress remoteAddress, Uri via, IConnectionInitiator connectionInitiator, ConnectionPool connectionPool) 375Uri via, string contentType, TimeSpan timeout) 459public static bool ValidatePreambleResponse(byte[] buffer, int count, ClientFramingDecoder decoder, Uri via)
System\ServiceModel\Channels\FramingDecoders.cs (2)
213private Uri _via; 240public Uri ValueAsUri
System\ServiceModel\Channels\ITransportFactorySettings.cs (1)
24string GetConnectionPoolKey(EndpointAddress address, Uri via);
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (4)
220protected override TChannel OnCreateChannel(EndpointAddress address, Uri via) 367internal void ValidateScheme(Uri via) 380protected abstract string GetConnectionPoolKey(EndpointAddress address, Uri via); 390string IConnectionOrientedTransportChannelFactorySettings.GetConnectionPoolKey(EndpointAddress address, Uri via) => GetConnectionPoolKey(address, via);
System\ServiceModel\Channels\OutputChannel.cs (1)
19public abstract Uri Via { get; }
System\ServiceModel\Channels\SingletonConnectionReader.cs (2)
25private Uri _via; 29IConnectionOrientedTransportFactorySettings transportSettings, Uri via)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
140public override StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via) 264EndpointAddress remoteAddress, Uri via) 419private static void EnsureOutgoingIdentity(IdentityVerifier verifier, EndpointAddress serviceReference, Uri via, AuthorizationContext authorizationContext)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (1)
23EndpointAddress remoteAddress, Uri via, IConnectionInitiator connectionInitiator, ConnectionPool connectionPool)
System\ServiceModel\Channels\StreamSecurityUpgradeInitiatorBase.cs (2)
17protected StreamSecurityUpgradeInitiatorBase(string upgradeString, EndpointAddress remoteAddress, Uri via) 26protected Uri Via { get; }
System\ServiceModel\Channels\StreamUpgradeProvider.cs (1)
47public abstract StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via);
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
20private Uri _localVia; 27Uri localVia, 29Uri via)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (6)
69internal static SecurityTokenRequirement CreateSspiTokenRequirement(EndpointAddress target, Uri via, string transportScheme) 81SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme) 98public static Uri GetListenUri(Uri baseAddress, string relativeAddress) 100Uri fullUri = baseAddress; 120private static void FixIpv6Hostname(UriBuilder uriBuilder, Uri originalUri)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (3)
55public override StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via) 122WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via) 221private static void AdjustAddress(ref EndpointAddress reference, Uri via)
System.ServiceModel.NetNamedPipe (18)
System\ServiceModel\Channels\NamedPipeChannelFactory.cs (2)
22get { return Uri.UriSchemeNetPipe; } 35protected override string GetConnectionPoolKey(EndpointAddress address, Uri via)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
46get { return Uri.UriSchemeNetPipe; }
System\ServiceModel\Channels\PipeConnectionInitiator.cs (15)
31private Exception CreateConnectFailedException(Uri remoteUri, PipeException innerException) 37public async ValueTask<IConnection> ConnectAsync(Uri remoteUri, TimeSpan timeout) 70internal static string GetPipeName(Uri uri) 144private void PrepareConnect(Uri remoteUri, TimeSpan timeout, out string resolvedAddress, out BackoffTimeoutHelper backoffHelper) 168private IConnection TryConnect(Uri remoteUri, string resolvedAddress, BackoffTimeoutHelper backoffHelper) 251private readonly Uri _pipeUri; 253private PipeSharedMemory(MemoryMappedFile fileMapping, Uri pipeUri) 258private PipeSharedMemory(MemoryMappedFile fileMapping, Uri pipeUri, string pipeName) 265public static PipeSharedMemory Open(string sharedMemoryName, Uri pipeUri) 319private static Exception CreatePipeNameCannotBeAccessedException(IOException ioe, Uri pipeUri) 351builder.Append(Uri.UriSchemeNetPipe); 385builder.Append(Uri.UriSchemeNetPipe); 406public static string GetPath(Uri uri) 423public static void Validate(Uri uri) 425if (uri.Scheme != Uri.UriSchemeNetPipe)
System.ServiceModel.Primitives.Tests (11)
Channels\CustomChannelTest.cs (5)
41mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) => 131mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) => 223mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) => 274mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) => 333mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) =>
ServiceModel\MessageContractTest.4.4.0.cs (2)
154mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) => 254mockChannelFactory.OnCreateChannelOverride = (EndpointAddress endpoint, Uri via) =>
ServiceModel\ThrowingOnCloseBindingElement.cs (4)
125protected override TChannel OnCreateChannel(EndpointAddress to, Uri via) 193public Uri Via => InnerChannel.Via; 210public Uri Via => InnerChannel.Via; 274public Uri Via => InnerChannel.Via;
System.ServiceModel.Syndication (83)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (8)
444internal static void WriteLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 447Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 503protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 510protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 797private void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri) 876private void ReadLink(XmlReader reader, SyndicationLink link, Uri baseUri) 1137private void WriteItemContents(XmlWriter dictWriter, SyndicationItem item, Uri feedBaseUri) 1139Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (13)
101internal static CategoriesDocument ReadCategories(XmlReader reader, Uri baseUri, CreateInlineCategoriesDelegate inlineCategoriesFactory, CreateReferencedCategoriesDelegate referencedCategoriesFactory, string version, int maxExtensionSize) 118internal static void WriteCategoriesInnerXml(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 120Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, categories.BaseUri); 151private static void ReadInlineCategories(XmlReader reader, InlineCategoriesDocument inlineCategories, Uri baseUri, string version, int maxExtensionSize) 224private static void ReadReferencedCategories(XmlReader reader, ReferencedCategoriesDocument referencedCategories, Uri baseUri, Uri link, string version, int maxExtensionSize) 288private static void WriteCategories(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 324private static void WriteXmlBase(XmlWriter writer, Uri baseUri) 548private void WriteCollection(XmlWriter writer, ResourceCollectionInfo collection, Uri baseUri) 551Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, collection.BaseUri); 583Uri baseUri = Document.BaseUri; 597private void WriteWorkspace(XmlWriter writer, Workspace workspace, Uri baseUri) 600Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\CategoriesDocument.cs (2)
20public Uri BaseUri { get; set; } 38public static ReferencedCategoriesDocument Create(Uri linkToCategoriesDocument)
System\ServiceModel\Syndication\FeedUtils.cs (8)
73internal static Uri CombineXmlBase(Uri rootBase, string newBase) 79Uri newBaseUri = new Uri(newBase, UriKind.RelativeOrAbsolute); 87internal static Uri GetBaseUriToWrite(Uri rootBase, Uri currentBase) 89Uri uriToWrite; 114internal static string GetUriString(Uri uri)
System\ServiceModel\Syndication\ReferencedCategoriesDocument.cs (2)
12public ReferencedCategoriesDocument(Uri link) : base() 19public Uri Link { get; set; }
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (6)
21public ResourceCollectionInfo(string title, Uri link) : this((title == null) ? null : new TextSyndicationContent(title), link) 25public ResourceCollectionInfo(TextSyndicationContent title, Uri link) : this(title, link, null, null) 29public ResourceCollectionInfo(TextSyndicationContent title, Uri link, IEnumerable<CategoriesDocument> categories, bool allowsNewEntries) 34public ResourceCollectionInfo(TextSyndicationContent title, Uri link, IEnumerable<CategoriesDocument> categories, IEnumerable<string> accepts) 68public Uri BaseUri { get; set; } 77public Uri Link { get; set; }
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (12)
155protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 162protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 194internal static SyndicationLink ReadAlternateLink(XmlReader reader, Uri baseUri, TryParseUriCallback uriParser, bool preserveAttributeExtensions) 220Uri uri = UriFromString(uriParser, uriString, UriKind.RelativeOrAbsolute, Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace, reader); 280private void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri) 472private SyndicationLink ReadMediaEnclosure(XmlReader reader, Uri baseUri) 777private static void WriteAlternateLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 780Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 969private void WriteItemContents(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 971Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 1139private static void WriteMediaEnclosure(XmlWriter writer, SyndicationLink link, Uri baseUri) 1142Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri);
System\ServiceModel\Syndication\ServiceDocument.cs (1)
33public Uri BaseUri { get; set; }
System\ServiceModel\Syndication\SyndicationContent.cs (1)
38public static UrlSyndicationContent CreateUrlContent(Uri url, string mediaType)
System\ServiceModel\Syndication\SyndicationFeed.cs (6)
36public SyndicationFeed(string title, string description, Uri feedAlternateLink) 41public SyndicationFeed(string title, string description, Uri feedAlternateLink, IEnumerable<SyndicationItem> items) 46public SyndicationFeed(string title, string description, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime) 51public SyndicationFeed(string title, string description, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime, IEnumerable<SyndicationItem> items) 116public Uri BaseUri { get; set; } 138public Uri ImageUrl { get; set; }
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (6)
12public delegate bool TryParseUriCallback(XmlUriData data, out Uri uri); 314internal Uri UriFromString(string uriString, UriKind uriKind, string localName, string namespaceURI, XmlReader reader) 319internal static Uri UriFromString(TryParseUriCallback uriParser, string uriString, UriKind uriKind, string localName, string namespaceURI, XmlReader reader) 321Uri uri = null; 331uri = (Uri)args[args.Length - 1]; 370internal static bool DefaultUriParser(XmlUriData XmlUriData, out Uri uri)
System\ServiceModel\Syndication\SyndicationItem.cs (5)
26public SyndicationItem(string title, string content, Uri itemAlternateLink) 31public SyndicationItem(string title, string content, Uri itemAlternateLink, string id, DateTimeOffset lastUpdatedTime) 36public SyndicationItem(string title, SyndicationContent content, Uri itemAlternateLink, string id, DateTimeOffset lastUpdatedTime) 82public Uri BaseUri { get; set; } 176public void AddPermalink(Uri permalink)
System\ServiceModel\Syndication\SyndicationLink.cs (10)
15public SyndicationLink(Uri uri) : this(uri, null, null, null, 0) 19public SyndicationLink(Uri uri, string relationshipType, string title, string mediaType, long length) 53public Uri BaseUri { get; set; } 77public Uri Uri { get; set; } 79public static SyndicationLink CreateAlternateLink(Uri uri) 84public static SyndicationLink CreateAlternateLink(Uri uri, string mediaType) 89public static SyndicationLink CreateMediaEnclosureLink(Uri uri, string mediaType, long length) 94public static SyndicationLink CreateSelfLink(Uri uri) 99public static SyndicationLink CreateSelfLink(Uri uri, string mediaType) 106public Uri GetAbsoluteUri()
System\ServiceModel\Syndication\UrlSyndicationContent.cs (2)
14public UrlSyndicationContent(Uri url, string mediaType) : base() 31public Uri Url { get; }
System\ServiceModel\Syndication\Workspace.cs (1)
38public Uri BaseUri { get; set; }
System.ServiceModel.UnixDomainSocket (7)
System\ServiceModel\Channels\SocketConnection.cs (4)
772private async Task<IConnection> CreateConnectionAsync(Uri uriPath) 790public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException) 837private static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, SocketException innerException) 842public async ValueTask<IConnection> ConnectAsync(Uri uri, TimeSpan timeout)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (2)
34protected override string GetConnectionPoolKey(EndpointAddress address, Uri via) 39protected override TChannel OnCreateChannel(EndpointAddress address, Uri via)
System\ServiceModel\Channels\UnixPosixIdentitySecurityUpgradeProvider.cs (1)
24public override StreamUpgradeInitiator CreateUpgradeInitiator(EndpointAddress remoteAddress, Uri via)
System.Speech (19)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (19)
121public Grammar(System.IO.Stream stream, string ruleName, System.Uri baseUri) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 123public Grammar(System.IO.Stream stream, string ruleName, System.Uri baseUri, object[] parameters) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 129public Grammar(System.Speech.Recognition.SrgsGrammar.SrgsDocument srgsDocument, string ruleName, System.Uri baseUri) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 131public Grammar(System.Speech.Recognition.SrgsGrammar.SrgsDocument srgsDocument, string ruleName, System.Uri baseUri, object[] parameters) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 482public System.Uri XmlBase { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } } 577public SrgsRuleRef(System.Uri uri) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 578public SrgsRuleRef(System.Uri uri, string rule) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 579public SrgsRuleRef(System.Uri uri, string rule, string semanticKey) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 580public SrgsRuleRef(System.Uri uri, string rule, string semanticKey, string parameters) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 583public System.Uri Uri { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } } 644public FilePrompt(System.Uri promptFile, System.Speech.Synthesis.SynthesisMediaType media) : base (default(string)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 686public void AppendAudio(System.Uri audioFile) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 687public void AppendAudio(System.Uri audioFile, string alternateText) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 694public void AppendSsml(System.Uri ssmlFile) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 820public void AddLexicon(System.Uri uri, string mediaType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 827public void RemoveLexicon(System.Uri uri) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 1004System.IO.Stream LoadResource(System.Uri uri, string mediaType); 1140public abstract void AddLexicon(System.Uri uri, string mediaType, System.Speech.Synthesis.TtsEngine.ITtsEngineSite site); 1142public abstract void RemoveLexicon(System.Uri uri, System.Speech.Synthesis.TtsEngine.ITtsEngineSite site);
System.Text.Json (12)
System\Text\Json\Nodes\JsonValueOfT.cs (1)
96type == typeof(Guid) || type == typeof(Uri) || type == typeof(Version))
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (8)
10internal sealed class UriConverter : JsonPrimitiveConverter<Uri?> 12public override Uri? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 17public override void Write(Utf8JsonWriter writer, Uri? value, JsonSerializerOptions options) 28internal override Uri ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 34private static Uri ReadCore(ref Utf8JsonReader reader) 38if (!Uri.TryCreate(uriString, UriKind.RelativeOrAbsolute, out Uri? value)) 46internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Uri value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (3)
254/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="Uri"/> values. 257public static JsonConverter<Uri?> UriConverter => s_uriConverter ??= new UriConverter(); 258private static JsonConverter<Uri?>? s_uriConverter;
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
172public INamedTypeSymbol? UriType => GetOrResolveType(typeof(Uri), ref _UriType);
System.Web.HttpUtility (2)
System\Web\Util\UriUtil.cs (2)
33if (Uri.TryCreate(inputWithoutQueryFragment, UriKind.Absolute, out Uri? uri))
System.Windows.Forms (31)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
156private static Uri CalculateUri(string path) 473Uri uri = CalculateUri(_imageLocation); 558var uri = CalculateUri(_imageLocation);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
139public Uri? Url
System\Windows\Forms\Controls\WebBrowser\HtmlElementErrorEventArgs.cs (2)
12private Uri? _url; 40public Uri Url => _url ??= new Uri(_urlString);
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
72public void Go(Uri url) => Go(url.ToString());
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (4)
222public Uri? Url 307public void Navigate(Uri url) 340public HtmlWindow? Open(Uri url, string target, string windowOptions, bool replaceEntry) => 358public HtmlWindow? OpenNew(Uri url, string windowOptions) =>
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (7)
237Uri url = new(hrefString); 563public Uri? Url 687public void Navigate(Uri? url) 716public void Navigate(Uri? url, string? targetFrameName) 746public void Navigate(Uri? url, bool newWindow) 776public void Navigate(Uri? url, string? targetFrameName, byte[]? postData, string? additionalHeaders) 1279private string ReadyNavigateToUrl(Uri? url)
System\Windows\Forms\Controls\WebBrowser\WebBrowserDocumentCompletedEventArgs.cs (2)
14public WebBrowserDocumentCompletedEventArgs(Uri? url) 22public Uri? Url { get; }
System\Windows\Forms\Controls\WebBrowser\WebBrowserNavigatedEventArgs.cs (2)
14public WebBrowserNavigatedEventArgs(Uri? url) 22public Uri? Url { get; }
System\Windows\Forms\Controls\WebBrowser\WebBrowserNavigatingEventArgs.cs (2)
16public WebBrowserNavigatingEventArgs(Uri? url, string? targetFrameName) 25public Uri? Url { get; }
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (2)
14Uri? uri = base.ConvertFrom(context, culture, value) as Uri;
System\Windows\Forms\Help\Help.cs (5)
108Uri? file = null; 196Uri? file = Resolve(url) ?? throw new ArgumentException(string.Format(SR.HelpInvalidURL, url), nameof(url)); 236private static Uri? Resolve(string? partialUri) 238Uri? file = null; 297Uri? file = Resolve(url);
System.Windows.Forms.IntegrationTests.Common (2)
TestHelpers.cs (2)
242Uri codeBaseUrl = new(Assembly.GetExecutingAssembly().Location); 243string codeBasePath = Uri.UnescapeDataString(codeBaseUrl.AbsolutePath);
System.Windows.Forms.Tests (7)
System\Windows\Forms\WebBrowserDocumentCompletedEventArgsTests.cs (1)
14Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserNavigatedEventArgsTests.cs (1)
14Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserNavigatingEventArgsTests.cs (1)
17Uri url = new("http://google.com");
System\Windows\Forms\WebBrowserTests.cs (4)
2063public async Task WebBrowser_Url_SetNullOrEmpty_GoesToBlank(Uri nullOrEmptyUri) 2089Uri relativeUri = new("/path", UriKind.Relative); 3397public async Task WebBrowser_Navigate_NullOrEmptyUri_GoesToBlank(Uri nullOrEmptyUri) 3460Uri relativeUri = new("/path", UriKind.Relative);
System.Xaml (29)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (10)
22return sourceType == typeof(string) || sourceType == typeof(Uri); 30destinationType == typeof(Uri); 35if (value is Uri uri) 45ConstructorInfo constructor = typeof(Uri).GetConstructor(new Type[] { typeof(string), typeof(UriKind) }); 52else if (destinationType == typeof(Uri)) 65if (Uri.IsWellFormedUriString(uriString, UriKind.Absolute)) 70if (Uri.IsWellFormedUriString(uriString, UriKind.Relative)) 78if (value is Uri uri) 95return Uri.TryCreate(uriString, UriKind.RelativeOrAbsolute, out _); 98return value is Uri;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
423else if (typeof(Uri).IsAssignableFrom(type))
System\Windows\Markup\IUriContext.cs (1)
22Uri BaseUri { get; set; }
System\Xaml\Context\ObjectWriterContext.cs (2)
651public Uri BaseUri { get; set; } 657public Uri SourceBamlUri
System\Xaml\Context\SavedContext.cs (1)
37public Uri BaseUri { get; private set; }
System\Xaml\Context\ServiceProviderContext.cs (1)
120Uri IUriContext.BaseUri
System\Xaml\Events\XamlObjectEventArgs.cs (2)
15internal XamlObjectEventArgs(object instance, Uri sourceBamlUri, int elementLineNumber, int elementLinePosition) : 25public Uri SourceBamlUri { get; private set; }
System\Xaml\InfosetObjects\XamlObjectWriterSettings.cs (1)
56public Uri SourceBamlUri { get; set; }
System\Xaml\InfosetObjects\XamlReaderSettings.cs (1)
14public Uri BaseUri { get; set; }
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
525public override void SetUriBase(XamlType xamlType, object obj, Uri baseUri)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
332public override void SetUriBase(XamlType xamlType, object obj, Uri baseUri)
System\Xaml\Schema\BuiltInValueConverter.cs (5)
187if (typeof(Uri).IsAssignableFrom(targetType)) 194stdConverter = TypeDescriptor.GetConverter(typeof(Uri)); 198!stdConverter.CanConvertFrom(typeof(string)) || !stdConverter.CanConvertFrom(typeof(Uri)) || 199!stdConverter.CanConvertTo(typeof(string)) || !stdConverter.CanConvertTo(typeof(Uri)) || !stdConverter.CanConvertTo(typeof(InstanceDescriptor))) 218s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () => TypeDescriptor.GetConverter(typeof(Uri)));
System\Xaml\XamlLanguage.cs (1)
115new Lazy<XamlType>(() => GetXamlType(typeof(Uri)), true);
System\Xaml\XamlRuntime.cs (1)
58public abstract void SetUriBase(XamlType xamlType, object obj, Uri baseUri);
System.Xaml.Tests (25)
System\Windows\Markup\ValueSerializerTests.cs (1)
118yield return new object[] { typeof(Uri) };
System\Xaml\Replacements\TypeUriConverterTests.cs (22)
25TypeDescriptor.RemoveProvider(provider, typeof(Uri)); 32var normalType = new XamlType(typeof(Uri), new XamlSchemaContext()); 38TypeDescriptionProvider provider = TypeDescriptor.AddAttributes(typeof(Uri), new TypeConverterAttribute(converterType)); 39var type = new XamlType(typeof(Uri), new XamlSchemaContext()); 47[InlineData(typeof(Uri), true)] 81public void ConvertFrom_ValidObject_ReturnsExpected(object value, Uri expected) 84Uri actual = Assert.IsType<Uri>(converter.ConvertFrom(value)); 112var uri = new Uri("http://google.com"); 129public void ConvertTo_Uri_ReturnsExpected(Uri value, Uri expected) 132Assert.Equal(expected, converter.ConvertTo(value, typeof(Uri))); 147public void ConvertTo_InstanceDescriptor_ReturnsExpected(Uri value, UriKind expectedKind) 214return destinationType == typeof(Uri) || destinationType == typeof(InstanceDescriptor); 219return sourceType == typeof(string) || sourceType == typeof(Uri); 232return sourceType == typeof(string) || sourceType == typeof(Uri); 240return destinationType == typeof(string) || destinationType == typeof(Uri); 245return sourceType == typeof(string) || sourceType == typeof(Uri); 253return destinationType == typeof(string) || destinationType == typeof(Uri); 258return sourceType == typeof(Uri); 266return destinationType == typeof(string) || destinationType == typeof(Uri); 284return sourceType == typeof(string) || sourceType == typeof(Uri);
System\Xaml\XamlLanguageTests.cs (1)
243Assert.Equal(typeof(Uri), type.UnderlyingType);
System\Xaml\XamlSchemaContextTests.cs (1)
568new XamlType(typeof(Uri), new XamlSchemaContext())
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
28internal readonly Uri ListeningUri; 191private Uri ResolveListeningUrl(ITestOutputHelper output)
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
28internal readonly Uri ListeningUri; 191private Uri ResolveListeningUrl(ITestOutputHelper output)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
147var uri = new UriBuilder("http", E2ETestOptions.Instance.Sauce.HostName, 4445).Uri;
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
28internal readonly Uri ListeningUri; 191private Uri ResolveListeningUrl(ITestOutputHelper output)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
147var uri = new UriBuilder("http", E2ETestOptions.Instance.Sauce.HostName, 4445).Uri;
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
28internal readonly Uri ListeningUri; 191private Uri ResolveListeningUrl(ITestOutputHelper output)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
147var uri = new UriBuilder("http", E2ETestOptions.Instance.Sauce.HostName, 4445).Uri;
Templates.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
28internal readonly Uri ListeningUri; 191private Uri ResolveListeningUrl(ITestOutputHelper output)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
147var uri = new UriBuilder("http", E2ETestOptions.Instance.Sauce.HostName, 4445).Uri;
UnitTests.Common (6)
MockChannelFactory.cs (3)
46public Func<EndpointAddress, Uri, IChannel> OnCreateChannelOverride { get; set; } 71protected override TChannel OnCreateChannel(EndpointAddress address, Uri via) 76public IChannel DefaultOnCreateChannel(EndpointAddress address, Uri via)
MockRequestChannel.cs (3)
11private readonly Uri _via; 13public Uri Via 22public MockRequestChannel(ChannelManagerBase manager, MessageEncoderFactory encoderFactory, EndpointAddress address, Uri via)
WindowsBase.Tests (10)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (9)
225Assert.Throws<InvalidOperationException>(() => manager.Countersign(c, Array.Empty<Uri>())); 234Assert.Throws<ArgumentNullException>("certificate", () => manager.Countersign(null, Array.Empty<Uri>())); 271var parts = new List<Uri>(); 281Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts); 288Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative), new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts); 338protected override PackagePart CreatePartCore(Uri partUri, string contentType, CompressionOption compressionOption) 343public Action<Uri>? DeletePartCoreAction { get; set; } 345protected override void DeletePartCore(Uri partUri) 360protected override PackagePart? GetPartCore(Uri partUri)
System\Security\RightsManagement\UnsignedPublishLicenseTests.cs (1)
109public void ReferralInfoUri_Set_GetReturnsExpected(Uri? value)