Skip to main content

Tasks.GetOverdueTasksAsync

Description

The API gets the list of all overdue tasks from the connected Control Room.

Signature [C#]

Task<CRTasks> GetOverdueTasksAsync()

Properties

Output

PropertyDescription
Task<CRTasks>Returns all overdue tasks information from the Control Room.

Remarks

Use GetOverdueTasksAsync API to get the list of all overdue tasks information from the Control Room.

Example

C#
public void GetOverdueTasks()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

CRTasks cRTasks = Task.Run(() => context.Tasks.GetOverdueTasksAsync()).Result;
foreach (CRTaskInfo taskData in cRTasks.Data)
System.Console.WriteLine("Task Name: " + taskData.Name);
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}