From c426441454a7174de0bbd0cdc881e0225ea46bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87otur?= Date: Wed, 18 Mar 2020 11:22:59 +0300 Subject: [PATCH] virtualized --- .../Volo/Abp/BackgroundJobs/BackgroundJobRecord.cs | 2 +- .../EntityFrameworkCore/EfCoreBackgroundJobRepository.cs | 4 ++-- .../BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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()