24 references to IScanTemplateInfo
Microsoft.TemplateEngine.Abstractions (2)
IGenerator.cs (2)
73/// Scans the given mount point <paramref name="source"/> for templates and returns the list of <see cref="IScanTemplateInfo"/>s that are found. 78Task<IReadOnlyList<IScanTemplateInfo>> GetTemplatesFromMountPointAsync(IMountPoint source, CancellationToken cancellationToken);
Microsoft.TemplateEngine.Edge (17)
Settings\Scanner.cs (3)
236var templates = new List<IScanTemplateInfo>(); 239IReadOnlyList<IScanTemplateInfo> templateList = await generator.GetTemplatesFromMountPointAsync(source.MountPoint, cancellationToken).ConfigureAwait(false); 247IEnumerable<IScanTemplateInfo> validTemplates = templateList.Where(t => t.IsValid || returnInvalidTemplates);
Settings\ScanResult.cs (2)
16IReadOnlyList<IScanTemplateInfo> templates, 50public IReadOnlyList<IScanTemplateInfo> Templates { get; }
Settings\TemplateCache.cs (8)
28var templateDeduplicationDictionary = new Dictionary<string, IList<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint)>>(); 36foreach (IScanTemplateInfo template in scanResult.Templates) 46templateDeduplicationDictionary[template.Identity] = new List<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)> 58(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint) chosenTemplate = duplicatedIdentities.Value.Last(); 136private ILocalizationLocator? GetBestLocalizationLocatorMatch(IScanTemplateInfo template) 173private void PrintOverlappingIdentityWarning(ILogger logger, IDictionary<string, IList<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)>> templateDeduplicationDictionary) 201private (string, JsonObject?)? GetBestHostConfigMatch(IScanTemplateInfo newTemplate, IEngineEnvironmentSettings settings, IMountPoint mountPoint) 218private JsonObject? ReadHostFile(IScanTemplateInfo template, string path, IEngineEnvironmentSettings settings, IMountPoint mountPoint)
Settings\TemplateInfo.cs (2)
70internal TemplateInfo(IScanTemplateInfo template, ILocalizationLocator? localizationInfo, (string Path, JsonObject? Content)? hostConfig) 247private static IParameterDefinitionSet LocalizeParameters(IScanTemplateInfo template, ILocalizationLocator? localizationInfo)
ValidationUtils.cs (2)
12internal static void LogValidationResults(ILogger logger, IReadOnlyList<IScanTemplateInfo> templates) 14foreach (IScanTemplateInfo template in templates)
Microsoft.TemplateEngine.Utils (5)
IScanTemplateInfoExtensions.cs (5)
13/// Converts <see cref="IScanTemplateInfo"/> to <see cref="ITemplateInfo"/>. 15/// <param name="templateInfo"><see cref="IScanTemplateInfo"/> to convert.</param> 18public static ITemplateInfo ToITemplateInfo(this IScanTemplateInfo templateInfo, string? locFilePath = null, string? hostFilePath = null) => new LegacyTemplateInfo(templateInfo, locFilePath, hostFilePath); 22private readonly IScanTemplateInfo _templateInfo; 24internal LegacyTemplateInfo(IScanTemplateInfo templateInfo, string? locFilePath = null, string? hostFilePath = null)