FastGithub/FastGithub.Scanner/IDomainAddressProvider.cs
2021-06-18 22:37:53 +08:00

24 lines
566 B
C#

using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace FastGithub.Scanner
{
/// <summary>
/// 定义域名的ip提值者
/// </summary>
interface IDomainAddressProvider
{
/// <summary>
/// 获取排序
/// </summary>
int Order { get; }
/// <summary>
/// 创建域名与ip的关系
/// </summary>
/// <returns></returns>
Task<IEnumerable<DomainAddress>> CreateDomainAddressesAsync(CancellationToken cancellationToken);
}
}