1
0
mirror of https://e.coding.net/circlecloud/CTZLauncher.git synced 2024-11-17 01:18:49 +00:00
CTZLauncher/KMCCC.Shared/Authentication/IAuthenticator.cs

32 lines
593 B
C#
Raw Normal View History

namespace KMCCC.Authentication
{
#region
using System.Threading;
using System.Threading.Tasks;
#endregion
/// <summary>
/// 验证器接口
/// </summary>
public interface IAuthenticator
{
/// <summary>
/// 获取验证器的类型
/// </summary>
string Type { get; }
/// <summary>
/// 同步方式调用
/// </summary>
/// <returns>验证信息</returns>
AuthenticationInfo Do();
/// <summary>
/// 异步方式调用
/// </summary>
/// <returns>验证信息</returns>
Task<AuthenticationInfo> DoAsync(CancellationToken token);
}
}