2 implementations of ITemplate
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
RunnableProjectConfig.ITemplate.cs (1)
12internal partial class RunnableProjectConfig : ITemplate
RunnableProjectGenerator.cs (1)
414private class LegacyTemplate : ITemplate
46 references to ITemplate
Microsoft.TemplateEngine.Abstractions (15)
IGenerator.cs (14)
27ITemplate template, 43ITemplate template, 81/// Attempts to load <see cref="ITemplate"/> from the given location <see cref="ITemplateLocator" />. 87/// <returns><see cref="ITemplate"/>, if the template can be loaded from <paramref name="config"/>, <see langword="null"/> otherwise.</returns> 88Task<ITemplate?> LoadTemplateAsync(IEngineEnvironmentSettings settings, ITemplateLocator config, string? baselineName = null, CancellationToken cancellationToken = default); 93/// Scans the given mount point <paramref name="source"/> for templates and returns the list of <see cref="ITemplate"/>s that are found. 99IList<ITemplate> GetTemplatesAndLangpacksFromDir(IMountPoint source, out IList<ILocalizationLocator> localizations); 102/// Gets an <see cref="ITemplate"/> from the given <see cref="IFileSystemInfo" /> configuration entry. 111bool TryGetTemplateFromConfigInfo(IFileSystemInfo config, out ITemplate? template, IFileSystemInfo? localeConfig, IFile? hostTemplateConfigFile, string? baselineName = null); 125ITemplate template, 142ITemplate template, 150/// After setting the values the host should pass <see cref="IParameterSet"/> to <see cref="GetCreationEffectsAsync(IEngineEnvironmentSettings, ITemplate, IParameterSet, string, CancellationToken)"/> or <see cref="CreateAsync(IEngineEnvironmentSettings, ITemplate, IParameterSet, string, CancellationToken)"/> methods. 157IParameterSet GetParametersForTemplate(IEngineEnvironmentSettings environmentSettings, ITemplate template);
ISettingsLoader.cs (1)
30ITemplate LoadTemplate(ITemplateInfo info, string baselineName);
Microsoft.TemplateEngine.Edge (15)
Template\TemplateCreator.cs (13)
29/// <param name="name">The name to use. Will be also used as <paramref name="outputPath"/> in case it is empty and <see cref="ITemplate.IsNameAgreementWithFolderPreferred"/> for <paramref name="templateInfo"/> is set to true.</param> 67/// <param name="name">The name to use. Will be also used as <paramref name="outputPath"/> in case it is empty and <see cref="ITemplate.IsNameAgreementWithFolderPreferred"/> for <paramref name="templateInfo"/> is set to true.</param> 92using ITemplate? template = await LoadTemplateAsync(templateInfo, baselineName, cancellationToken).ConfigureAwait(false); 242internal Task<ITemplate?> LoadTemplateAsync(ITemplateInfo info, string? baselineName, CancellationToken cancellationToken) 246return Task.FromResult((ITemplate?)null); 278private IParameterSetBuilder SetupDefaultParamValuesFromTemplateAndHostInternal(ITemplate template, string realName, out IReadOnlyList<string> paramsWithInvalidValues) 283private void ResolveUserParameters(ITemplate template, IParameterSetBuilder templateParamsBuilder, InputDataSet inputParameters, out IReadOnlyList<string> paramsWithInvalidValues) 350ITemplate template, 404private bool TryCreateParameterSet(ITemplate template, string realName, InputDataSet inputParameters, out IParameterSetData? templateParams, out TemplateCreationResult? failureResult) 459public ITemplate? LoadTemplate(ITemplateInfo info, string? baselineName) 467public void ReleaseMountPoints(ITemplate template) 481public IParameterSet SetupDefaultParamValuesFromTemplateAndHost(ITemplate templateInfo, string realName, out IReadOnlyList<string> paramsWithInvalidValues) 496public void ResolveUserParameters(ITemplate template, IParameterSet templateParams, IReadOnlyDictionary<string, string?> inputParameters, out IReadOnlyList<string> paramsWithInvalidValues)
ValidationUtils.cs (2)
38internal static void LogValidationResults(ILogger logger, IReadOnlyList<ITemplate> templates) 40foreach (ITemplate template in templates)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (16)
RunnableProjectConfig.ITemplate.cs (7)
14IGenerator ITemplate.Generator => Generator; 16IFileSystemInfo ITemplate.Configuration => ConfigFile ?? throw new InvalidOperationException("Configuration file is not initialized, are you using test constructor?"); 22IFileSystemInfo? ITemplate.LocaleConfiguration => Localization?.File; 24IFileSystemInfo? ITemplate.HostSpecificConfiguration => _hostConfigFile; 30bool ITemplate.IsNameAgreementWithFolderPreferred => ConfigurationModel.PreferNameDirectory; 32IDirectory ITemplate.TemplateSourceRoot => TemplateSourceRoot; 68ILocalizationLocator? ITemplate.Localization => Localization;
RunnableProjectGenerator.cs (9)
36async Task<ITemplate?> IGenerator.LoadTemplateAsync(IEngineEnvironmentSettings settings, ITemplateLocator templateLocator, string? baselineName, CancellationToken cancellationToken) 115ITemplate templateData, 173ITemplate templateData, 202ITemplate template, 213ITemplate template, 222IParameterSet IGenerator.GetParametersForTemplate(IEngineEnvironmentSettings environmentSettings, ITemplate template) 234IList<ITemplate> IGenerator.GetTemplatesAndLangpacksFromDir(IMountPoint source, out IList<ILocalizationLocator> localizations) 241return foundTemplates.Select(t => (ITemplate)new LegacyTemplate(t, this)).ToList(); 254bool IGenerator.TryGetTemplateFromConfigInfo(IFileSystemInfo templateFileConfig, out ITemplate? template, IFileSystemInfo? localeFileConfig, IFile? hostTemplateConfigFile, string? baselineName)