private static String ExportEntityData(ICollection externalData, bool recieveURL, String fileName) { var operation = new ExportDataOperation(externalData); operation.RunJob(); var data = (String) operation.Status; if (recieveURL) return SaveCSVFileInMyDocument(fileName, data); return data; }
public object Clone() { var cloneObj = new ExportDataOperation { Error = Error, Id = Id, IsCompleted = IsCompleted, Percentage = Percentage, Status = Status }; return(cloneObj); }
public static IProgressItem Start() { lock (_syncObj) { var operation = _exportQueue.GetStatus(TenantProvider.CurrentTenantID); if (operation == null) { operation = new ExportDataOperation(); _exportQueue.Add(operation); } if (!_exportQueue.IsStarted) _exportQueue.Start(x => x.RunJob()); return operation; } }
public object Clone() { var cloneObj = new ExportDataOperation(); cloneObj.Error = Error; cloneObj.Id = Id; cloneObj.IsCompleted = IsCompleted; cloneObj.Percentage = Percentage; cloneObj.Status = Status; return cloneObj; }
private static String ExportEntityData(ICollection externalData, bool recieveURL, String fileName) { var operation = new ExportDataOperation(externalData); operation.RunJob(); var data = (String)operation.Status; if (recieveURL) return SaveCSVFileInMyDocument(fileName, data); return data; }
public object Clone() { var cloneObj = new ExportDataOperation { Error = Error, Id = Id, IsCompleted = IsCompleted, Percentage = Percentage, Status = Status }; return cloneObj; }