using System.Threading.Tasks; namespace Wino.Core.Domain.Interfaces { public interface IBackgroundTaskService { /// /// Manages background task registrations, requests access if needed, checks the statusses of them etc. /// /// If the access request is denied for some reason. /// If one of the requires background tasks are failed during registration. Task HandleBackgroundTaskRegistrations(); /// /// Unregisters all existing background tasks. Useful for migrations. /// void UnregisterAllBackgroundTask(); } }