Ejemplo n.º 1
0
        public Task <IRegHive> Open(string file)
        {
            if (!File.Exists(file))
            {
                throw new FileNotFoundException("Registry file does not exist.", nameof(file));
            }

            IRegHive hive = new OffregRegistryHive(OffregLib.OffregHive.Open(file));

            return(Task.FromResult(hive));
        }
Ejemplo n.º 2
0
        public Task <IRegHive> Create()
        {
            IRegHive hive = new OffregRegistryHive(OffregLib.OffregHive.Create());

            return(Task.FromResult(hive));
        }