internal override DownloadStatus GetDownloadStatus(HashSet <object> visited) { return(m_dependency.IsValid() ? m_dependency.InternalGetDownloadStatus(visited) : new DownloadStatus() { IsDone = IsDone }); }
internal override DownloadStatus GetDownloadStatus(HashSet <object> visited) { var depStatus = m_DepOp.IsValid() ? m_DepOp.InternalGetDownloadStatus(visited) : default; var wrapStatus = m_WrappedOp.IsValid() ? m_WrappedOp.InternalGetDownloadStatus(visited) : default; return(new DownloadStatus() { DownloadedBytes = depStatus.DownloadedBytes + wrapStatus.DownloadedBytes, TotalBytes = depStatus.TotalBytes + wrapStatus.TotalBytes, IsDone = IsDone }); }
void RefreshDownloadStatus(HashSet <object> visited = default) { m_depStatus = m_DepOp.IsValid() ? m_DepOp.InternalGetDownloadStatus(visited) : m_depStatus; m_wrapStatus = m_WrappedOp.IsValid() ? m_WrappedOp.InternalGetDownloadStatus(visited) : m_wrapStatus; }