Skip to content

Commit 4359e24

Browse files
committed
Add experimental attribute.
1 parent b5f8211 commit 4359e24

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

playground/AzureContainerApps/AzureContainerApps.AppHost/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#pragma warning disable ASPIREACADOMAINS001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5+
46
var builder = DistributedApplication.CreateBuilder(args);
57

68
var customDomain = builder.AddParameter("customDomain");

src/Aspire.Hosting.Azure.AppContainers/ContainerAppExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Azure.Provisioning.AppContainers;
66
using Azure.Provisioning.Expressions;
77
using Azure.Provisioning;
8+
using System.Diagnostics.CodeAnalysis;
89

910
namespace Aspire.Hosting;
1011

@@ -52,6 +53,7 @@ public static class ContainerAppExtensions
5253
/// });
5354
/// </code>
5455
/// </example>
56+
[Experimental("ASPIREACADOMAINS001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
5557
public static void ConfigureCustomDomain(this ContainerApp app, IResourceBuilder<ParameterResource> customDomain, IResourceBuilder<ParameterResource> certificateName)
5658
{
5759
if (app.ParentInfrastructure is not ResourceModuleConstruct module)

tests/Aspire.Hosting.Azure.Tests/AzureContainerAppsTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#pragma warning disable ASPIREACADOMAINS001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5+
46
using System.Runtime.CompilerServices;
57
using Aspire.Hosting.ApplicationModel;
68
using Aspire.Hosting.Utils;

0 commit comments

Comments
 (0)