Пример #1
0
        public void Start()
        {
            var jsonProjects = Phase1();

            foreach (var projItem in jsonProjects)
            {
                WorkerPayload wp = (WorkerPayload)projItem;
                //SmallProject sp = new SmallProject() { Key = wp["key"], ProjectID = wp["id"] };
                SmallProject sp = new SmallProject(wp.ProjectData.ToString());
                //SmallProject sp = (SmallProject)projItem;
                Phase2(sp);
            }
        }
Пример #2
0
        public void DoWorkProject()
        {
            var jiraService    = new JiraService();
            var projectService = new ProjectService();
            var jsonProject    = JsonConvert.DeserializeObject(jiraService.GetProjectDetails(ObjectId));

            Payload = new WorkerPayload()
            {
                ProjectData = jsonProject
            };
            projectService.Save(jsonProject);
            ev.Set();
        }
Пример #3
0
        public void DoWorkItemUser()
        {
            var jiraService = new JiraService();
            var itemService = new ItemService();
            var jsonProject = JsonConvert.DeserializeObject(jiraService.GetSelfResults(Self));

            Payload = new WorkerPayload()
            {
                ProjectData = jsonProject
            };
            itemService.Save(jsonProject, int.Parse(ForignKeyId));
            ev.Set();
        }