Exemple #1
0
        public FileService(FileServiceConfiguration configuration, params string[] computersToBeScanned)
        {
            _computersToBeScanned = computersToBeScanned;
            _configuration        = configuration;

            if (_computersToBeScanned == null || !_computersToBeScanned.Any())
            {
                _computersToBeScanned = _library.GetCurrentDomainComputers();
            }
        }
Exemple #2
0
        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();
            }
        }