File: TemplateFiltering\ITemplateMatchInfo.cs
Web Access
Project: src\src\sdk\src\TemplateEngine\Microsoft.TemplateEngine.Abstractions\Microsoft.TemplateEngine.Abstractions.csproj (Microsoft.TemplateEngine.Abstractions)
// 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.TemplateFiltering
{
    /// <summary>
    /// Template with information about matching the filters.
    /// </summary>
    public interface ITemplateMatchInfo
    {
        /// <summary>
        /// Gets the template the filters applied to.
        /// </summary>
        ITemplateInfo Info { get; }

        /// <summary>
        /// Gets match information for the filters applied to template.
        /// </summary>
        IReadOnlyList<MatchInfo> MatchDisposition { get; }

        /// <summary>
        /// Adds the match information.
        /// </summary>
        /// <param name="newDisposition"></param>
        void AddMatchDisposition(MatchInfo newDisposition);
    }
}