Class LogScrubberJob
Log scrubbing hosted service.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class LogScrubberJob : IRecurringBackgroundJob
Remarks
Will only run on non-replica servers.
Constructors
View SourceLogScrubberJob(IAuditService, IOptionsMonitor<LoggingSettings>, ICoreScopeProvider, ILogger<LogScrubberJob>, IProfilingLogger)
Initializes a new instance of the LogScrubberJob class.
Declaration
public LogScrubberJob(IAuditService auditService, IOptionsMonitor<LoggingSettings> settings, ICoreScopeProvider scopeProvider, ILogger<LogScrubberJob> logger, IProfilingLogger profilingLogger)
Parameters
Type | Name | Description |
---|---|---|
IAuditService | auditService | Service for handling audit operations. |
IOptionsMonitor<LoggingSettings> | settings | The configuration for logging settings. |
ICoreScopeProvider | scopeProvider | Provides scopes for database operations. |
ILogger<LogScrubberJob> | logger | The typed logger. |
IProfilingLogger | profilingLogger | The profiling logger. |
Properties
View SourcePeriod
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
View SourceRunJobAsync()
Declaration
public Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
EventHandler |