public void DeleteExportJobAsync(Proxy.IExportJob exportJob) { if (ServiceProxy != null) { Service.ExportJob convertedExportJob = ClientObjectConverter.ConvertClientExportJob(exportJob); ServiceProxy.DeleteExportJobAsync(convertedExportJob, exportJob.Id); } }
internal static IDictionary <Guid, IExportJob> ConvertExportJobsCollection(IDictionary <Guid, Service.ExportJob> exportJobs) { Dictionary <Guid, Proxy.IExportJob> result = new Dictionary <Guid, Proxy.IExportJob>(); foreach (Service.ExportJob exportJob in exportJobs.Values) { Proxy.IExportJob convertedExportJob = ConvertServerExportJob(exportJob); result.Add(convertedExportJob.Id, convertedExportJob); } return(result); }
internal static Service.ExportJob ConvertClientExportJob(Proxy.IExportJob exportJob) { Service.ExportJob result = new Service.ExportJob(); result.Id = exportJob.Id; result.IsCurrent = exportJob.IsCurrent; result.Link = exportJob.Link; result.Status = ConvertClientExportStatus(exportJob.Status); result.Created = exportJob.Created; result.CreatedBy = new Service.GlymaUser(); result.CreatedBy.Name = exportJob.CreatedBy.Name; result.CreatedBy.DisplayName = exportJob.CreatedBy.DisplayName; result.Type = ConvertClientExportType(exportJob.Type); result.MapType = ConvertClientMapType(exportJob.MapType); result.ExportProperties = exportJob.ExportProperties; result.PercentageComplete = exportJob.PercentageComplete; return(result); }