예제 #1
0
 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;			
 }
예제 #2
0
 public void Restore(FilesystemRestoreRequest restoreRequest, Action<string> output)
 {
     new RestoreOperation(restoreRequest, configuration, output).Execute();
 }
예제 #3
0
		public RestoreOperation(FilesystemRestoreRequest restoreRequest, InMemoryRavenConfiguration configuration, Action<string> operationOutputCallback)
            : base(restoreRequest, configuration, operationOutputCallback)
		{
		}