Esempio n. 1
0
 public TemporaryFile(string group, string extension)
 {
     Group = group;
     Path  = Storage.DataPath + Platform.Instance.DirSep + RandomGenerator.GetHash() + ".tmp." + extension;
     TemporaryFiles.Add(this);
 }
Esempio n. 2
0
 public void Close()
 {
     TemporaryFiles.Remove(this);
 }
Esempio n. 3
0
 public TemporaryFile(string group, string extension)
 {
     Group = group;
     Path  = Engine.Instance.Storage.GetPathInData(RandomGenerator.GetHash() + ".tmp." + extension);
     TemporaryFiles.Add(this);
 }