18 instantiations of GitClient
aspire (1)
Git\GitClient.cs (1)
15new GitClient(commands.WithStandardErrorHandler(standardErrorHandler));
Aspire.Cli.Tests (17)
Commands\ConfigSourceCommandTests.cs (2)
56options.GitClientFactory = services => new GitClient(services.GetRequiredService<IGitCommandRunner>()); 112options.GitClientFactory = services => new GitClient(services.GetRequiredService<IGitCommandRunner>());
Configuration\ConfigSourceServiceGitTests.cs (6)
31new GitClient(CreateRunner(hostEnvironment)); 50var client = new GitClient(commands); 93var client = new GitClient(commands); 147var client = new GitClient(commands); 573var client = new GitClient(commands); 685var client = new GitClient(commands);
Git\GitClientTests.cs (9)
29var client = new GitClient(commands); 52var client = new GitClient(commands); 67var client = new GitClient(commands); 85var client = new GitClient(commands); 100var client = new GitClient(commands); 113var client = new GitClient(commands); 152var client = new GitClient(commands); 170var client = new GitClient(new TestGitCommandRunner { Output = output }); 186var client = new GitClient(commands);
25 references to GitClient
aspire (8)
Configuration\ConfigSource.cs (1)
40return GitClient.IsCommitSha(Ref) || Ref.StartsWith("refs/heads/", StringComparison.Ordinal) ? Ref : $"refs/heads/{Ref}";
Configuration\ConfigSourceService.cs (2)
741using var deadline = new CancellationTokenSource(GitClient.OperationTimeout, timeProvider); 790using var deadline = new CancellationTokenSource(GitClient.OperationTimeout, timeProvider);
Git\GitHelpers.cs (1)
50if (reference is null || GitClient.IsCommitSha(reference))
Program.cs (1)
580builder.Services.AddSingleton<IGitClient, GitClient>();
Templating\TemplateEngineFactory.cs (3)
151var resolveRemoteRef = reference is null || !GitClient.IsCommitSha(reference); 213if (!GitClient.IsCommitSha(commitSha)) 246using var deadline = new CancellationTokenSource(GitClient.OperationTimeout, timeProvider);
Aspire.Cli.Tests (17)
Commands\NewCommandLocalTemplateTests.cs (1)
2040options.GitClientFactory = serviceProvider => ActivatorUtilities.CreateInstance<GitClient>(serviceProvider);
Configuration\ConfigSourceServiceGitTests.cs (5)
50var client = new GitClient(commands); 93var client = new GitClient(commands); 147var client = new GitClient(commands); 573var client = new GitClient(commands); 685var client = new GitClient(commands);
Git\GitClientTests.cs (9)
29var client = new GitClient(commands); 52var client = new GitClient(commands); 67var client = new GitClient(commands); 85var client = new GitClient(commands); 100var client = new GitClient(commands); 113var client = new GitClient(commands); 152var client = new GitClient(commands); 170var client = new GitClient(new TestGitCommandRunner { Output = output }); 186var client = new GitClient(commands);
Templating\TemplateEngineFactoryGitCheckoutTests.cs (1)
142services.AddSingleton<IGitClient, GitClient>();
Templating\TemplateEngineFactoryGitTests.cs (1)
252services.AddSingleton<IGitClient, GitClient>();