Skip to main content

Process.GetProcessesAsync

Description

Gets the list of all ProcessInfo from the connected Control Room.

Signature [C#]

Task<List<ProcessInfo>> GetProcessesAsync()

Properties

Input

PropertyDescription
Task<List<ProcessInfo>>Returns all available processes information.

Remarks

Use GetProcessesAsync API to get list of all available ProcessInfo form the connected Control Room.

Example

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

List<ProcessInfo> processes = Task.Run(() => context.Processes.GetProcessesAsync()).Result;
foreach (ProcessInfo process in processes)
Console.WriteLine(process.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;
}