Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         if (_requestFactory != null)
         {
             _requestFactory.Dispose();
         }
         _disposed = true;
     }
 }
Exemple #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                if (_requestFactory != null)
                {
                    _requestFactory.Dispose();
                }

                _disposed = true;
            }
        }