5 writes to Memory
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentOptions.cs (1)
64configuration.Memory = memory;
Aspire.Hosting.Foundry.Tests (3)
HostedAgentConfigurationTests.cs (3)
53Assert.Throws<ArgumentException>(() => config.Memory = 0.5m); 54Assert.Throws<ArgumentException>(() => config.Memory = 8.0m); 55Assert.Throws<ArgumentException>(() => config.Memory = 1.3m); // Not a 0.5 increment
FoundryAgentEnterprise.AppHost (1)
AppHost.cs (1)
33opts.Memory = 8;
5 references to Memory
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentConfiguration.cs (2)
92throw new ArgumentException("Memory must be between 1 and 7 in increments of 0.5 Gi.", nameof(Memory)); 102public string MemoryString { get => Memory.ToString(CultureInfo.InvariantCulture) + "Gi"; }
Aspire.Hosting.Foundry.Tests (3)
HostedAgentConfigurationTests.cs (1)
23Assert.Equal(4.0m, config.Memory);
HostedAgentExtensionTests.cs (2)
465Assert.Equal(2m, configuration.Memory); 501Assert.Equal(2m, configuration.Memory);