17 instantiations of AzureSandboxOptions
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxesExtensions.cs (3)
172var sandboxOptions = options ?? new AzureSandboxOptions(); 207var options = new AzureSandboxOptions(); 311return new AzureSandboxOptions
Aspire.Hosting.Azure.Tests (14)
AzureSandboxesTests.cs (14)
471container.PublishAsAzureSandbox(new AzureSandboxOptions 1996.PublishAsAzureSandbox(new AzureSandboxOptions 2079.PublishAsAzureSandbox(new AzureSandboxOptions 2084.PublishAsAzureSandbox(new AzureSandboxOptions 2122Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2126Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2130Assert.Throws<ArgumentOutOfRangeException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2134Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2138Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2142Assert.Throws<ArgumentException>(() => container.PublishAsAzureSandbox(new AzureSandboxOptions 2231.PublishAsAzureSandbox(new AzureSandboxOptions 2265.PublishAsAzureSandbox(new AzureSandboxOptions 2526.PublishAsAzureSandbox(new AzureSandboxOptions 2688.PublishAsAzureSandbox(new AzureSandboxOptions
22 references to AzureSandboxOptions
Aspire.Hosting.Azure.Sandboxes (22)
AzureSandboxContainerDeployment.cs (6)
580var options = GetAzureSandboxContainerOptions(resource.TargetResource); 594Interval = ToInt32Seconds(options?.AutoSuspendInterval, nameof(AzureSandboxOptions.AutoSuspendInterval)), 600DeleteIntervalInSeconds = ToInt64Seconds(options.AutoDeleteInterval, nameof(AzureSandboxOptions.AutoDeleteInterval)), 807var options = GetAzureSandboxContainerOptions(resource.TargetResource); 1477var options = GetAzureSandboxContainerOptions(resource.TargetResource); 2359private static AzureSandboxOptions? GetAzureSandboxContainerOptions(IResource resource)
AzureSandboxContainerOptionsAnnotation.cs (2)
131internal sealed class AzureSandboxContainerOptionsAnnotation(AzureSandboxOptions options) : IResourceAnnotation 133public AzureSandboxOptions Options { get; } = options;
AzureSandboxesExtensions.cs (14)
162AzureSandboxOptions? options = null) 172var sandboxOptions = options ?? new AzureSandboxOptions(); 176var copiedOptions = CopyAzureSandboxOptions(sandboxOptions); 196Action<AzureSandboxOptions> configure) 207var options = new AzureSandboxOptions(); 309private static AzureSandboxOptions CopyAzureSandboxOptions(AzureSandboxOptions options) 362private static void ValidateSandboxOptions(AzureSandboxOptions options) 371nameof(AzureSandboxOptions.AutoSuspendInterval), 373ValidateOptionalEnum(options.AutoSuspendMode, nameof(AzureSandboxOptions.AutoSuspendMode)); 374ValidateOptionalWholeSecondDuration(options.AutoDeleteInterval, nameof(AzureSandboxOptions.AutoDeleteInterval)); 375ValidateOptionalEnum(options.AutoDeleteTrigger, nameof(AzureSandboxOptions.AutoDeleteTrigger)); 381$"{nameof(AzureSandboxOptions.AutoSuspendEnabled)} must be set when configuring auto-suspend interval or mode.", 389$"{nameof(AzureSandboxOptions.AutoDeleteEnabled)} must be set when configuring auto-delete interval or trigger.",