public override async Task ImportData(SmugglerImportOptions<FilesConnectionStringOptions> importOptions) { if (importOptions.To == null) throw new ArgumentNullException("importOptions"); using (primaryStore = await CreateStore(importOptions.To)) using (documentStore = CreateDocumentStore(importOptions.To)) { Operations = new SmugglerRemoteFilesOperations(() => primaryStore, () => documentStore); await base.ImportData(importOptions); } }
public override async Task<ExportFilesResult> ExportData(SmugglerExportOptions<FilesConnectionStringOptions> exportOptions) { if (exportOptions.From == null) throw new ArgumentNullException("exportOptions"); using (primaryStore = await CreateStore(exportOptions.From)) using (documentStore = CreateDocumentStore(exportOptions.From)) { Operations = new SmugglerRemoteFilesOperations(() => primaryStore, () => documentStore); return await base.ExportData(exportOptions); } }
public override async Task ImportData(SmugglerImportOptions <FilesConnectionStringOptions> importOptions) { if (importOptions.To == null) { throw new ArgumentNullException("importOptions"); } using (primaryStore = await CreateStore(importOptions.To)) using (documentStore = CreateDocumentStore(importOptions.To)) { Operations = new SmugglerRemoteFilesOperations(() => primaryStore, () => documentStore); await base.ImportData(importOptions); } }
public override async Task <ExportFilesResult> ExportData(SmugglerExportOptions <FilesConnectionStringOptions> exportOptions) { if (exportOptions.From == null) { throw new ArgumentNullException("exportOptions"); } using (primaryStore = await CreateStore(exportOptions.From)) using (documentStore = CreateDocumentStore(exportOptions.From)) { Operations = new SmugglerRemoteFilesOperations(() => primaryStore, () => documentStore); return(await base.ExportData(exportOptions)); } }