Waits for message submission to complete.

C# |
public SubmissionState WaitForSubmissionComplete( long timeoutInSeconds, bool throwOnSubmissionFailure )

- timeoutInSeconds (Int64)
- The timeout in seconds. The valid range of the values for timeout is 0 - 31,556,926 seconds.
- throwOnSubmissionFailure (Boolean)
- When set to true the method will throw an exception if the submission ends in failure. When set to false the method will simply return the final state.

The current state of the submission.

Blocks the calling thread until the message associated with this handle has either reached a final state (i.e. SubmitCompleted/SubmitFailed) or the timeout (in seconds) has expired.