public BlobTransferProgressChangedEventArgs(long bytesTransferred, long lastBlockBytesTransferred, long totalBytesToTransfer, int progressPercentage, double speed, Uri uri, string sourceName, object userState)
: base(progressPercentage, userState)
{
if (uri == null)
{
throw new ArgumentNullException("uri");
}
if (string.IsNullOrWhiteSpace(sourceName))
{
throw new ArgumentException(CommonStringTable.ErrorLocalFilenameIsNullOrEmpty);
}
this.BytesTransferred = bytesTransferred;
this.LastBlockBytesTransferred = lastBlockBytesTransferred;
this.TotalBytesToTransfer = totalBytesToTransfer;
this.TransferRateBytesPerSecond = speed;
this.Uri = uri;
this.SourceName = sourceName;
}