The method Submit of the class Aia.ITP.Server.Job submits the job to the ITP/Server running on the host and port specified by the properties Host and Port. The method does not return until the job has been completed. If the method returns normally, this means that the job has completed successfully. If an error occurs during either the submission or the processing of the job, an exception will be thrown.
While the job is running, the invoked ITP/Server service may request to exchange a data value, and it may send files for download, request the upload of files, or send progress messages. When such requests arrive, the object Aia.ITP.Server.Job will fire the events ExchangeData, FileDownload, FileUpload and ProgressMessage, respectively. More information about these events can be found in the section on events which can be found below.
Note
If the ITP/Server service requests the download or upload of a file, and the corresponding event is not handled, then the ITP/Server job will fail immediately.