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
sourceStreamThe source Stream to copy from.
destinationStreamThe destination Stream to copy to.
percentProgressIProgress<ProgressInfo>The progress reporter that reports the progress of the copy operation.
sourceStreamLengthlong?The length of the source stream, if known.
bufferSizeintThe size of the buffer used for copying.