sharee.bike-App/SharedBusinessLogic/ViewModel/IPollingUpdateTaskManager.cs

21 lines
506 B
C#
Raw Normal View History

2023-08-31 12:20:06 +02:00
using System.Threading.Tasks;
2024-04-09 12:53:23 +02:00
using ShareeBike.Settings;
2021-05-13 20:03:07 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.ViewModel
2021-05-13 20:03:07 +02:00
{
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
}