View Source
Class WebhookLoggingCleanup
Daily background job that removes all webhook log data older than x days as defined by KeepLogsForDays
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class WebhookLoggingCleanup : IRecurringBackgroundJob
Constructors
View Source
WebhookLoggingCleanup(ILogger<WebhookLoggingCleanup>, IOptionsMonitor<WebhookSettings>, IWebhookLogRepository, ICoreScopeProvider)
Declaration
public WebhookLoggingCleanup(ILogger<WebhookLoggingCleanup> logger, IOptionsMonitor<WebhookSettings> webhookSettings, IWebhookLogRepository webhookLogRepository, ICoreScopeProvider coreScopeProvider)
Parameters
Properties
View Source
Delay
Declaration
public TimeSpan Delay { get; }
Property Value
Type |
Description |
TimeSpan |
|
View Source
Period
Declaration
public TimeSpan Period { get; }
Property Value
Type |
Description |
TimeSpan |
|
Methods
View Source
RunJobAsync()
Declaration
public async Task RunJobAsync()
Returns
Events
View Source
PeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type |
Description |
EventHandler |
|