mirror of
https://github.com/bitwarden/server
synced 2025-12-30 23:23:37 +00:00
24 lines
535 B
C#
24 lines
535 B
C#
using Bit.Core.Jobs;
|
|
using Bit.Core.Services;
|
|
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();
|
|
}
|
|
}
|