Example #1
0
        /// <nodoc />
        public MachineList(MachineIdSet locations, Func <MachineId, MachineLocation> resolvePath, MachineReputationTracker reputationTracker, bool randomize)
        {
            _locations         = locations;
            _resolvePath       = resolvePath;
            _reputationTracker = reputationTracker;
            _randomize         = randomize;

            // Capture the count rather than recomputing every time
            Count = locations.Count;
        }
Example #2
0
 /// <inheritdoc />
 public void ReportReputation(MachineLocation location, MachineReputation reputation) =>
 MachineReputationTracker.ReportReputation(location, reputation);