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