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); }
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); }