Skip to main content

Job.GetAllAssistantBuddyJobsAsync

Description

Gets the list of all Assistant Buddy JobsList information from the connected Control Room.

Signature [C#]

Task<JobsList> GetAllAssistantBuddyJobsAsync()

Properties

Output

PropertyDescription
Task<JobsList>Returns all available Assistant Buddy jobs information from the Control Room.

Remarks

Use GetAllAssistantBuddyJobsAsync API to return information about the list of all AssistantBuddy jobs from the connected Control Room.

Example

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

JobsList jobs = Task.Run(() => context.Jobs.GetAllAssistantBuddyJobsAsync()).Result;

Console.WriteLine("JobId: " + jobs.JobId + ", Job execution status: " + jobs.ExecStatus);
}
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;
}