1
0
mirror of https://e.coding.net/circlecloud/CTZLauncher.git synced 2024-11-15 00:58:50 +00:00
CTZLauncher/KMCCC.Shared/Authentication/IAuthenticator.cs
j502647092 6e0fa413d2 首次提交项目文件...
Signed-off-by: j502647092 <jtb1@163.com>
2015-07-29 19:56:27 +08:00

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);
}
}