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.
78
Task<IReadOnlyList<
IScanTemplateInfo
>> GetTemplatesFromMountPointAsync(IMountPoint source, CancellationToken cancellationToken);
Microsoft.TemplateEngine.Edge (17)
Settings\Scanner.cs (3)
236
var templates = new List<
IScanTemplateInfo
>();
239
IReadOnlyList<
IScanTemplateInfo
> templateList = await generator.GetTemplatesFromMountPointAsync(source.MountPoint, cancellationToken).ConfigureAwait(false);
247
IEnumerable<
IScanTemplateInfo
> validTemplates = templateList.Where(t => t.IsValid || returnInvalidTemplates);
Settings\ScanResult.cs (2)
16
IReadOnlyList<
IScanTemplateInfo
> templates,
50
public IReadOnlyList<
IScanTemplateInfo
> Templates { get; }
Settings\TemplateCache.cs (8)
28
var templateDeduplicationDictionary = new Dictionary<string, IList<(
IScanTemplateInfo
Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint)>>();
36
foreach (
IScanTemplateInfo
template in scanResult.Templates)
46
templateDeduplicationDictionary[template.Identity] = new List<(
IScanTemplateInfo
Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)>
58
(
IScanTemplateInfo
Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint) chosenTemplate = duplicatedIdentities.Value.Last();
136
private ILocalizationLocator? GetBestLocalizationLocatorMatch(
IScanTemplateInfo
template)
173
private void PrintOverlappingIdentityWarning(ILogger logger, IDictionary<string, IList<(
IScanTemplateInfo
Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)>> templateDeduplicationDictionary)
201
private (string, JsonObject?)? GetBestHostConfigMatch(
IScanTemplateInfo
newTemplate, IEngineEnvironmentSettings settings, IMountPoint mountPoint)
218
private JsonObject? ReadHostFile(
IScanTemplateInfo
template, string path, IEngineEnvironmentSettings settings, IMountPoint mountPoint)
Settings\TemplateInfo.cs (2)
70
internal TemplateInfo(
IScanTemplateInfo
template, ILocalizationLocator? localizationInfo, (string Path, JsonObject? Content)? hostConfig)
247
private static IParameterDefinitionSet LocalizeParameters(
IScanTemplateInfo
template, ILocalizationLocator? localizationInfo)
ValidationUtils.cs (2)
12
internal static void LogValidationResults(ILogger logger, IReadOnlyList<
IScanTemplateInfo
> templates)
14
foreach (
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>
18
public static ITemplateInfo ToITemplateInfo(this
IScanTemplateInfo
templateInfo, string? locFilePath = null, string? hostFilePath = null) => new LegacyTemplateInfo(templateInfo, locFilePath, hostFilePath);
22
private readonly
IScanTemplateInfo
_templateInfo;
24
internal LegacyTemplateInfo(
IScanTemplateInfo
templateInfo, string? locFilePath = null, string? hostFilePath = null)