You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
838 B

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