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