6 references to Resource
Aspire.Hosting (6)
ApplicationModel\ContainerImageReference.cs (6)
22
public string ValueExpression => $"{{{
Resource
.Name}.containerImage}}";
25
public IEnumerable<object> References => [
Resource
];
30
var deploymentTarget =
Resource
.GetDeploymentTargetAnnotation() ?? throw new InvalidOperationException($"Resource '{
Resource
.Name}' does not have a deployment target.");
31
var containerRegistry = deploymentTarget.ContainerRegistry ?? throw new InvalidOperationException($"Resource '{
Resource
.Name}' does not have a container registry.");
33
return $"{registryEndpoint}/{
Resource
.Name.ToLowerInvariant()}:latest";