public TaskManagerMessageProcessor(List <string> problems, TaskManagerStorage _storage)
     : base(problems)
 {
     storage = _storage;
     //enough for this stage:
     threads.Add(new StatusThread()
     {
         HowLongSpecified           = false,
         ProblemInstanceIdSpecified = false,
         State           = StatusThreadState.Idle,
         ProblemType     = "",
         TaskIdSpecified = true,
         TaskId          = ++threadCount
     });
 }
예제 #2
0
        public TaskManagerMessageProcessor Create(List <string> problems)
        {
            var storage = new TaskManagerStorage();

            return(new TaskManagerMessageProcessor(problems, storage));
        }