private static void ConfigureServices(IServiceCollection serviceCollection) { serviceCollection.AddTransient <ICsprojFileServices, CsprojFileServices>(); serviceCollection.AddTransient <IPullRequestInfoServices, PullRequestInfoServices>(); serviceCollection.AddTransient <IGithubConnection, GithubConnection>(); serviceCollection.AddTransient <IGitHubClient, GitHubClient>(x => new GitHubClient(new ProductHeaderValue(EnvironmentVariables.GetGithubUser()), new GithubCredentialStore())); }