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