Files
SteamTools/System.Application.SteamTools.Services.CloudService/Services/ICloudServiceClient.cs
T
2021-02-27 20:01:38 +08:00

22 lines
786 B
C#

using System.Application.Models;
using System.Application.Services.CloudService;
using System.Application.Services.CloudService.Clients.Abstractions;
using System.Threading;
using System.Threading.Tasks;
namespace System.Application.Services
{
public interface ICloudServiceClient
{
IAccountClient Account { get; }
IAuthMessageClient AuthMessage { get; }
IVersionClient Version { get; }
/// <inheritdoc cref="IApiConnection.DownloadAsync(CancellationToken, string, string, IProgress{float})"/>
Task<IApiResponse> Download(string requestUri, string cacheFilePath, IProgress<float> progress, CancellationToken cancellationToken = default);
public static ICloudServiceClient Instance => DI.Get<ICloudServiceClient>();
}
}