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 Instruction
Declaration
public InstructionProcessJob(IServerMessenger messenger, ILogger<InstructionProcessJob> logger, IOptions<GlobalSettings> globalSettings)
Parameters
Type | Name | Description |
---|---|---|
IServer |
messenger | Service broadcasting cache notifications to registered servers. |
ILogger<Instruction |
logger | The typed logger. |
IOptions<Global |
globalSettings | The configuration for global settings. |
Properties
View SourceDelay
Declaration
public TimeSpan Delay { get; }
Property Value
Type | Description |
---|---|
Time |
Period
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
Time |
ServerRoles
Declaration
public ServerRole[] ServerRoles { get; }
Property Value
Type | Description |
---|---|
Server |
Methods
View SourceRunJobAsync()
Declaration
public Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
Event |