Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the PoolNodeCounts class.
 /// </summary>
 /// <param name="poolId">The ID of the pool.</param>
 /// <param name="dedicated">The number of dedicated nodes in each
 /// state.</param>
 /// <param name="lowPriority">The number of low priority nodes in each
 /// state.</param>
 public PoolNodeCounts(string poolId, NodeCounts dedicated = default(NodeCounts), NodeCounts lowPriority = default(NodeCounts))
 {
     PoolId      = poolId;
     Dedicated   = dedicated;
     LowPriority = lowPriority;
     CustomInit();
 }
 internal NodeCounts(Models.NodeCounts protocolObject)
 {
     this.Creating            = protocolObject.Creating;
     this.Idle                = protocolObject.Idle;
     this.LeavingPool         = protocolObject.LeavingPool;
     this.Offline             = protocolObject.Offline;
     this.Preempted           = protocolObject.Preempted;
     this.Rebooting           = protocolObject.Rebooting;
     this.Reimaging           = protocolObject.Reimaging;
     this.Running             = protocolObject.Running;
     this.Starting            = protocolObject.Starting;
     this.StartTaskFailed     = protocolObject.StartTaskFailed;
     this.Total               = protocolObject.Total;
     this.Unknown             = protocolObject.Unknown;
     this.Unusable            = protocolObject.Unusable;
     this.WaitingForStartTask = protocolObject.WaitingForStartTask;
 }