コード例 #1
0
ファイル: FileService.cs プロジェクト: narekye/win-tools
        public FileService(FileServiceConfiguration configuration, params string[] computersToBeScanned)
        {
            _computersToBeScanned = computersToBeScanned;
            _configuration        = configuration;

            if (_computersToBeScanned == null || !_computersToBeScanned.Any())
            {
                _computersToBeScanned = _library.GetCurrentDomainComputers();
            }
        }
コード例 #2
0
ファイル: FileService.cs プロジェクト: narekye/win-tools
        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();
            }
        }