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