Exemplo n.º 1
0
 /// <summary>
 /// Disposes the underlying HTTP response message when disposing is set to true
 /// </summary>
 /// <param name="disposing">true, when called from <see cref="Dispose()"/>.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (!disposing)
     {
         return;
     }
     ResponseMessage?.Dispose();
     _requestMessage.Dispose();
 }
        /// <summary>
        /// Disposes the underlying HTTP response message when disposing is set to true
        /// </summary>
        /// <param name="disposing">true, when called from <see cref="Dispose()"/>.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

#if !NET40
            ResponseMessage?.Dispose();
#endif
            _requestMessage.Dispose();
        }