/// <summary> /// Starts an import job. /// </summary> /// <param name="storeName">The store to perform the import to</param> /// <param name="fileName">The name of the file in brighhtstar\import folder to import.</param> /// <param name="graphUri">The URI of the graph that the data will be imported into.</param> /// <returns>An IJobInfo instance</returns> public IJobInfo StartImport(string storeName, string fileName, string graphUri = Constants.DefaultGraphUri) { try { var jobId = _serverCore.Import(storeName, fileName, graphUri); return(new JobInfoWrapper(new JobInfo { JobId = jobId.ToString(), JobPending = true })); } catch (Exception ex) { Logging.LogError(BrightstarEventId.ServerCoreException, "Error queing import job {0} {1}", storeName, fileName); throw new BrightstarClientException("Error queing import job in store " + storeName + ". " + ex.Message, ex); } }