sharee.bike-App/TINKLib/ViewModel/IPollingUpdateTaskManager.cs
2023-08-31 12:20:06 +02:00

20 lines
494 B
C#

using System.Threading.Tasks;
using TINK.Settings;
namespace TINK.ViewModel
{
public interface IPollingUpdateTaskManager
{
/// <summary>
/// Invoked when page is shown.
/// Actuates and awaits the first update process and starts a task which actuate the subsequent update tasks.
/// </summary>
Task StartAsync(PollingParameters p_oPolling = null);
/// <summary>
/// Invoked when pages is closed/ hidden.
/// Stops update process.
/// </summary>
Task StopAsync();
}
}