public override async Task Execute()
        {
            var allApplications = _applicationService.GetApplications();

            foreach (var application in allApplications)
            {
                foreach (var applicationImage in application.Images)
                {
                    var repositoryAlreadyTracked = await _registryWatcher.IsWatched(applicationImage.Repository);

                    if (!repositoryAlreadyTracked)
                    {
                        await _registryWatcher.StartWatchingImageRepository(applicationImage.Repository);
                    }
                }
            }
        }
Example #2
0
        public async Task StartTrackingApplication(Application application)
        {
            await _applicationSourceService.AddApplicationSource(application);

            await _registryWatcher.StartWatchingImageRepository(application);
        }