File: ITemplateLocator.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
{
    /// <summary>
    /// Defines the location of a template.
    /// </summary>
    public interface ITemplateLocator
    {
        /// <summary>
        /// Gets generator ID the template should be processed by.
        /// </summary>
        Guid GeneratorId { get; }

        /// <summary>
        /// Gets template mount point URI.
        /// </summary>
        string MountPointUri { get; }

        /// <summary>
        /// Gets the path to template configuration inside mount point.
        /// </summary>
        string ConfigPlace { get; }
    }

    public interface IExtendedTemplateLocator : ITemplateLocator
    {
        /// <summary>
        /// Gets the path to the localization configuration inside the mount point.
        /// </summary>
        string? LocaleConfigPlace { get; }

        /// <summary>
        /// Gets the path to the host configuration inside the mount point.
        /// </summary>
        string? HostConfigPlace { get; }
    }
}