private void Handler(SimpleResponse obj) { Interlocked.Increment(ref _responseCounter); if (_responseCounter == _repeatCount) _responseEvent.Set(); }