示例#1
0
        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;
        }
示例#2
0
        public object Clone()
        {
            var cloneObj = new ExportDataOperation
            {
                Error       = Error,
                Id          = Id,
                IsCompleted = IsCompleted,
                Percentage  = Percentage,
                Status      = Status
            };

            return(cloneObj);
        }
示例#3
0
        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;
            }
        }
示例#4
0
        public object Clone()
        {
            var cloneObj = new ExportDataOperation();

            cloneObj.Error = Error;
            cloneObj.Id = Id;
            cloneObj.IsCompleted = IsCompleted;
            cloneObj.Percentage = Percentage;
            cloneObj.Status = Status;

            return cloneObj;
        }
示例#5
0
        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;

        }
示例#6
0
        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;

            }
        }
示例#7
0
        public object Clone()
        {
            var cloneObj = new ExportDataOperation
                {
                    Error = Error,
                    Id = Id,
                    IsCompleted = IsCompleted,
                    Percentage = Percentage,
                    Status = Status
                };

            return cloneObj;
        }