using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Amazon.Runtime.Internal.Util
{
///
/// A wrapper stream which supresses disposal of the underlying stream.
///
public class NonDisposingWrapperStream : WrapperStream
{
///
/// Constructor for NonDisposingWrapperStream.
///
/// The base stream to wrap.
public NonDisposingWrapperStream(Stream baseStream) : base (baseStream)
{
}
#if !NETSTANDARD
///
/// The Close implementation for this wrapper stream
/// does not close the underlying stream.
///
public override void Close()
{
// Suppress disposing the stream by not calling Close() on the base stream.
}
#endif
///
/// The Dispose implementation for this wrapper stream
/// does not close the underlying stream.
///
protected override void Dispose(bool disposing)
{
// Suppress disposing the stream by not calling Dispose() on the base stream.
}
}
}