File: ApplicationModel\AppLaunchArgumentAnnotation.cs
Web Access
Project: src\src\Aspire.Hosting\Aspire.Hosting.csproj (Aspire.Hosting)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Diagnostics;
 
namespace Aspire.Hosting.ApplicationModel;
 
/// <summary>
/// Represents a container or project application launch argument.
/// </summary>
[DebuggerDisplay("Type = {GetType().Name,nq}, Argument = {Argument}, IsSensitive = {IsSensitive}")]
internal sealed class AppLaunchArgumentAnnotation(string argument, bool isSensitive) : IResourceAnnotation
{
    /// <summary>
    /// The evaluated launch argument.
    /// </summary>
    public string Argument { get; } = argument;
 
    /// <summary>
    /// Whether the argument contains a secret.
    /// </summary>
    public bool IsSensitive { get; } = isSensitive;
}