Job.GetAllSmartBuddyJobsAsync
Description
Gets the list of all Smart Buddy JobsList information from the connected Control Room.
Signature [C#]
Task<JobsList> GetAllSmartBuddyJobsAsync()
Properties
Output
Property | Description |
---|---|
Task<JobsList> | Returns all available Smart Buddy jobs information from the Control Room. |
Remarks
Use GetAllSmartBuddyJobsAsync API to return information about the list of all SmartBuddy jobs from the connected Control Room.
Example
C#
public void GetAllSmartBuddyJobs()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
JobsList jobs = Task.Run(() => context.Jobs.GetAllSmartBuddyJobsAsync()).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;
}