Skip to main content

Process.GetEditPermittedProcessesAsync

Description

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

Signature [C#]

Task<List<ProcessInfo>> GetEditPermittedProcessesAsync()

Properties

Output

PropertyDescription
Task<List<ProcessInfo>>Returns all edit permitted processes information.

Remarks

Use GetEditPermittedProcessesAsync API to get the list of all edit permitted processes information from the connected Control Room.

Example

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

List<ProcessInfo> processes = Task.Run(() => context.Processes.GetEditPermittedProcessesAsync()).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;
}