Process.GetProcessVersion
Description
The API gets the latest version details of the specified process name from the connected Control Room.
Signature [C#]
Task<string> GetProcessVersion(string processName)
Properties
Input
| Property | Description | 
|---|---|
| processName | Specify the process Name for which the version has to be retrieved. | 
Output
| Property | Description | 
|---|---|
| Task< string> | Returns the value that indicates the latest version of a Process. | 
Remarks
Use GetProcessVersion API to get the latest version details of the specified process name from the connected Control Room.
Example
C#
public void GetProcessVersion()
{
	IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
    string processName = "Create_And_Delete_File";
    var processVersion = Task.Run(() => context.Processes.GetProcessVersion(processName)).Result;
	Console.WriteLine("Process version: " + processVersion); 
}
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;
}