|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.TemplateEngine.Abstractions
{
/// <summary>
/// Represents a tag or a parameter symbol with choices in template cache file.
/// </summary>
[Obsolete("Deprecated. Template cache now uses ITemplateParameter instead for choice parameters.")]
public interface ICacheTag
{
/// <summary>
/// Gets the friendly name of the choice parameter symbol to be displayed to the user.
/// </summary>
string? DisplayName { get; }
/// <summary>
/// Gets the description of the choice parameter symbol to be displayed to the user.
/// </summary>
string? Description { get; }
/// <summary>
/// Gets the dictionary containing the possible choices for this tag or parameter symbol.
/// Keys represents the identifiers of the choices.
/// </summary>
IReadOnlyDictionary<string, ParameterChoice> Choices { get; }
/// <summary>
/// Gets the identifier of the default choice to be used when no choice was explicitly selected.
/// </summary>
string? DefaultValue { get; }
}
}
|