Example #1
0
 /// <summary>
 /// Connects to an existing restore index database
 /// </summary>
 /// <param name="path">
 /// The path to the restore index to open
 /// </param>
 /// <returns>
 /// A new restore index implementation
 /// </returns>
 public static IRestoreIndex Open(IO.Path path)
 {
     var index = new RestoreIndex(path);
      if (index.FetchHeader().Version != CurrentVersion)
     throw new InvalidOperationException("Invalid database version");
      return index;
 }