26 references to EndpointValueProperty
Aspire.Hosting.Native.Core (11)
Model\SymbolicValue.cs (5)
43
public
EndpointValueProperty
EndpointProperty { get; }
50
ResourceHandle? resource, string endpointName,
EndpointValueProperty
property, ImmutableArray<SymbolicValue> parts, bool hasValue)
116
public static SymbolicValue Endpoint(ResourceHandle resource, string name,
EndpointValueProperty
property)
160
Func<ResourceHandle, string,
EndpointValueProperty
, T> endpoint,
171
public string Resolve(ValueNetworkContext context, Func<ResourceHandle, string,
EndpointValueProperty
, string> endpoint)
Runtime\RuntimeGeneration.cs (6)
350
private string ResolveEndpointValue(ResourceHandle handle, string name,
EndpointValueProperty
property)
365
EndpointValueProperty
.Host => endpoint.Host,
366
EndpointValueProperty
.Port => endpoint.Port.ToString(System.Globalization.CultureInfo.InvariantCulture),
367
EndpointValueProperty
.HostAndPort => $"{host}:{endpoint.Port}",
368
EndpointValueProperty
.Scheme => endpoint.UriScheme,
369
EndpointValueProperty
.Url => new UriBuilder(endpoint.UriScheme, endpoint.Host, endpoint.Port).Uri.AbsoluteUri.TrimEnd('/'),
Aspire.Hosting.Native.Core.Tests (9)
DeclarativeApplicationTests.cs (2)
87
var value = SymbolicValue.Endpoint(dependency, "tcp",
EndpointValueProperty
.Host);
99
var foreignValue = SymbolicValue.Endpoint(foreignResource, "tcp",
EndpointValueProperty
.Host);
SymbolicValueTests.cs (7)
20
.Concat(SymbolicValue.Endpoint(redis, "tcp",
EndpointValueProperty
.HostAndPort));
37
model.SetSymbolicConfiguration(first, "target", SymbolicValue.Endpoint(second, "tcp",
EndpointValueProperty
.Port));
39
model.SetSymbolicConfiguration(second, "target", SymbolicValue.Endpoint(first, "tcp",
EndpointValueProperty
.Port));
44
model.SetSymbolicConfiguration(first, "target", SymbolicValue.Endpoint(second, "tcp",
EndpointValueProperty
.Port));
71
var connection = SymbolicValue.Endpoint(source, "tcp",
EndpointValueProperty
.HostAndPort)
153
model.SetSymbolicConfiguration(target, "endpoint", SymbolicValue.Endpoint(source, "tcp",
EndpointValueProperty
.Host));
171
model.SetSymbolicConfiguration(target, "endpoint", SymbolicValue.Endpoint(target, "tcp",
EndpointValueProperty
.Host));
Aspire.Hosting.Native.Server (6)
Api\CompositionApi.cs (6)
214
var
parsed = property switch
216
"host" =>
EndpointValueProperty
.Host,
217
"port" =>
EndpointValueProperty
.Port,
218
"hostAndPort" =>
EndpointValueProperty
.HostAndPort,
219
"scheme" =>
EndpointValueProperty
.Scheme,
220
"url" =>
EndpointValueProperty
.Url,