public ConstitutionTaskForm(IStorageService <SedeAppDto> storageService)
        {
            InitializeComponent();

            _ss = storageService;

            _tds = new ConstitutionTaskDataService(_ss);
        }
Exemple #2
0
        public void LaunchConstitutionTasksProccesing(object obj)
        {
            var t = new ConstitutionTaskDataService(_storage);

            var data = t.GetInProgressTasks();

            _logger.Info($"Initialize tasks processing -> available {data.Length} task(s)...");

            foreach (var u in data)
            {
                var a = _ps.GetAvailibleAdress();
                if (a != null)
                {
                    _cController = new ConstitutionController(u, a, _logger, _recaptcha, this._settings, this._settings.SedeScripts);
                    _cController.SolveStepsAsync();
                }
            }
        }