public ReassignProgressItem(
            IServiceProvider serviceProvider,
            HttpContext context,
            QueueWorkerReassign queueWorkerReassign,
            QueueWorkerRemove queueWorkerRemove,
            int tenantId, Guid fromUserId, Guid toUserId, Guid currentUserId, bool deleteProfile)
        {
            ServiceProvider   = serviceProvider;
            QueueWorkerRemove = queueWorkerRemove;
            _httpHeaders      = QueueWorker.GetHttpHeaders(context.Request);

            _tenantId      = tenantId;
            FromUser       = fromUserId;
            ToUser         = toUserId;
            _currentUserId = currentUserId;
            _deleteProfile = deleteProfile;

            //_docService = Web.Files.Classes.Global.FileStorageService;
            //_projectsReassign = new ProjectsReassign();

            Id          = queueWorkerReassign.GetProgressItemId(tenantId, fromUserId);
            Status      = ProgressStatus.Queued;
            Error       = null;
            Percentage  = 0;
            IsCompleted = false;
        }
        public void Init(int tenantId, Guid fromUserId, Guid toUserId, Guid currentUserId, bool deleteProfile)
        {
            _tenantId      = tenantId;
            FromUser       = fromUserId;
            ToUser         = toUserId;
            _currentUserId = currentUserId;
            _deleteProfile = deleteProfile;

            //_docService = Web.Files.Classes.Global.FileStorageService;
            //_projectsReassign = new ProjectsReassign();

            Id          = QueueWorkerReassign.GetProgressItemId(tenantId, fromUserId);
            Status      = DistributedTaskStatus.Created;
            Exception   = null;
            Percentage  = 0;
            IsCompleted = false;
        }