4 writes to Memory
Aspire.Hosting.Foundry.Tests (3)
HostedAgentConfigurationTests.cs (3)
49
Assert.Throws<ArgumentException>(() => config.
Memory
= 0.5m);
50
Assert.Throws<ArgumentException>(() => config.
Memory
= 8.0m);
51
Assert.Throws<ArgumentException>(() => config.
Memory
= 1.3m); // Not a 0.5 increment
FoundryAgentEnterprise.AppHost (1)
Program.cs (1)
34
opts.
Memory
= 8;
3 references to Memory
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentConfiguration.cs (2)
82
throw new ArgumentException("Memory must be between 1 and 7 in increments of 0.5 Gi.", nameof(
Memory
));
91
public string MemoryString { get =>
Memory
.ToString(System.Globalization.CultureInfo.InvariantCulture) + "Gi"; }
Aspire.Hosting.Foundry.Tests (1)
HostedAgentConfigurationTests.cs (1)
19
Assert.Equal(4.0m, config.
Memory
);