wabbajack/Wabbajack.Networking.Http.Interfaces/ITokenProvider.cs
2021-10-23 10:51:17 -06:00

15 lines
367 B
C#

using System.Threading.Tasks;
namespace Wabbajack.Networking.Http.Interfaces;
/// <summary>
/// Interface for services that need a auth token of some sort
/// </summary>
/// <typeparam name="T"></typeparam>
public interface ITokenProvider<T>
{
public ValueTask<T?> Get();
public ValueTask SetToken(T val);
public ValueTask<bool> TryDelete(T val);
}