Class BackgroundJobExecuter
Inheritance
object
BackgroundJobExecuter
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.Abstractions.dll
Syntax
public class BackgroundJobExecuter : IBackgroundJobExecuter, ITransientDependency
Constructors
BackgroundJobExecuter(IOptions<AbpBackgroundJobOptions>, ICurrentTenant)
Declaration
public BackgroundJobExecuter(IOptions<AbpBackgroundJobOptions> options, ICurrentTenant currentTenant)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpBackgroundJobOptions> | options | |
| ICurrentTenant | currentTenant |
Properties
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
| Type | Description |
|---|---|
| ICurrentTenant |
Logger
Declaration
public ILogger<BackgroundJobExecuter> Logger { protected get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger<TCategoryName><BackgroundJobExecuter> |
Options
Declaration
protected AbpBackgroundJobOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpBackgroundJobOptions |
Methods
ExecuteAsync(JobExecutionContext)
Declaration
public virtual Task ExecuteAsync(JobExecutionContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| JobExecutionContext | context |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
GetJobArgsTenantId(object)
Declaration
protected virtual Guid? GetJobArgsTenantId(object jobArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| object | jobArgs |
Returns
| Type | Description |
|---|---|
| System.Guid? |