piwigodotnet/PiwigoDotnet/Piwigo.Client/IPiwigoContext.cs
Philipp Häfelfinger f3ff670ef0 adds DeleteRepresentativeAsync to album api
passes cancellation token to all async requests
2022-10-17 23:23:25 +02:00

13 lines
592 B
C#

using Microsoft.Extensions.Logging;
using Piwigo.Client.Contract;
namespace Piwigo.Client;
public interface IPiwigoContext
{
bool IsLoggedIn { get; }
Task LoginAsync(CancellationToken cancellationToken = default);
Task LogoutAsync(CancellationToken cancellationToken = default);
Task<T> PostAsync<T>(ILogger logger, string method, IDictionary<string, string> formParams, CancellationToken cancellationToken = default) where T : PiwigoResponse;
Task<T> PostAsync<T>(ILogger logger, string method, CancellationToken cancellationToken = default) where T : PiwigoResponse;
}