Class HangfireJobExecutionAdapter<TArgs>
Inheritance
object
HangfireJobExecutionAdapter<TArgs>
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.Hangfire
Assembly: Volo.Abp.BackgroundJobs.HangFire.dll
Syntax
public class HangfireJobExecutionAdapter<TArgs>
Type Parameters
| Name | Description |
|---|---|
| TArgs |
Constructors
HangfireJobExecutionAdapter(IOptions<AbpBackgroundJobOptions>, IBackgroundJobExecuter, IServiceScopeFactory)
Declaration
public HangfireJobExecutionAdapter(IOptions<AbpBackgroundJobOptions> options, IBackgroundJobExecuter jobExecuter, IServiceScopeFactory serviceScopeFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpBackgroundJobOptions> | options | |
| IBackgroundJobExecuter | jobExecuter | |
| Microsoft.Extensions.DependencyInjection.IServiceScopeFactory | serviceScopeFactory |
Properties
JobExecuter
Declaration
protected IBackgroundJobExecuter JobExecuter { get; }
Property Value
| Type | Description |
|---|---|
| IBackgroundJobExecuter |
Options
Declaration
protected AbpBackgroundJobOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpBackgroundJobOptions |
ServiceScopeFactory
Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceScopeFactory |
Methods
ExecuteAsync(string, TArgs)
Declaration
public Task ExecuteAsync(string queue, TArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| string | queue | |
| TArgs | args |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |