Esempio n. 1
0
 public void DisposeDirectory()
 {
     Directory.Delete(DirectoryPath, true);
     PhysicalMutableFileProvider.Dispose();
     PhysicalMutableFileProvider = null;
     DirectoryPath = null;
 }
Esempio n. 2
0
        public void InitializeDirectory()
        {
            do
            {
                DirectoryPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
            }while (Directory.Exists(DirectoryPath));

            Directory.CreateDirectory(DirectoryPath);
            PhysicalMutableFileProvider = new PhysicalMutableFileProvider(DirectoryPath);
        }