23 lines
667 B
C#
23 lines
667 B
C#
using System.Net.Http;
|
|
using CursorLang.Models;
|
|
|
|
namespace CursorLang.Services;
|
|
|
|
/// <summary>
|
|
/// The release list of the repository.
|
|
/// </summary>
|
|
public interface IReleaseFeed
|
|
{
|
|
/// <summary>
|
|
/// Returns the newest release carrying an MSIX package, or <c>null</c>
|
|
/// when there is no suitable release.
|
|
/// </summary>
|
|
Task<ReleaseInfo?> GetLatestAsync(CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Adds to the request whatever a private repository needs. The package is
|
|
/// downloaded not by the list itself, but access to it is closed just the same.
|
|
/// </summary>
|
|
void Authorize(HttpRequestMessage request);
|
|
}
|