Пример #1
0
        public void Initialize()
        {
            var packageListingPath = Options.PackageListingPath;

            var httpClient = HttpClientFactory.CreateGithub();

            MilestoneProvider = new MilestoneProvider(httpClient);
            IssueProvider     = new IssueProvider(httpClient);
            PackageProvider   = new PackageProvider(packageListingPath);

            ReleaseService = new ReleaseService(MilestoneProvider, IssueProvider, PackageProvider);
        }
Пример #2
0
        public void Initialize()
        {
            var contributorListingPath = Options.ContributorListingPath;

            var httpClient = HttpClientFactory.CreateGithub();

            CommitterProvider = new CommitterProvider(contributorListingPath);
            if (PackageSettings.Settings.UseOfflineData)
            {
                ContributorProvider = new ContributorOfflineProvider(CommitterProvider);
            }
            else
            {
                ContributorProvider = new ContributorProvider(httpClient, CommitterProvider);
            }
            PackageAuthorProvider = new PackageAuthorProvider(PackageSettings.Settings.QueryProvider);
            CommunityService      = new CommunityService(CommitterProvider, ContributorProvider, PackageAuthorProvider);
        }