using Umbraco.Cms.Infrastructure.Models; namespace Umbraco.Cms.Infrastructure.Persistence.Repositories; /// /// Defines a repository for managing distributed jobs. /// public interface IDistributedJobRepository { /// /// Gets a job by name. /// /// DistributedBackgroundJobModel? GetByName(string jobName); /// /// Gets all jobs. /// /// IEnumerable GetAll(); /// /// Updates a job. /// void Update(DistributedBackgroundJobModel distributedBackgroundJob); /// /// Adds a job. /// void Add(DistributedBackgroundJobModel distributedBackgroundJob); /// /// Deletes a job. /// void Delete(DistributedBackgroundJobModel distributedBackgroundJob); }