Exemplo n.º 1
0
 public void SetIndexProgress(BlockLocator locator)
 {
     using (var tx = _Engine.GetTransaction())
     {
         if (locator == null)
         {
             tx.RemoveKey("IndexProgress", "");
         }
         else
         {
             tx.Insert("IndexProgress", "", locator.ToBytes());
         }
         tx.Commit();
     }
 }
Exemplo n.º 2
0
 public void SaveProgress(BlockLocator locator)
 {
     _BlockLocator = locator;
     File.WriteAllBytes(_FileName, _BlockLocator.ToBytes());
 }