Process Class

The Process class contains Process criteria returned from a SUBMIT or SELECT PROCESS method. Processes are submitted using the Node.Submit or Node.SubmitFile method.

Method to Wait for Process Completion

The following WaitForCompletion method blocks the current thread until the Process exits all queues on the Connect:Direct® server, including error queues. It waits indefinitely.

void WaitForCompletion()

The following WaitForCompletion method blocks the current thread until the Process exits all queues on the Connect:Direct server, including error queues, or until the timeout period expires. timeout is in milliseconds.

void WaitForCompletion(long timeout)