The class Aia.ITP.Server.Job represents a job submission to ITP/Server. It contains all functionality required;
Here is an example of the usage:
Aia.ITP.Server.Job job;
job = new Aia.ITP.Server.Job("localhost",
"3001",
"MyJob_" + Guid.NewGuid().ToString(),
"MyService",
"FirstParameter",
"SecondParameter");
try
{
job.Submit();
}
catch (Exception e)
{
MessageBox.Show ("Error", "An error occurred in an ITP/Server job: " + e.Message);
}
This example creates an Aia.ITP.Server.Job object in order to call the ITP/Server service "MyService" with the parameters FirstParameter and SecondParameter. The job submission is destined for the ITP/Server running on computer "localhost" (the local computer) on port 3001, with a randomly generated unique job ID based on a GUID (Globally Unique ID).