2023-08-31 12:20:06 +02:00
|
|
|
using System.Threading.Tasks;
|
2022-08-30 15:42:25 +02:00
|
|
|
using TINK.Settings;
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
|
|
namespace TINK.ViewModel
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
public interface IPollingUpdateTaskManager
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Invoked when page is shown.
|
2023-08-31 12:20:06 +02:00
|
|
|
/// Actuates and awaits the first update process and starts a task which actuate the subsequent update tasks.
|
2022-09-06 16:08:19 +02:00
|
|
|
/// </summary>
|
2023-08-31 12:20:06 +02:00
|
|
|
Task StartAsync(PollingParameters p_oPolling = null);
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Invoked when pages is closed/ hidden.
|
|
|
|
/// Stops update process.
|
|
|
|
/// </summary>
|
2023-08-31 12:20:06 +02:00
|
|
|
Task StopAsync();
|
2022-09-06 16:08:19 +02:00
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
}
|