11 instantiations of HostedAgentConfiguration
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
104var def = new HostedAgentConfiguration(imageName)
Aspire.Hosting.Foundry.Tests (10)
HostedAgentConfigurationTests.cs (10)
11var config = new HostedAgentConfiguration("myimage:latest"); 18var config = new HostedAgentConfiguration("myimage:latest"); 25var config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m }; 32var config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m }; 39var config = new HostedAgentConfiguration("myimage:latest"); 48var config = new HostedAgentConfiguration("myimage:latest"); 57var config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1"); 64var config = new HostedAgentConfiguration("myimage:latest") 79var config = new HostedAgentConfiguration("myimage:latest"); 89var config = new HostedAgentConfiguration("myimage:latest");
21 references to HostedAgentConfiguration
Aspire.Hosting.Foundry (11)
HostedAgent\AzureHostedAgentResource.cs (5)
23public AzureHostedAgentResource([ResourceName] string name, IResource target, Action<HostedAgentConfiguration>? configure = null) : base(name) 76public Action<HostedAgentConfiguration>? Configure { get; set; } 96public async Task<HostedAgentConfiguration> ToHostedAgentConfigurationAsync(PipelineStepContext context) 104var def = new HostedAgentConfiguration(imageName) 142var def = await ToHostedAgentConfigurationAsync(context).ConfigureAwait(false);
HostedAgent\HostedAgentBuilderExtension.cs (6)
24this IResourceBuilder<T> builder, Action<HostedAgentConfiguration>? configure = null) 36this IResourceBuilder<T> builder, IResourceBuilder<AzureCognitiveServicesProjectResource>? project = null, Action<HostedAgentConfiguration>? configure = null) 48this IResourceBuilder<T> builder, Action<HostedAgentConfiguration> configure) 60this IResourceBuilder<T> builder, IResourceBuilder<AzureCognitiveServicesProjectResource>? project = null, Action<HostedAgentConfiguration>? configure = null) 80this IResourceBuilder<T> builder, Action<HostedAgentConfiguration> configure) 96this IResourceBuilder<T> builder, IResourceBuilder<AzureCognitiveServicesProjectResource>? project = null, Action<HostedAgentConfiguration>? configure = null)
Aspire.Hosting.Foundry.Tests (10)
HostedAgentConfigurationTests.cs (10)
11var config = new HostedAgentConfiguration("myimage:latest"); 18var config = new HostedAgentConfiguration("myimage:latest"); 25var config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m }; 32var config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m }; 39var config = new HostedAgentConfiguration("myimage:latest"); 48var config = new HostedAgentConfiguration("myimage:latest"); 57var config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1"); 64var config = new HostedAgentConfiguration("myimage:latest") 79var config = new HostedAgentConfiguration("myimage:latest"); 89var config = new HostedAgentConfiguration("myimage:latest");