1 write to Target
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
26Target = target;
10 references to Target
Aspire.Hosting.Foundry (10)
HostedAgent\AzureHostedAgentResource.cs (10)
33var deploymentAnnotation = Target.GetDeploymentTargetAnnotation() ?? throw new InvalidOperationException($"Deployment target annotation is required on resource '{Target.Name}' to deploy as hosted agent."); 35?? throw new InvalidOperationException($"Compute environment for resource '{Target.Name}' must be an AzureCognitiveServicesProjectResource to deploy as hosted agent."); 63context.GetSteps(Target, WellKnownPipelineTags.BuildCompute).RequiredBy(context.GetSteps(Target, WellKnownPipelineTags.PushContainerImage)); 68var pushSteps = context.GetSteps(Target, WellKnownPipelineTags.PushContainerImage); 86public ContainerImageReference Image => new(Target); 107EnvironmentVariables = await GetResolvedEnvironmentVariablesAsync(context.ExecutionContext, Target, context.Logger, context.CancellationToken).ConfigureAwait(false), 125ctx.Writer.WriteString("target", Target.Name); 127ctx.TryAddDependentResources(Target);