Beispiel #1
0
 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;
 }
Beispiel #2
0
 /// <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();
 }