Browse Source
Merge pull request #2466 from abpframework/maliming/remove-sync-method
Remove the sync method for background job module.
pull/2470/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
0 additions and
21 deletions
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/BackgroundJobStore.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain/Volo/Abp/BackgroundJobs/IBackgroundJobRepository.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/EfCoreBackgroundJobRepository.cs
-
modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB/Volo/Abp/BackgroundJobs/MongoDB/MongoBackgroundJobRepository.cs
|
|
|
@ -34,13 +34,6 @@ namespace Volo.Abp.BackgroundJobs |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public List<BackgroundJobInfo> GetWaitingJobs(int maxResultCount) |
|
|
|
{ |
|
|
|
return ObjectMapper.Map<List<BackgroundJobRecord>, List<BackgroundJobInfo>>( |
|
|
|
BackgroundJobRepository.GetWaitingList(maxResultCount) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<List<BackgroundJobInfo>> GetWaitingJobsAsync(int maxResultCount) |
|
|
|
{ |
|
|
|
return ObjectMapper.Map<List<BackgroundJobRecord>, List<BackgroundJobInfo>>( |
|
|
|
|
|
|
|
@ -7,8 +7,6 @@ namespace Volo.Abp.BackgroundJobs |
|
|
|
{ |
|
|
|
public interface IBackgroundJobRepository : IBasicRepository<BackgroundJobRecord, Guid> |
|
|
|
{ |
|
|
|
List<BackgroundJobRecord> GetWaitingList(int maxResultCount); |
|
|
|
|
|
|
|
Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -21,12 +21,6 @@ namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore |
|
|
|
Clock = clock; |
|
|
|
} |
|
|
|
|
|
|
|
public List<BackgroundJobRecord> GetWaitingList(int maxResultCount) |
|
|
|
{ |
|
|
|
return GetWaitingListQuery(maxResultCount) |
|
|
|
.ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount) |
|
|
|
{ |
|
|
|
return await GetWaitingListQuery(maxResultCount) |
|
|
|
|
|
|
|
@ -21,12 +21,6 @@ namespace Volo.Abp.BackgroundJobs.MongoDB |
|
|
|
Clock = clock; |
|
|
|
} |
|
|
|
|
|
|
|
public List<BackgroundJobRecord> GetWaitingList(int maxResultCount) |
|
|
|
{ |
|
|
|
return GetWaitingListQuery(maxResultCount) |
|
|
|
.ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount) |
|
|
|
{ |
|
|
|
return await GetWaitingListQuery(maxResultCount) |
|
|
|
|