public FileService(FileServiceConfiguration configuration, params string[] computersToBeScanned) { _computersToBeScanned = computersToBeScanned; _configuration = configuration; if (_computersToBeScanned == null || !_computersToBeScanned.Any()) { _computersToBeScanned = _library.GetCurrentDomainComputers(); } }
public FileService(FileServiceConfiguration configuration, IEnumerable <string> computersToBeScanned = null) { _computersToBeScanned = computersToBeScanned; _configuration = configuration; // get all computers list if the argument is null if (_computersToBeScanned == null || !_computersToBeScanned.Any()) { _computersToBeScanned = _library.GetCurrentDomainComputers(); } }