Example #1
0
        private void Materialize()
        {
            using (_vault.ExposeReadWrite())
            {
                var copyCat = VaultApi.OpenInMemory();
                _materializer.Visit(copyCat, this);

                _vault.Root.Delete();
                _vault.ImportFrom(copyCat);
            }
        }
Example #2
0
        public static IDisposable ExposeReadWrite(this IVault vault)
        {
            int aux1, aux2;

            return(vault.ExposeReadWrite(out aux1, out aux2));
        }