mirror of
https://e.coding.net/circlecloud/CTZLauncher.git
synced 2024-11-15 00:58:50 +00:00
6e0fa413d2
Signed-off-by: j502647092 <jtb1@163.com>
32 lines
593 B
C#
32 lines
593 B
C#
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);
|
|
}
|
|
} |