Beispiel #1
0
        public static FileContainer GetFileContainerBySourceHash(string sourceHash)
        {
            FileContainer fileContainer = progresses.Values
                                          .Where(s => s.SourceFileItem.IpfsHash == sourceHash)
                                          .OrderByDescending(s => s.NumInstance)
                                          .FirstOrDefault();

            if (fileContainer != null)
            {
                fileContainer.UpdateLastTimeProgressRequest();
            }

            return(fileContainer);
        }