private IJobInfo StartExport(string store, BlobImportSource exportSource) { var jobUri = CreateJob(store, "Export", exportSource.ToJsonString()); var jobInfoResponse = AuthenticatedGet(jobUri); return(Deserialize <RestJobInfo>(jobInfoResponse)); }
public AzureImportJob(string jobId, Server.StoreWorker worker, BlobImportSource importSource, Action<string, string> statusCallback) { _jobId = jobId; _worker = worker; _importSource = importSource; _graphUri = Constants.DefaultGraphUri; _statusCallback = statusCallback; }
/// <summary> /// Starts an import job /// </summary> /// <param name="store">The store to import into</param> /// <param name="fileName">The URI of the data to import</param> /// <param name="graphUri">The URI identifier of the graph that the data is to be imported into. If NULL, import is into the default graph</param> /// <returns>A <see cref="IJobInfo"/> instance to use for monitoring the progress of the job</returns> public IJobInfo StartImport(string store, string fileName, string graphUri) { var importSource = new BlobImportSource { BlobUri = fileName, Graph = graphUri }; return(StartImport(store, importSource)); }
public AzureExportJob(string jobId, Server.StoreWorker worker, BlobImportSource exportSource) { _jobId = jobId; _worker = worker; _exportSource = exportSource; }