Exemplo n.º 1
0
 /// <summary>
 /// Executes the process when the task is completed.
 /// </summary>
 /// <param name="taskId"></param>
 private void OnCompleted(TaskID taskId)
 {
     Debug.WriteLine($"The task is complete. ID:{taskId}");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Executes the process when the task is failed.
 /// </summary>
 /// <param name="taskId"></param>
 /// <param name="exception"></param>
 private void OnFailed(TaskID taskId, Exception?exception)
 {
     Debug.WriteLine($"The task is failed. {exception?.Message} ID:{taskId}");
 }
Exemplo n.º 3
0
 /// <summary>
 /// Executes the process at the start of the task.
 /// </summary>
 /// <param name="taskId"></param>
 private void OnStart(TaskID taskId)
 {
     Debug.WriteLine($"Start the task. ID:{taskId}");
 }