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