26 instantiations of AgentConfiguration
aspire (6)
Agents\AgentConfiguration.cs (1)
33
var edit = new
AgentConfiguration
();
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (1)
116
var edit = new
AgentConfiguration
();
Agents\Copilot\CopilotAgentClient.cs (1)
167
var edit = new
AgentConfiguration
();
Commands\AgentInitCommand.cs (3)
674
var edit = new
AgentConfiguration
();
819
path, workspaceRoot, scope, new
AgentConfiguration
(), cancellationToken);
839
path, ConfigurationHelper.ParseOptions, new
AgentConfiguration
(), cancellationToken);
Aspire.Cli.Tests (20)
Agents\AgentConfigurationTestContext.cs (1)
85
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
();
57 references to AgentConfiguration
aspire (21)
Agents\AgentConfiguration.cs (1)
33
var
edit = new AgentConfiguration();
Agents\AspireSkills\AspireSkillsRemoteConfiguration.cs (3)
29
if (
AgentConfiguration
.ReadObject(path)?["enabledPlugins"] is { } pluginsNode)
145
AgentConfiguration
edit, IReadOnlyList<SkillSource> sources, CancellationToken cancellationToken)
238
IEnumerable<string> paths, string targetPath,
AgentConfiguration
edit, CancellationToken cancellationToken)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (4)
67
AgentConfiguration
.EnumerateJsonFiles(Path.Combine(ManagedSettingsDirectory, "managed-settings.d"))), sources);
80
AgentConfiguration
edit, IReadOnlyList<SkillSource> sources, CancellationToken cancellationToken)
96
AgentConfiguration
edit, CancellationToken cancellationToken)
116
var
edit = new AgentConfiguration();
Agents\Copilot\CopilotAgentClient.cs (3)
65
AgentConfiguration
edit, IReadOnlyList<SkillSource> sources, CancellationToken cancellationToken)
121
AgentConfiguration
edit, CancellationToken cancellationToken)
167
var
edit = new AgentConfiguration();
Agents\IAgentClient.cs (2)
28
AgentConfiguration
edit, IReadOnlyList<SkillSource> sources, CancellationToken cancellationToken);
37
AgentConfiguration
edit, CancellationToken cancellationToken);
Agents\McpConfigFileHelper.cs (1)
43
AgentConfiguration
edit, CancellationToken cancellationToken)
Agents\OpenCode\OpenCodeAgentClient.cs (5)
61
AgentConfiguration
edit, CancellationToken cancellationToken)
168
AspireSkillsRemoteConfiguration.HasOpenCodeCatalog(
AgentConfiguration
.ParseObject(inline), sources))
175
if (
AgentConfiguration
.ReadObject(path) is { } config && AspireSkillsRemoteConfiguration.HasOpenCodeCatalog(config, sources))
186
AgentConfiguration
edit, IReadOnlyList<SkillSource> sources, CancellationToken cancellationToken)
197
var inlineConfig =
AgentConfiguration
.ParseObject(inline);
Commands\AgentInitCommand.cs (2)
553
registrationResults = await
AgentConfiguration
.ApplyRemoteAsync(selectedClients, workspaceRoot, scope, skillSources, cancellationToken);
674
var
edit = new AgentConfiguration();
Aspire.Cli.Tests (36)
Agents\AgentConfigurationTestContext.cs (2)
80
=>
AgentConfiguration
.ApplyRemoteAsync(clients, Project, scope, Sources, cancellationToken);
85
var
edit = new AgentConfiguration();
Agents\AgentConfigurationTests.cs (31)
35
var inline =
AgentConfiguration
.ParseObject(json);
36
var file =
AgentConfiguration
.ReadObject(path);
37
var
edit = new AgentConfiguration();
58
var file =
AgentConfiguration
.ReadObject(path);
59
var
edit = new AgentConfiguration();
85
AgentConfiguration
.ReadObject(path));
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));
119
var
edit = new AgentConfiguration();
135
var
edit = new AgentConfiguration();
137
Assert.Null(
AgentConfiguration
.ReadObject(path));
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);
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();
691
Assert.True(JsonNode.DeepEquals(
AgentConfiguration
.ReadObject(results[0].TargetPath), results[0].Configuration));
Agents\SkillSourceTests.cs (3)
222
configurations[client.Id] =
AgentConfiguration
.ReadObject(client.GetIntegrationConfigPath(scope, context.Project));
244
var root =
AgentConfiguration
.ReadObject(path)!;
432
configurations[client.Id] =
AgentConfiguration
.ReadObject(