27 instantiations of HostedAgentConfiguration
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
114
var def = new
HostedAgentConfiguration
(imageName)
Aspire.Hosting.Foundry.Tests (26)
HostedAgentConfigurationTests.cs (16)
15
var config = new
HostedAgentConfiguration
("myimage:latest");
22
var config = new
HostedAgentConfiguration
("myimage:latest");
29
var config = new
HostedAgentConfiguration
("myimage:latest") { Cpu = 1.5m };
36
var config = new
HostedAgentConfiguration
("myimage:latest") { Cpu = 1.5m };
43
var config = new
HostedAgentConfiguration
("myimage:latest");
52
var config = new
HostedAgentConfiguration
("myimage:latest");
61
var config = new
HostedAgentConfiguration
("myregistry.azurecr.io/myagent:v1");
68
var config = new
HostedAgentConfiguration
("myimage:latest")
84
var config = new
HostedAgentConfiguration
("myregistry.azurecr.io/myagent:v1");
102
var config = new
HostedAgentConfiguration
("myregistry.azurecr.io/myagent:v1");
112
var config = new
HostedAgentConfiguration
("myregistry.azurecr.io/myagent:v1");
124
var config = new
HostedAgentConfiguration
("myregistry.azurecr.io/myagent:v1");
137
var config = new
HostedAgentConfiguration
("myimage:latest");
147
var config = new
HostedAgentConfiguration
("myimage:latest");
162
var config = new
HostedAgentConfiguration
("myimage:latest");
177
var config = new
HostedAgentConfiguration
("myimage:latest");
HostedAgentExtensionTests.cs (10)
280
var configuration = new
HostedAgentConfiguration
("test-image");
304
var configuration = new
HostedAgentConfiguration
("test-image");
324
var configuration = new
HostedAgentConfiguration
("test-image");
346
var configuration = new
HostedAgentConfiguration
("test-image");
480
var configuration = new
HostedAgentConfiguration
("test-image");
516
var configuration = new
HostedAgentConfiguration
("test-image");
545
var configuration = new
HostedAgentConfiguration
("test-image");
569
var configuration = new
HostedAgentConfiguration
("test-image");
660
var configuration = new
HostedAgentConfiguration
("test-image")
786
var configuration = new
HostedAgentConfiguration
("test-image");
47 references to HostedAgentConfiguration
Aspire.Hosting.Foundry (21)
HostedAgent\AzureHostedAgentResource.cs (8)
35
public AzureHostedAgentResource([ResourceName] string name, IResource target, Action<
HostedAgentConfiguration
>? configure = null) : base(name)
86
public Action<
HostedAgentConfiguration
>? Configure { get; set; }
106
private async Task<
HostedAgentConfiguration
> ToHostedAgentConfigurationAsync(PipelineStepContext context)
114
var
def = new HostedAgentConfiguration(imageName)
127
internal static void EnsureProtocolVersions(
HostedAgentConfiguration
configuration)
167
var
def = await ToHostedAgentConfigurationAsync(context).ConfigureAwait(false);
185
private async Task UpdateAgentEndpointProtocolsAsync(AgentAdministrationClient agentsClient,
HostedAgentConfiguration
configuration, CancellationToken cancellationToken)
326
if (
HostedAgentConfiguration
.IsReservedEnvironmentVariableName(key))
HostedAgent\HostedAgentBuilderExtension.cs (12)
91
Action<
HostedAgentConfiguration
>? configure = null)
111
Action<
HostedAgentConfiguration
> configure)
143
Action<
HostedAgentConfiguration
>? configure = options is null ? null : options.ApplyTo;
175
Action<
HostedAgentConfiguration
>? configure = options is null ? null : options.ApplyTo;
181
/// access to the underlying <see cref="
HostedAgentConfiguration
"/> (including Azure SDK-specific options
201
Action<
HostedAgentConfiguration
>? configure = null)
212
Action<
HostedAgentConfiguration
>? configure)
238
/// access to the underlying <see cref="
HostedAgentConfiguration
"/>. The Foundry project is resolved automatically
252
Action<
HostedAgentConfiguration
> configure)
440
Action<
HostedAgentConfiguration
>? configure)
579
private static Action<
HostedAgentConfiguration
> CreateConfigureCallback(
581
Action<
HostedAgentConfiguration
>? configure)
HostedAgent\HostedAgentOptions.cs (1)
48
internal void ApplyTo(
HostedAgentConfiguration
configuration)
Aspire.Hosting.Foundry.Tests (26)
HostedAgentConfigurationTests.cs (16)
15
var
config = new HostedAgentConfiguration("myimage:latest");
22
var
config = new HostedAgentConfiguration("myimage:latest");
29
var
config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m };
36
var
config = new HostedAgentConfiguration("myimage:latest") { Cpu = 1.5m };
43
var
config = new HostedAgentConfiguration("myimage:latest");
52
var
config = new HostedAgentConfiguration("myimage:latest");
61
var
config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1");
68
var
config = new HostedAgentConfiguration("myimage:latest")
84
var
config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1");
102
var
config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1");
112
var
config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1");
124
var
config = new HostedAgentConfiguration("myregistry.azurecr.io/myagent:v1");
137
var
config = new HostedAgentConfiguration("myimage:latest");
147
var
config = new HostedAgentConfiguration("myimage:latest");
162
var
config = new HostedAgentConfiguration("myimage:latest");
177
var
config = new HostedAgentConfiguration("myimage:latest");
HostedAgentExtensionTests.cs (10)
280
var
configuration = new HostedAgentConfiguration("test-image");
304
var
configuration = new HostedAgentConfiguration("test-image");
324
var
configuration = new HostedAgentConfiguration("test-image");
346
var
configuration = new HostedAgentConfiguration("test-image");
480
var
configuration = new HostedAgentConfiguration("test-image");
516
var
configuration = new HostedAgentConfiguration("test-image");
545
var
configuration = new HostedAgentConfiguration("test-image");
569
var
configuration = new HostedAgentConfiguration("test-image");
660
var
configuration = new HostedAgentConfiguration("test-image")
786
var
configuration = new HostedAgentConfiguration("test-image");