namespace Umbraco.Cms.Infrastructure.BackgroundJobs; /// /// A background job that will be executed by an available server. With a single server setup this will always be the same. /// With a load balanced setup, the executing server might change every time this needs to be executed. /// public interface IDistributedBackgroundJob { /// /// Name of the job. /// string Name { get; } /// /// Timespan representing how often the task should recur. /// TimeSpan Period { get; } /// /// Run the job. /// Task ExecuteAsync(); }