예제 #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();
     }
 }
예제 #2
0
 public void SaveProgress(BlockLocator locator)
 {
     _BlockLocator = locator;
     File.WriteAllBytes(_FileName, _BlockLocator.ToBytes());
 }