Exemple #1
0
 internal MeeseeksTaskStatus(IMeeseeksTask taskInfo)
 {
     MeeseeksId   = taskInfo.AssignedMeeseeks;
     TaskCategory = taskInfo.TaskCategory;
     TaskName     = taskInfo.Name;
     HasStarted   = true;
 }
Exemple #2
0
        public async Task <MrMeeseeks> SpawnMeeseeksForTaskAsync(IMeeseeksTask task)
        {
            var m = new MrMeeseeks(0);

            _log.LogInformation($"Spawning MrMeeseeks {m.Id} for a {task.TaskCategory} task");

            _allMeeseeks.Add(m);
            _allTasks.Add(task);

            _log.LogInformation($"Starting executing of a {task.TaskCategory} task");
            await task.ExecuteAsync(m);

            _log.LogDebug($"Task ExecuteAsync returned for Meeseeks {m.Id}");

            return(m);
        }
 internal MeeseeksTaskStatusDetailed(IMeeseeksTask taskInfo, MrMeeseeks mrMeeseeks) : base(taskInfo)
 {
     MrMeeseeks = mrMeeseeks;
 }