private void DoDispose() { if (_evHttp != null && !_evHttp.IsInvalid) { _evHttp.Dispose(); } if (_eventBase != null && !_eventBase.IsInvalid) { _eventBase.Dispose(); } _pendingRequests = 0; }