Class EfCoreBackgroundJobRepository
Inheritance
EfCoreBackgroundJobRepository
Implements
Inherited Members
Namespace: Volo.Abp.BackgroundJobs.EntityFrameworkCore
Assembly: Volo.Abp.BackgroundJobs.EntityFrameworkCore.dll
Syntax
public class EfCoreBackgroundJobRepository : EfCoreRepository<IBackgroundJobsDbContext, BackgroundJobRecord, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<BackgroundJobRecord, Guid>, IEfCoreRepository<BackgroundJobRecord>, IRepository<BackgroundJobRecord, Guid>, IRepository<BackgroundJobRecord>, IReadOnlyRepository<BackgroundJobRecord, Guid>, IReadOnlyRepository<BackgroundJobRecord>, IBasicRepository<BackgroundJobRecord, Guid>, ISupportsExplicitLoading<BackgroundJobRecord>, IBackgroundJobRepository, IBasicRepository<BackgroundJobRecord, Guid>, IBasicRepository<BackgroundJobRecord>, IReadOnlyBasicRepository<BackgroundJobRecord, Guid>, IReadOnlyBasicRepository<BackgroundJobRecord>, IRepository
Constructors
EfCoreBackgroundJobRepository(IDbContextProvider<IBackgroundJobsDbContext>, IClock)
Declaration
public EfCoreBackgroundJobRepository(IDbContextProvider<IBackgroundJobsDbContext> dbContextProvider, IClock clock)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IBackgroundJobsDbContext> | dbContextProvider | |
IClock | clock |
Properties
Clock
Declaration
protected IClock Clock { get; }
Property Value
Type | Description |
---|---|
IClock |
Methods
GetWaitingListAsync(int, CancellationToken)
Declaration
public virtual Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | maxResultCount | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<BackgroundJobRecord>> |
GetWaitingListQueryAsync(int)
Declaration
protected virtual Task<IQueryable<BackgroundJobRecord>> GetWaitingListQueryAsync(int maxResultCount)
Parameters
Type | Name | Description |
---|---|---|
int | maxResultCount |
Returns
Type | Description |
---|---|
Task<IQueryable<BackgroundJobRecord>> |