private void waitTillAllThreadsComplete()
{
lock (this.WAIT_FOR_COMPLETION_LOCK)
{
while (this._uploadResponses.Count != this._totalNumberOfParts)
{
Monitor.Wait(this.WAIT_FOR_COMPLETION_LOCK, 100);
// Look for any exceptions from the upload threads.
foreach (UploadPartInvoker invoker in this._invokers)
{
checkForLastException(invoker);
}
}
}
}