public Task <VirtualStorage.VirtualVolume> Restore() { // todo: load last connected session from settings var @virtual = new Settings.VirtualVolume() { MountOptions = DokanOptions.DebugMode | DokanOptions.AltStream | DokanOptions.CurrentSession, Drive = 'Z', DriveMustBeReused = false, Format = "NTFS", Label = "CoreData", MaxPathLength = 256, Features = FileSystemFeatures.CaseSensitiveSearch | FileSystemFeatures.CasePreservedNames | FileSystemFeatures.UnicodeOnDisk | FileSystemFeatures.PersistentAcls }; var local = new Settings.LocalStorage { Home = Environment.CurrentDirectory }; var coreData = new Server.Settings.BasicConnection( new Uri("https://test01-dev.coredata.is"), "autoit", "test123!"); // todo: ^^^ var lastSession = new CoreDataStorage(@virtual, local, coreData); return(Connect(lastSession)); }
public PhysicalStorage(Settings.LocalStorage settings, IAccessControl accessControl) //, bool securitySupported)//, IClient coreData) { Home = settings.Home.ThrowIf(settings.Home.IsNullOrEmpty()); //if (!Directory.Exists(Home)) //{ // Directory.CreateDirectory(Home); //} _spaceInfo = new StorageSpace(Home); SecurityService = accessControl; // AccessControl.WithConfig(securitySupported); }