using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Security.Entitys;
using Znyc.Recruitment.Admin.Security.IServices;
namespace Znyc.Recruitment.Admin.WebApi.Auth
{
///
/// 定时任务
///
public class ApiHandler : IApiHandler
{
private readonly IApiService _apiService;
///
///
///
public ApiHandler(IApiService apiService)
{
_apiService = apiService;
}
///
///
///
///
public async Task ValidateAsync(string apiUrl)
{
ApiEntity result = await _apiService.GetApiAsync(apiUrl);
return result;
}
}
}