public RemoveProgressItem(int tenantId, Guid userId, Guid currentUserId) { _tenantId = tenantId; _userId = userId; _currentUserId = currentUserId; _crmDaoFactory = Web.CRM.Classes.Global.DaoFactory; _docService = Web.Files.Classes.Global.FileStorageService; _mailEraser = new MailGarbageEraser(); Id = QueueWorker.GetProgressItemId(tenantId, userId, typeof(RemoveProgressItem)); Status = ProgressStatus.Queued; Error = null; Percentage = 0; IsCompleted = false; }
public ReassignProgressItem(HttpContext context, int tenantId, Guid fromUserId, Guid toUserId, Guid currentUserId) { _context = context; _httpHeaders = GetHttpHeaders(context.Request); _tenantId = tenantId; _fromUserId = fromUserId; _toUserId = toUserId; _currentUserId = currentUserId; _crmDaoFactory = Web.CRM.Classes.Global.DaoFactory; _docService = Web.Files.Classes.Global.FileStorageService; _projectsReassign = new ProjectsReassign(); Id = QueueWorker.GetProgressItemId(tenantId, fromUserId, typeof(ReassignProgressItem)); Status = ProgressStatus.Queued; Error = null; Percentage = 0; IsCompleted = false; }