-
Notifications
You must be signed in to change notification settings - Fork 375
/
ITemplatePackageProvider.cs
28 lines (25 loc) · 1.14 KB
/
ITemplatePackageProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.TemplateEngine.Abstractions.TemplatePackage
{
/// <summary>
/// Provides set of <see cref="ITemplatePackage"/>s available to the host.
/// </summary>
public interface ITemplatePackageProvider
{
/// <summary>
/// Raised when template packages have been changed. Indicates that caller should refresh the list of template packages in use.
/// </summary>
event Action? TemplatePackagesChanged;
/// <summary>
/// Gets <see cref="ITemplatePackageProviderFactory"/> that created the provider.
/// </summary>
ITemplatePackageProviderFactory Factory { get; }
/// <summary>
/// Gets the list of template packages available for the provider.
/// </summary>
/// <param name="cancellationToken"></param>
/// <returns>The list of <see cref="ITemplatePackage"/>s.</returns>
Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken);
}
}