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