24 instantiations of AgentConfiguration
aspire (4)
Agents\AgentConfiguration.cs (1)
31
var edit = new
AgentConfiguration
();
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (1)
101
var edit = new
AgentConfiguration
();
Agents\Copilot\CopilotAgentClient.cs (1)
143
var edit = new
AgentConfiguration
();
Commands\AgentInitCommand.cs (1)
651
var edit = new
AgentConfiguration
();
Aspire.Cli.Tests (20)
Agents\AgentConfigurationTestContext.cs (1)
79
var edit = new
AgentConfiguration
();
Agents\AgentConfigurationTests.cs (19)
37
var edit = new
AgentConfiguration
();
59
var edit = new
AgentConfiguration
();
86
var edit = new
AgentConfiguration
();
119
var edit = new
AgentConfiguration
();
135
var edit = new
AgentConfiguration
();
156
var otherEdit = new
AgentConfiguration
();
158
var edit = new
AgentConfiguration
();
175
var edit = new
AgentConfiguration
();
202
var edit = new
AgentConfiguration
();
223
var edit = new
AgentConfiguration
();
253
var edit = new
AgentConfiguration
();
281
var edit = new
AgentConfiguration
();
297
var remoteEdit = new
AgentConfiguration
();
301
var mcpEdit = new
AgentConfiguration
();
331
var edit = new
AgentConfiguration
();
369
var edit = new
AgentConfiguration
();
411
var edit = new
AgentConfiguration
();
440
var edit = new
AgentConfiguration
();
500
var edit = new
AgentConfiguration
();
55 references to AgentConfiguration
aspire (23)
Agents\AgentConfiguration.cs (1)
31
var
edit = new AgentConfiguration();
Agents\AspireSkills\AspireSkillsRemoteConfiguration.cs (3)
28
if (
AgentConfiguration
.ReadObject(path, cancellationToken) is { } config &&
104
AgentConfiguration
edit, CancellationToken cancellationToken)
172
IEnumerable<string> paths, string targetPath,
AgentConfiguration
edit, CancellationToken cancellationToken)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (4)
39
AgentConfiguration
.EnumerateJsonFiles(Path.Combine(ManagedSettingsDirectory, "managed-settings.d"))), cancellationToken);
52
AgentConfiguration
edit, CancellationToken cancellationToken)
68
AgentConfiguration
edit, CancellationToken cancellationToken)
101
var
edit = new AgentConfiguration();
Agents\Copilot\CopilotAgentClient.cs (3)
66
AgentConfiguration
edit, CancellationToken cancellationToken)
90
AgentConfiguration
edit, CancellationToken cancellationToken)
143
var
edit = new AgentConfiguration();
Agents\IAgentClient.cs (2)
30
AgentConfiguration
edit, CancellationToken cancellationToken);
39
AgentConfiguration
edit, CancellationToken cancellationToken);
Agents\McpConfigFileHelper.cs (1)
43
AgentConfiguration
edit, CancellationToken cancellationToken)
Agents\OpenCode\OpenCodeAgentClient.cs (7)
73
var config =
AgentConfiguration
.ReadObject(path, CancellationToken.None);
88
foreach (var directory in GetConfiguredSkillDirectories(
AgentConfiguration
.ParseObject(inline)))
134
AgentConfiguration
edit, CancellationToken cancellationToken)
240
AspireSkillsRemoteConfiguration.HasOpenCodeCatalog(
AgentConfiguration
.ParseObject(inline)))
247
if (
AgentConfiguration
.ReadObject(path, cancellationToken) is { } config && AspireSkillsRemoteConfiguration.HasOpenCodeCatalog(config))
258
AgentConfiguration
edit, CancellationToken cancellationToken)
265
var inlineConfig =
AgentConfiguration
.ParseObject(inline);
Commands\AgentInitCommand.cs (2)
562
var results = await
AgentConfiguration
.ApplyRemoteAsync(selectedClients, workspaceRoot, scope, cancellationToken);
651
var
edit = new AgentConfiguration();
Aspire.Cli.Tests (32)
Agents\AgentConfigurationTestContext.cs (2)
74
=>
AgentConfiguration
.ApplyRemoteAsync(clients, Project, scope, cancellationToken);
79
var
edit = new AgentConfiguration();
Agents\AgentConfigurationTests.cs (30)
35
var inline =
AgentConfiguration
.ParseObject(json);
36
var file =
AgentConfiguration
.ReadObject(path, CancellationToken.None);
37
var
edit = new AgentConfiguration();
58
var file =
AgentConfiguration
.ReadObject(path, CancellationToken.None);
59
var
edit = new AgentConfiguration();
85
AgentConfiguration
.ReadObject(path, CancellationToken.None));
86
var
edit = new AgentConfiguration();
113
"null" => Assert.Throws<ArgumentNullException>(() =>
AgentConfiguration
.ParseObject(json)),
114
"[]" => Assert.Throws<InvalidOperationException>(() =>
AgentConfiguration
.ParseObject(json)),
115
_ => Assert.ThrowsAny<JsonException>(() =>
AgentConfiguration
.ParseObject(json))
118
AgentConfiguration
.ReadObject(path, CancellationToken.None));
119
var
edit = new AgentConfiguration();
135
var
edit = new AgentConfiguration();
137
Assert.Null(
AgentConfiguration
.ReadObject(path, CancellationToken.None));
138
Assert.Empty(
AgentConfiguration
.EnumerateJsonFiles(directory));
156
var
otherEdit = new AgentConfiguration();
158
var
edit = new AgentConfiguration();
175
var
edit = new AgentConfiguration();
180
var discovered =
AgentConfiguration
.ReadObject(path, CancellationToken.None);
202
var
edit = new AgentConfiguration();
223
var
edit = new AgentConfiguration();
253
var
edit = new AgentConfiguration();
281
var
edit = new AgentConfiguration();
297
var
remoteEdit = new AgentConfiguration();
301
var
mcpEdit = new AgentConfiguration();
331
var
edit = new AgentConfiguration();
369
var
edit = new AgentConfiguration();
411
var
edit = new AgentConfiguration();
440
var
edit = new AgentConfiguration();
500
var
edit = new AgentConfiguration();