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