using Dlhis.Basic.Api;
using Dlhis.ScheduledTask.Attributes;
namespace Dlhis.ScheduledTask.Jobs;
///
/// 自动处理访客离场
///
[RecurringJob(nameof(ExternalAutoResignJob), "0 0 1 1/1 * ? ", Name = "自动处理访客离场")]
public class ExternalAutoResignJob : BaseJob
{
private readonly ISyncApi _syncApi;
///
public ExternalAutoResignJob(IServiceProvider serviceProvider, ISyncApi syncApi) : base(serviceProvider)
{
_syncApi = syncApi;
}
///
protected override async Task RunAsync(IServiceProvider serviceProvider)
{
await _syncApi.ExternalAutoResignAsync();
}
}