コード例 #1
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);
        }
コード例 #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);
        }