13 references to GetTemplatesAsync
Microsoft.TemplateEngine.Cli (9)
Commands\BaseCommand.cs (2)
111
/// This method uses <see cref="TemplatePackageManager.
GetTemplatesAsync
(CancellationToken)"/>, however this should not take long as templates normally at least once
120
IReadOnlyList<ITemplateInfo> availableTemplates = await templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
Commands\create\InstantiateCommand.cs (1)
49
IReadOnlyList<ITemplateInfo> templates = await templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
Commands\create\InstantiateCommand.TabCompletion.cs (1)
116
Task.Run(async () => await templatePackageManager.
GetTemplatesAsync
(default).ConfigureAwait(false)).GetAwaiter().GetResult();
Commands\NewCommand.cs (1)
32
Task.Run(async () => await templatePackageManager.
GetTemplatesAsync
(default).ConfigureAwait(false)).GetAwaiter().GetResult();
TemplateListCoordinator.cs (1)
253
IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
TemplatePackageCoordinator.cs (2)
786
IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
808
IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
TemplateResolution\BaseTemplateResolver.cs (1)
48
templates = await _templatePackageManager.
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.TemplateEngine.Edge (2)
Settings\TemplatePackageManager.cs (2)
175
IReadOnlyList<ITemplateInfo> templates = await
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
211
var allTemplates = await
GetTemplatesAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.TemplateEngine.IDE (2)
Bootstrapper.cs (2)
104
return _templatePackagesManager.
GetTemplatesAsync
(cancellationToken);
367
return TemplateListFilter.FilterTemplates(await _templatePackagesManager.
GetTemplatesAsync
(default).ConfigureAwait(false), exactMatchesOnly, filters);