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)
472container.PublishAsAzureSandbox(new AzureSandboxOptions 1997.PublishAsAzureSandbox(new AzureSandboxOptions 2080.PublishAsAzureSandbox(new AzureSandboxOptions 2085.PublishAsAzureSandbox(new AzureSandboxOptions 2123Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2127Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2131Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2135Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2139Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2143Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2232.PublishAsAzureSandbox(new AzureSandboxOptions 2266.PublishAsAzureSandbox(new AzureSandboxOptions 2527.PublishAsAzureSandbox(new AzureSandboxOptions 2593.PublishAsAzureSandbox(new AzureSandboxOptions { Tier = tier }); 2763.PublishAsAzureSandbox(new AzureSandboxOptions
22 references to AzureSandboxOptions
Aspire.Hosting.Azure.Sandboxes (22)
AzureSandboxContainerDeployment.cs (6)
579var options = GetAzureSandboxContainerOptions(resource.TargetResource); 593Interval = ToInt32Seconds(options?.AutoSuspendInterval, nameof(AzureSandboxOptions.AutoSuspendInterval)), 599DeleteIntervalInSeconds = ToInt64Seconds(options.AutoDeleteInterval, nameof(AzureSandboxOptions.AutoDeleteInterval)), 806var options = GetAzureSandboxContainerOptions(resource.TargetResource); 1476var options = GetAzureSandboxContainerOptions(resource.TargetResource); 2358private 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.",