Show / Hide Table of Contents

Class DefaultBackgroundJobManager

Inheritance
object
DefaultBackgroundJobManager
Implements
IBackgroundJobManager
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.BackgroundJobs
Assembly: Volo.Abp.BackgroundJobs.dll
Syntax
[Dependency(ReplaceServices = true)]
public class DefaultBackgroundJobManager : IBackgroundJobManager, ITransientDependency

Constructors

DefaultBackgroundJobManager(IClock, IBackgroundJobSerializer, IBackgroundJobStore, IGuidGenerator)

Declaration
public DefaultBackgroundJobManager(IClock clock, IBackgroundJobSerializer serializer, IBackgroundJobStore store, IGuidGenerator guidGenerator)
Parameters
Type Name Description
IClock clock
IBackgroundJobSerializer serializer
IBackgroundJobStore store
IGuidGenerator guidGenerator

Properties

Clock

Declaration
protected IClock Clock { get; }
Property Value
Type Description
IClock

GuidGenerator

Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Type Description
IGuidGenerator

Serializer

Declaration
protected IBackgroundJobSerializer Serializer { get; }
Property Value
Type Description
IBackgroundJobSerializer

Store

Declaration
protected IBackgroundJobStore Store { get; }
Property Value
Type Description
IBackgroundJobStore

Methods

EnqueueAsync(string, object, BackgroundJobPriority, TimeSpan?)

Declaration
protected virtual Task<Guid> EnqueueAsync(string jobName, object args, BackgroundJobPriority priority = BackgroundJobPriority.Normal, TimeSpan? delay = null)
Parameters
Type Name Description
string jobName
object args
BackgroundJobPriority priority
TimeSpan? delay
Returns
Type Description
Task<Guid>

EnqueueAsync<TArgs>(TArgs, BackgroundJobPriority, TimeSpan?)

Declaration
public virtual Task<string> EnqueueAsync<TArgs>(TArgs args, BackgroundJobPriority priority = BackgroundJobPriority.Normal, TimeSpan? delay = null)
Parameters
Type Name Description
TArgs args
BackgroundJobPriority priority
TimeSpan? delay
Returns
Type Description
Task<string>
Type Parameters
Name Description
TArgs

Implements

IBackgroundJobManager
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform