4 writes to Value
Aspire.Hosting (4)
ApplicationModel\ResolvedPort.cs (4)
34public static ResolvedPort Explicit(int port) => new() { Value = port, IsAllocated = false }; 41public static ResolvedPort Allocated(int port) => new() { Value = port, IsAllocated = true }; 48public static ResolvedPort Implicit(int port) => new() { Value = port, IsImplicit = true }; 54public static ResolvedPort None() => new() { Value = null, IsAllocated = false };
15 references to Value
Aspire.Hosting (8)
ApplicationModel\ResolvedPort.cs (1)
59public static implicit operator int?(ResolvedPort resolvedPort) => resolvedPort.Value;
ApplicationModel\ResourceExtensions.cs (3)
816ResolvedPort exposedPort = (endpoint.UriScheme, endpoint.Port, targetPort.Value) switch 833if (exposedPort.Value is int ep) 838if (targetPort.Value is int tp)
Publishing\ManifestPublishingContext.cs (4)
503if (resolved.ExposedPort.Value is int exposedPort && !resolved.ExposedPort.IsImplicit && 504(!resolved.TargetPort.Value.HasValue || resolved.TargetPort.Value.Value != exposedPort)) 509if (resolved.TargetPort.Value is int targetPort)
Aspire.Hosting.Azure.AppContainers (2)
ContainerAppContext.cs (2)
159.GroupBy(x => x.resolved.TargetPort.Value) 264_endpointMapping[endpoint.Name] = new(endpoint.UriScheme, NormalizedContainerAppName, resolved.ExposedPort.Value ?? g.Port.Value, g.Port.Value, false, g.External);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
110.Select(r => r.TargetPort.Value)
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentContext.cs (2)
49string internalPort = resolved.TargetPort.Value is int port 55var exposedPort = (resolved.ExposedPort.IsAllocated || resolved.ExposedPort.IsImplicit) ? null : resolved.ExposedPort.Value;
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
171if (resolved.TargetPort.Value is null) 178var portValue = resolved.TargetPort.Value.Value.ToString(CultureInfo.InvariantCulture);