8 instantiations of HostUrl
Aspire.Hosting (1)
OtlpConfigurationExtensions.cs (1)
86
context.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)
170
env.EnvironmentVariables["envname"] = new
HostUrl
(hostUrlVal);
213
.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)
87
.WithEnvironment("URL", new
HostUrl
("http://localhost:17092/path"));
4 references to HostUrl
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (4)
1788
if (value is
HostUrl
hostUrl)
1823
HostUrl
hostUrl,
1828
if (!
HostUrl
.TryGetLocalHostPort(hostUrl.Url, out var port))
1850
if (resource.Annotations.OfType<EndpointAnnotation>().Any(ep =>
HostUrl
.MatchesHostPort(ep, port)) && dependencies.Add(resource))