/// <summary> /// Adds the tasks. /// </summary> /// <param name="tasks">The tasks.</param> public void AddTasks(IEnumerable <IScheduledTask> tasks) { var list = tasks.Select(t => new ScheduledTaskWorker(t, ApplicationPaths, this, JsonSerializer, Logger, _fileSystem)); ScheduledTasks = ScheduledTasks.Concat(list).ToArray(); }