3 writes to IsAllocated
Aspire.Hosting (3)
ApplicationModel\ResolvedPort.cs (3)
34public static ResolvedPort Explicit(int port) => new() { Value = port, IsAllocated = false }; 41public static ResolvedPort Allocated(int port) => new() { Value = port, IsAllocated = true }; 54public static ResolvedPort None() => new() { Value = null, IsAllocated = false };
3 references to IsAllocated
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
55var exposedPort = (resolved.ExposedPort.IsAllocated || resolved.ExposedPort.IsImplicit) ? null : resolved.ExposedPort.Value;
Aspire.Hosting.Tests (2)
ResourceExtensionsTests.cs (2)
685Assert.False(endpoint.TargetPort.IsAllocated); 688Assert.False(endpoint.ExposedPort.IsAllocated);