8 instantiations of HostUrl
Aspire.Hosting (1)
OtlpConfigurationExtensions.cs (1)
86context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = new HostUrl(url);
Aspire.Hosting.Tests (7)
Dcp\DcpExecutorTests.cs (2)
8936.WithEnvironment("URL", new HostUrl("https://localhost:17092/path")); 8968.WithEnvironment("URL", new HostUrl("https://localhost:5678/path"));
ExpressionResolverTests.cs (2)
170env.EnvironmentVariables["envname"] = new HostUrl(hostUrlVal); 213.WithEnvironment("envname", new HostUrl("http://localhost:18889/path"));
ReferenceExpressionTests.cs (2)
48var expr = ReferenceExpression.Create($"{input}", [new HostUrl("test")], parameters, []).ValueExpression; 62var expr = ReferenceExpression.Create($"{input}", [new HostUrl("test")], [parameterValue], []).ValueExpression;
ResourceDependencyTests.cs (1)
87.WithEnvironment("URL", new HostUrl("http://localhost:17092/path"));
4 references to HostUrl
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (4)
1788if (value is HostUrl hostUrl) 1823HostUrl hostUrl, 1828if (!HostUrl.TryGetLocalHostPort(hostUrl.Url, out var port)) 1850if (resource.Annotations.OfType<EndpointAnnotation>().Any(ep => HostUrl.MatchesHostPort(ep, port)) && dependencies.Add(resource))