123456789101112131415161718192021222324252627282930313233 |
- /* ==============================================================================
- * 功能描述:StreamProgressArgs
- * 创 建 者:Garrett
- * 创建日期:2019/9/16 19:25:42
- * ==============================================================================*/
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PackageUploader.Http
- {
- /// <summary>
- /// StreamProgressArgs
- /// </summary>
- class StreamProgressArgs : EventArgs
- {
- public StreamProgressArgs(long incrementTransferred, long transferred, long total)
- {
- IncrementTransferred = incrementTransferred;
- TransferredBytes = transferred;
- TotalBytes = total;
- }
- public long IncrementTransferred { get; private set; }
- public long TransferredBytes { get; private set; }
- public long TotalBytes { get; private set; }
- /// <summary>
- /// 传输是否完成
- /// </summary>
- public bool TransCompleted { get; internal set; }
- }
- }
|