Skip to main content

Process.UploadAsync

Description

The API uploads the process into the connected Control Room from the specified path.

Signature [C#]

Task UploadAsync(string packagePath)

Properties

Input

PropertyDescription
packagePathSpecify the process package path.

Remarks

Use UploadAsync API to upload Processes from a specified path into the connected Control Room.

Example

public void UploadProcess()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

private string uploadProcessLocation = "C:\\Users\\Public\\Documents\\";
string processPkgName = "File Operations.1.0.0.0.nupkg";

string processPath = Path.Combine(uploadProcessLocation, processPkgName);

Task.Run(() => context.Processes.UploadAsync(processPath)).Wait();
Console.WriteLine("Process uploaded to Control Room from the path: " + processPath);
}
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;
}