Method CopyToWithProgress
CopyToWithProgress(Stream, Stream, IProgress<ProgressInfo>, long?, int)
public static void CopyToWithProgress(this Stream source, Stream destination, IProgress<ProgressInfo> percentProgress, long? sourceStreamLength = null, int bufferSize = 32768)
Parameters
source
StreamThe source Stream to copy from.
destination
StreamThe destination Stream to copy to.
percentProgress
IProgress<ProgressInfo>The progress reporter that reports the progress of the copy operation.
sourceStreamLength
long?The length of the source stream, if known.
bufferSize
intThe size of the buffer used for copying.