wabbajack/Wabbajack.Networking.Http.Interfaces/ITokenProvider.cs

16 lines
405 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
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);
}
}