You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
528 B
C#
29 lines
528 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
namespace JumpKick.HttpLib.Streams
|
|
{
|
|
|
|
|
|
public static class ProgressMonitorStream
|
|
{
|
|
|
|
public static ProgressCallbackHelper CopyToProgress(this Stream from, Stream to, long? totalBytes)
|
|
{
|
|
|
|
ProgressCallbackHelper callback = new ProgressCallbackHelper(from,to,totalBytes);
|
|
|
|
|
|
|
|
|
|
|
|
return callback;
|
|
|
|
|
|
}
|
|
}
|
|
}
|