-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIReadOnlyProject.cs
More file actions
43 lines (36 loc) · 1.4 KB
/
IReadOnlyProject.cs
File metadata and controls
43 lines (36 loc) · 1.4 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using OwlCore.ComponentModel;
namespace WindowsAppCommunity.Sdk;
/// <summary>
/// Represents a project.
/// </summary>
public interface IReadOnlyProject : IReadOnlyProject<IReadOnlyProjectCollection>
{
}
/// <summary>
/// Represents a project.
/// </summary>
public interface IReadOnlyProject<out TDependencyCollection> : IReadOnlyEntity, IReadOnlyImagesCollection, IReadOnlyUserRoleCollection, IReadOnlyAccentColor, IReadOnlyFeaturesCollection, IHasId
where TDependencyCollection : IReadOnlyProjectCollection<IReadOnlyProject>
{
/// <summary>
/// The projects that this project depends on.
/// </summary>
public TDependencyCollection Dependencies { get; }
/// <summary>
/// The category defining this project, as found in an app store.
/// </summary>
public string Category { get; }
/// <summary>
/// Raised when <see cref="Category"/> is updated.
/// </summary>
public event EventHandler<string>? CategoryUpdated;
/// <summary>
/// Raised when <see cref="Dependencies"/> are updated.
/// </summary>
public event EventHandler<IReadOnlyPublisher>? PublisherUpdated;
/// <summary>
/// Gets the publisher for this project.
/// </summary>
/// <param name="cancellationToken">A token that can be used to cancel the ongoing operation.</param>
public Task<IReadOnlyPublisher?> GetPublisherAsync(CancellationToken cancellationToken);
}