2024-08-23 01:07:00 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Interfaces
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
|
|
|
|
|
public interface IBackgroundTaskService
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2024-08-23 01:07:00 +02:00
|
|
|
|
/// Unregisters all background tasks once.
|
|
|
|
|
|
/// This is used to clean up the background tasks when the app is updated.
|
2024-04-18 01:44:37 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
void UnregisterAllBackgroundTask();
|
2024-08-23 01:07:00 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers required background tasks.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task RegisterBackgroundTasksAsync();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|