Esempio n. 1
0
        public async Task <IActionResult> Get()
        {
            var feed = await _repo.GetAll();

            var returnModels = _mapper.Map <IEnumerable <NuGetFeedModel> >(feed);

            return(Ok(returnModels));
        }
Esempio n. 2
0
        public async Task Execute()
        {
            _logger.LogTrace($"Starting PrivateNuGetFeedJob.");
            var feeds = await _repo.GetAll();

            foreach (var feed in feeds)
            {
                var packages = await GetPackages(feed);

                if (packages != null)
                {
                    foreach (var package in packages)
                    {
                        SquidStore.Packages[package.id] = package;
                    }
                }
            }
        }