using Tiku.Application.Jobs;
using Tiku.Application.Security;
using Tiku.Infrastructure.Persistence;

namespace Tiku.Infrastructure.Jobs;

internal sealed partial class BackgroundJobService(
    IJobsOperationsPersistence dbContext,
    ITenantExecutionScope tenantExecutionScope,
    IFeatureAccessService featureAccessService,
    BackgroundJobLeaseManager leaseManager,
    BackgroundJobLeaseTiming leaseTiming) : IBackgroundJobService
{
    private IJobsOperationsPersistence jobsOperationsPersistence { get; } = dbContext;
    private IModulePersistence unitOfWork { get; } = dbContext;
    private TimeSpan LeaseDuration => leaseTiming.LeaseDuration;
}
