Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookLoggingCleanup

    Daily background job that removes all webhook log data older than x days as defined by KeepLogsForDays

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
    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
    Type Name Description
    ILogger<WebhookLoggingCleanup> logger
    IOptionsMonitor<WebhookSettings> webhookSettings
    IWebhookLogRepository webhookLogRepository
    ICoreScopeProvider coreScopeProvider

    Properties

    View Source

    Delay

    Timespan representing the initial delay after application start-up before the first run of the task occurs.

    Declaration
    public TimeSpan Delay { get; }
    Property Value
    Type Description
    TimeSpan
    View Source

    Period

    Timespan representing how often the task should recur.

    Declaration
    public TimeSpan Period { get; }
    Property Value
    Type Description
    TimeSpan

    Methods

    View Source

    RunJobAsync()

    Declaration
    public async Task RunJobAsync()
    Returns
    Type Description
    Task

    Events

    View Source

    PeriodChanged

    Declaration
    public event EventHandler PeriodChanged
    Event Type
    Type Description
    EventHandler
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • WebhookLoggingCleanup(ILogger<WebhookLoggingCleanup>, IOptionsMonitor<WebhookSettings>, IWebhookLogRepository, ICoreScopeProvider)
    • Properties
      • Delay
      • Period
    • Methods
      • RunJobAsync()
    • Events
      • PeriodChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX