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