1 write to Port
Aspire.Hosting (1)
ApplicationModel\AllocatedEndpoint.cs (1)
64
Port
= port;
15 references to Port
Aspire.Hosting (8)
ApplicationModel\AllocatedEndpoint.cs (1)
127
public string EndPointString => $"{Address}:{
Port
}";
ApplicationModel\EndpointReference.cs (3)
193
public int Port => AllocatedEndpoint.
Port
;
381
EndpointProperty.Port => new(allocatedEndpoint.
Port
.ToString(CultureInfo.InvariantCulture)),
383
EndpointProperty.HostAndPort => new($"{allocatedEndpoint.Address}:{allocatedEndpoint.
Port
.ToString(CultureInfo.InvariantCulture)}"),
Devcontainers\DevcontainerPortForwardingEventingSubscriber.cs (1)
45
endpoint.AllocatedEndpoint!.
Port
,
Orchestrator\ApplicationOrchestrator.cs (3)
350
Url = $"{allocatedEndpoint.UriScheme}://{endpoint.TargetHost}:{allocatedEndpoint.
Port
}",
359
Url = $"{allocatedEndpoint.UriScheme}://{Environment.MachineName}:{allocatedEndpoint.
Port
}",
392
Url = $"{allocatedEndpoint.UriScheme}://{resource.Name.ToLowerInvariant()}-{subdomainSuffix}.dev.localhost:{allocatedEndpoint.
Port
}",
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
217
target = new OtlpEndpointTarget(allocatedEndpoint.UriScheme, allocatedEndpoint.
Port
);
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (3)
1133
Assert.Equal(allocatedPort, endpoint.AllocatedEndpoint?.
Port
);
3762
allocatedPortChannel.Writer.TryWrite(allocatedEndpoint.
Port
);
8924
Assert.Equal(port, allocatedEndpoint.
Port
);
DistributedApplicationTests.cs (1)
1703
Assert.InRange(allocatedEndpoint.
Port
, 10000, 32767);
SlimTestProgramTests.cs (2)
61
Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.
Port
);
80
Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.
Port
);