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