Skip to main content
Version: IB7.0

Process.GetVersions

Description​

Gets the list of all the release versions in the form of ProcessInfo of specified process ID from the connected Control Room.

Signature [C#]​

Task<List<ProcessInfo>> GetVersions(int processId)

Properties​

Input​

PropertyDescription
processIdSpecify the process ID for retrieving the versions.

Output​

PropertyDescription
Task<List<ProcessVersion>>Returns all the release versions of the Process.

Remarks​

Use GetVersions API to get the list of the release version of the process in the form of ProcessVersion from the connected Control Room.

Example​

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

int processId = 1;

var actualProcesses = Task.Run(() => context.Processes.GetVersions(processId)).Result;
foreach (ProcessVersion processVersion in actualProcesses)
Console.WriteLine(processVersion.Version);
}
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;
}