public void WaitOnErrorFromBackgroundThreadsPending() { lock( _endOfWorkLock ) while( _waitingRaiseCount != 0 ) Monitor.Wait( _endOfWorkLock ); }