Table of Contents

Method CopyToWithProgress

Namespace
Innova.Data
Assembly
Innova.Data.dll

CopyToWithProgress(Stream, Stream, IProgress<ProgressInfo>, long?, int)

Copies the contents of a Stream to another Stream with progress reporting.

public static void CopyToWithProgress(this Stream source, Stream destination, IProgress<ProgressInfo> percentProgress, long? sourceStreamLength = null, int bufferSize = 32768)

Parameters

source Stream

The source Stream to copy from.

destination Stream

The 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 int

The size of the buffer used for copying.