2 implementations of ITemplate
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
RunnableProjectConfig.ITemplate.cs (1)
12
internal partial class RunnableProjectConfig :
ITemplate
RunnableProjectGenerator.cs (1)
414
private class LegacyTemplate :
ITemplate
46 references to ITemplate
Microsoft.TemplateEngine.Abstractions (15)
IGenerator.cs (14)
27
ITemplate
template,
43
ITemplate
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>
88
Task<
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.
99
IList<
ITemplate
> GetTemplatesAndLangpacksFromDir(IMountPoint source, out IList<ILocalizationLocator> localizations);
102
/// Gets an <see cref="
ITemplate
"/> from the given <see cref="IFileSystemInfo" /> configuration entry.
111
bool TryGetTemplateFromConfigInfo(IFileSystemInfo config, out
ITemplate
? template, IFileSystemInfo? localeConfig, IFile? hostTemplateConfigFile, string? baselineName = null);
125
ITemplate
template,
142
ITemplate
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.
157
IParameterSet GetParametersForTemplate(IEngineEnvironmentSettings environmentSettings,
ITemplate
template);
ISettingsLoader.cs (1)
30
ITemplate
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>
92
using
ITemplate
? template = await LoadTemplateAsync(templateInfo, baselineName, cancellationToken).ConfigureAwait(false);
242
internal Task<
ITemplate
?> LoadTemplateAsync(ITemplateInfo info, string? baselineName, CancellationToken cancellationToken)
246
return Task.FromResult((
ITemplate
?)null);
278
private IParameterSetBuilder SetupDefaultParamValuesFromTemplateAndHostInternal(
ITemplate
template, string realName, out IReadOnlyList<string> paramsWithInvalidValues)
283
private void ResolveUserParameters(
ITemplate
template, IParameterSetBuilder templateParamsBuilder, InputDataSet inputParameters, out IReadOnlyList<string> paramsWithInvalidValues)
350
ITemplate
template,
404
private bool TryCreateParameterSet(
ITemplate
template, string realName, InputDataSet inputParameters, out IParameterSetData? templateParams, out TemplateCreationResult? failureResult)
459
public
ITemplate
? LoadTemplate(ITemplateInfo info, string? baselineName)
467
public void ReleaseMountPoints(
ITemplate
template)
481
public IParameterSet SetupDefaultParamValuesFromTemplateAndHost(
ITemplate
templateInfo, string realName, out IReadOnlyList<string> paramsWithInvalidValues)
496
public void ResolveUserParameters(
ITemplate
template, IParameterSet templateParams, IReadOnlyDictionary<string, string?> inputParameters, out IReadOnlyList<string> paramsWithInvalidValues)
ValidationUtils.cs (2)
38
internal static void LogValidationResults(ILogger logger, IReadOnlyList<
ITemplate
> templates)
40
foreach (
ITemplate
template in templates)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (16)
RunnableProjectConfig.ITemplate.cs (7)
14
IGenerator
ITemplate
.Generator => Generator;
16
IFileSystemInfo
ITemplate
.Configuration => ConfigFile ?? throw new InvalidOperationException("Configuration file is not initialized, are you using test constructor?");
22
IFileSystemInfo?
ITemplate
.LocaleConfiguration => Localization?.File;
24
IFileSystemInfo?
ITemplate
.HostSpecificConfiguration => _hostConfigFile;
30
bool
ITemplate
.IsNameAgreementWithFolderPreferred => ConfigurationModel.PreferNameDirectory;
32
IDirectory
ITemplate
.TemplateSourceRoot => TemplateSourceRoot;
68
ILocalizationLocator?
ITemplate
.Localization => Localization;
RunnableProjectGenerator.cs (9)
36
async Task<
ITemplate
?> IGenerator.LoadTemplateAsync(IEngineEnvironmentSettings settings, ITemplateLocator templateLocator, string? baselineName, CancellationToken cancellationToken)
115
ITemplate
templateData,
173
ITemplate
templateData,
202
ITemplate
template,
213
ITemplate
template,
222
IParameterSet IGenerator.GetParametersForTemplate(IEngineEnvironmentSettings environmentSettings,
ITemplate
template)
234
IList<
ITemplate
> IGenerator.GetTemplatesAndLangpacksFromDir(IMountPoint source, out IList<ILocalizationLocator> localizations)
241
return foundTemplates.Select(t => (
ITemplate
)new LegacyTemplate(t, this)).ToList();
254
bool IGenerator.TryGetTemplateFromConfigInfo(IFileSystemInfo templateFileConfig, out
ITemplate
? template, IFileSystemInfo? localeFileConfig, IFile? hostTemplateConfigFile, string? baselineName)