mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 16:43:14 +08:00
27 lines
663 B
C#
27 lines
663 B
C#
using System.Threading.Tasks;
|
|
using Bit.Core.Jobs;
|
|
using Bit.Core.Services;
|
|
using Microsoft.Extensions.Logging;
|
|
using Quartz;
|
|
|
|
namespace Bit.Api.Jobs
|
|
{
|
|
public class ValidateUsersJob : BaseJob
|
|
{
|
|
private readonly ILicensingService _licensingService;
|
|
|
|
public ValidateUsersJob(
|
|
ILicensingService licensingService,
|
|
ILogger<ValidateUsersJob> logger)
|
|
: base(logger)
|
|
{
|
|
_licensingService = licensingService;
|
|
}
|
|
|
|
protected async override Task ExecuteJobAsync(IJobExecutionContext context)
|
|
{
|
|
await _licensingService.ValidateUsersAsync();
|
|
}
|
|
}
|
|
}
|