internal TaskSlotCounts(Models.TaskSlotCounts protocolObject) { this.Active = protocolObject.Active; this.Completed = protocolObject.Completed; this.Failed = protocolObject.Failed; this.Running = protocolObject.Running; this.Succeeded = protocolObject.Succeeded; }
/// <summary> /// Initializes a new instance of the TaskCountsResult class. /// </summary> /// <param name="taskCounts">The number of Tasks per state.</param> /// <param name="taskSlotCounts">The number of TaskSlots required by /// Tasks per state.</param> public TaskCountsResult(TaskCounts taskCounts, TaskSlotCounts taskSlotCounts) { TaskCounts = taskCounts; TaskSlotCounts = taskSlotCounts; CustomInit(); }