Class InstructionProcessJob
Implements periodic database instruction processing as a hosted service.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs.ServerRegistration
Assembly: Umbraco.Infrastructure.dll
Syntax
public class InstructionProcessJob : IRecurringBackgroundJob
Constructors
View SourceInstructionProcessJob(IServerMessenger, ILogger<InstructionProcessJob>, IOptions<GlobalSettings>)
Initializes a new instance of the InstructionProcessJob class.
Declaration
public InstructionProcessJob(IServerMessenger messenger, ILogger<InstructionProcessJob> logger, IOptions<GlobalSettings> globalSettings)
Parameters
Type | Name | Description |
---|---|---|
IServerMessenger | messenger | Service broadcasting cache notifications to registered servers. |
ILogger<InstructionProcessJob> | logger | The typed logger. |
IOptions<GlobalSettings> | globalSettings | The configuration for global settings. |
Properties
View SourceDelay
Declaration
public TimeSpan Delay { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Period
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
ServerRoles
Declaration
public ServerRole[] ServerRoles { get; }
Property Value
Type | Description |
---|---|
ServerRole[] |
Methods
View SourceRunJobAsync()
Declaration
public Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
EventHandler |