Esempio n. 1
0
 public static void MarkPostAsync(string hash, AniWrap.DataTypes.PostFile p)
 {
     (new Thread(() =>
     {
         MarkPost(hash, p);
     })).Start();
 }
Esempio n. 2
0
        public FileQueueStateInfo(string md5, AniWrap.DataTypes.PostFile pf)
        {
            this.ForceStop = false;
            this.Hash      = md5;
            this.Ext       = pf.ext;
            this.FileName  = pf.filename;
            this.PostFile  = pf;

            this.Status     = DownloadStatus.Queued;
            this.RetryCount = 0;
        }
Esempio n. 3
0
        public static void MarkPost(string hash, AniWrap.DataTypes.PostFile p)
        {
            lock (g)
            {
                FileIndexInfo w = null;
                if (file_index.ContainsKey(hash))
                {
                    w = file_index[hash];
                }
                else
                {
                    w = new FileIndexInfo(hash);
                    file_index.Add(hash, w);
                }

                w.MarkPost(p.board, p.owner.OwnerThread.ID, p.owner.ID, p.filename + "." + p.ext);
                need_save = true;
            }
        }