ITokenManager.cs 550 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Wex.Sdk
  7. {
  8. public interface ITokenManager
  9. {
  10. Task<string> GetTokenAsync(CancellationToken cancellationToken);
  11. Task RefreshTokenAsync(CancellationToken cancellationToken);
  12. }
  13. public class WexToken
  14. {
  15. public string Token { get; set; }
  16. public string RefreshToken { get; set; }
  17. public string ExpireTime { get; set; }
  18. public string WsUrl { get; set; }
  19. }
  20. }