9 instantiations of HostUrl
Aspire.Hosting (1)
OtlpConfigurationExtensions.cs (1)
131
context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = new
HostUrl
(url);
Aspire.Hosting.Tests (7)
Dcp\DcpExecutorTests.cs (2)
10796
.WithEnvironment("URL", new
HostUrl
($"https://{host}:17092/path"));
10830
.WithEnvironment("URL", new
HostUrl
($"https://{host}:5678/path"));
ExpressionResolverTests.cs (2)
176
env.EnvironmentVariables["envname"] = new
HostUrl
(hostUrlVal);
219
.WithEnvironment("envname", new
HostUrl
("http://localhost:18889/path"));
ReferenceExpressionTests.cs (2)
48
var expr = ReferenceExpression.Create($"{input}", [new
HostUrl
("test")], parameters, []).ValueExpression;
62
var expr = ReferenceExpression.Create($"{input}", [new
HostUrl
("test")], [parameterValue], []).ValueExpression;
ResourceDependencyTests.cs (1)
89
.WithEnvironment("URL", new
HostUrl
($"http://{hostName}:17092/path"));
ExternalServices.AppHost (1)
AppHost.cs (1)
40
.WithEnvironment("FRONTEND_URL", new
HostUrl
("http://frontend.dev.localhost:5115"))
4 references to HostUrl
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (4)
1795
if (reference is
HostUrl
hostUrl)
1882
HostUrl
hostUrl,
1887
if (!
HostUrl
.TryGetLocalHostPort(hostUrl.Url, out var port))
1909
if (resource.Annotations.OfType<EndpointAnnotation>().Any(ep =>
HostUrl
.MatchesHostPort(ep, port)) && dependencies.Add(resource))