public void CreatStream(string username, UpFileInfo item) { if (listfs.ContainsKey(username)) { listfs[username].Add(item); } else { listfs.Add(username, new UpFile(item)); } }
public void Add(UpFileInfo item) { Filelist.Enqueue(item); }
public UpFile(UpFileInfo item) { NowFile = item; Stream = new FileStream(item.FileName, FileMode.Create); Filelist = new Queue <UpFileInfo>(); }