diff --git a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobRecord.cs b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobRecord.cs index 76106ea468..c539ea8d89 100644 --- a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobRecord.cs +++ b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobRecord.cs @@ -48,7 +48,7 @@ namespace Volo.Abp.BackgroundJobs /// public virtual BackgroundJobPriority Priority { get; set; } - private BackgroundJobRecord() + protected BackgroundJobRecord() { } diff --git a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/EfCoreBackgroundJobRepository.cs b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/EfCoreBackgroundJobRepository.cs index 8c786c9f37..29d2bb0170 100644 --- a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/EfCoreBackgroundJobRepository.cs +++ b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/EfCoreBackgroundJobRepository.cs @@ -21,13 +21,13 @@ namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore Clock = clock; } - public async Task> GetWaitingListAsync(int maxResultCount) + public virtual async Task> GetWaitingListAsync(int maxResultCount) { return await GetWaitingListQuery(maxResultCount) .ToListAsync(); } - private IQueryable GetWaitingListQuery(int maxResultCount) + protected virtual IQueryable GetWaitingListQuery(int maxResultCount) { var now = Clock.Now; return DbSet diff --git a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs index 33903c1e9f..4399e15a98 100644 --- a/modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs +++ b/modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs @@ -21,13 +21,13 @@ namespace Volo.Abp.BackgroundJobs.MongoDB Clock = clock; } - public async Task> GetWaitingListAsync(int maxResultCount) + public virtual async Task> GetWaitingListAsync(int maxResultCount) { return await GetWaitingListQuery(maxResultCount) .ToListAsync(); } - private IMongoQueryable GetWaitingListQuery(int maxResultCount) + protected virtual IMongoQueryable GetWaitingListQuery(int maxResultCount) { var now = Clock.Now; return GetMongoQueryable()