コード例 #1
0
 internal override DownloadStatus GetDownloadStatus(HashSet <object> visited)
 {
     return(m_dependency.IsValid() ? m_dependency.InternalGetDownloadStatus(visited) : new DownloadStatus()
     {
         IsDone = IsDone
     });
 }
コード例 #2
0
        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
            });
        }
コード例 #3
0
 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;
 }