18 instantiations of AzureSandboxOptions
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxesExtensions.cs (3)
166var sandboxOptions = options ?? new AzureSandboxOptions(); 200var options = new AzureSandboxOptions(); 300return new AzureSandboxOptions
Aspire.Hosting.Azure.Tests (15)
AzureSandboxesTests.cs (15)
470container.PublishAsAzureSandbox(new AzureSandboxOptions 1995.PublishAsAzureSandbox(new AzureSandboxOptions 2078.PublishAsAzureSandbox(new AzureSandboxOptions 2083.PublishAsAzureSandbox(new AzureSandboxOptions 2121Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2125Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2129Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2133Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2137Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2141Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2230.PublishAsAzureSandbox(new AzureSandboxOptions 2264.PublishAsAzureSandbox(new AzureSandboxOptions 2525.PublishAsAzureSandbox(new AzureSandboxOptions 2591.PublishAsAzureSandbox(new AzureSandboxOptions { Tier = tier }); 2761.PublishAsAzureSandbox(new AzureSandboxOptions
22 references to AzureSandboxOptions
Aspire.Hosting.Azure.Sandboxes (22)
AzureSandboxContainerDeployment.cs (6)
578var options = GetAzureSandboxContainerOptions(resource.TargetResource); 592Interval = ToInt32Seconds(options?.AutoSuspendInterval, nameof(AzureSandboxOptions.AutoSuspendInterval)), 598DeleteIntervalInSeconds = ToInt64Seconds(options.AutoDeleteInterval, nameof(AzureSandboxOptions.AutoDeleteInterval)), 805var options = GetAzureSandboxContainerOptions(resource.TargetResource); 1475var options = GetAzureSandboxContainerOptions(resource.TargetResource); 2357private static AzureSandboxOptions? GetAzureSandboxContainerOptions(IResource resource)
AzureSandboxContainerOptionsAnnotation.cs (2)
123internal sealed class AzureSandboxContainerOptionsAnnotation(AzureSandboxOptions options) : IResourceAnnotation 125public AzureSandboxOptions Options { get; } = options;
AzureSandboxesExtensions.cs (14)
156AzureSandboxOptions? options = null) 166var sandboxOptions = options ?? new AzureSandboxOptions(); 170var copiedOptions = CopyAzureSandboxOptions(sandboxOptions); 189Action<AzureSandboxOptions> configure) 200var options = new AzureSandboxOptions(); 298private static AzureSandboxOptions CopyAzureSandboxOptions(AzureSandboxOptions options) 351private static void ValidateSandboxOptions(AzureSandboxOptions options) 360nameof(AzureSandboxOptions.AutoSuspendInterval), 362ValidateOptionalEnum(options.AutoSuspendMode, nameof(AzureSandboxOptions.AutoSuspendMode)); 363ValidateOptionalWholeSecondDuration(options.AutoDeleteInterval, nameof(AzureSandboxOptions.AutoDeleteInterval)); 364ValidateOptionalEnum(options.AutoDeleteTrigger, nameof(AzureSandboxOptions.AutoDeleteTrigger)); 370$"{nameof(AzureSandboxOptions.AutoSuspendEnabled)} must be set when configuring auto-suspend interval or mode.", 378$"{nameof(AzureSandboxOptions.AutoDeleteEnabled)} must be set when configuring auto-delete interval or trigger.",