protected BaseRestoreOperation(FilesystemRestoreRequest restoreRequest, InMemoryRavenConfiguration configuration, Action<string> output) { _restoreRequest = restoreRequest; backupLocation = restoreRequest.BackupLocation; databaseLocation = _restoreRequest.FilesystemLocation.ToFullPath(); indexLocation = (_restoreRequest.IndexesLocation ?? Path.Combine(_restoreRequest.FilesystemLocation, "Indexes")).ToFullPath(); journalLocation = (_restoreRequest.JournalsLocation ?? _restoreRequest.FilesystemLocation).ToFullPath(); Configuration = configuration; this.output = output; }
public void Restore(FilesystemRestoreRequest restoreRequest, Action<string> output) { new RestoreOperation(restoreRequest, configuration, output).Execute(); }
public RestoreOperation(FilesystemRestoreRequest restoreRequest, InMemoryRavenConfiguration configuration, Action<string> operationOutputCallback) : base(restoreRequest, configuration, operationOutputCallback) { }