44 references to KnownProperties
aspire (13)
Backchannel\ResourceSnapshotMapper.cs (1)
176snapshot.Properties.TryGetValue(KnownProperties.Resource.WaitingFor, out var waitingForProperty) &&
Mcp\Tools\ListResourcesTool.cs (5)
417GetStringProperty(snapshot, KnownProperties.Resource.WaitingFor) is { } waitingForProperty && 501if (snapshot.Properties.TryGetValue(KnownProperties.Resource.Source, out var explicitSourceNode) && 511var projectPath = GetStringProperty(snapshot, KnownProperties.Project.Path); 517var executablePath = GetStringProperty(snapshot, KnownProperties.Executable.Path); 523return GetBoundedText(GetStringProperty(snapshot, KnownProperties.Container.Image));
Mcp\Tools\McpToolHelpers.cs (1)
372if (snapshot.Properties.TryGetValue(KnownProperties.Resource.ExcludeFromMcp, out var value) && value is not null)
src\Shared\Model\ResourceSourceViewModel.cs (6)
13if (properties.TryGetValue(KnownProperties.Resource.Source, out var explicitSource) && 21properties.TryGetValue(KnownProperties.Project.Path, out var projectPath) && 28properties.TryGetValue(KnownProperties.Tool.Package, out var toolPackage) && 34if (properties.TryGetValue(KnownProperties.Executable.Path, out var executablePath) && 40if (properties.TryGetValue(KnownProperties.Container.Image, out var containerImage) && 46if (properties.TryGetValue(KnownProperties.Resource.Source, out var source) &&
Aspire.Cli.Tests (31)
Commands\DescribeCommandTests.cs (2)
738[KnownProperties.Resource.ConnectionProperties] = new JsonObject 759.GetProperty(KnownProperties.Resource.ConnectionProperties);
Mcp\ExcludeFromMcpTests.cs (9)
46[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 61[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(false) 76[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create("true") 91[KnownProperties.Resource.ExcludeFromMcp] = null 131[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 173[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 219[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 291[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 485[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true)
Mcp\ListResourcesToolTests.cs (17)
399[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 731[KnownProperties.Project.Path] = JsonValue.Create(@"C:\repo\Api\Api.csproj") 741[KnownProperties.Executable.Path] = JsonValue.Create(@"C:\repo\bin\worker.exe") 769[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty), 770[KnownProperties.Project.Path] = JsonValue.Create("/repo/Project/Project.csproj") 780[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty), 781[KnownProperties.Executable.Path] = JsonValue.Create("/repo/bin/worker") 791[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty), 792[KnownProperties.Container.Image] = JsonValue.Create("redis:8") 820[KnownProperties.Container.Image] = JsonValue.Create(sourceValue) 893[KnownProperties.Project.Path] = JsonValue.Create("/repo/Api/Api.csproj"), 971[KnownProperties.Container.Image] = JsonValue.Create("redis:8"), 972[KnownProperties.Executable.Path] = JsonValue.Create("/repo/bin/container-secret") 982[KnownProperties.Executable.Path] = JsonValue.Create("/repo/bin/worker") 992[KnownProperties.Resource.Source] = JsonValue.Create("generic-source-secret") 1002[KnownProperties.Project.Path] = JsonValue.Create("/repo/CaseMismatched/CaseMismatched.csproj"), 1003[KnownProperties.Resource.Source] = JsonValue.Create("case-mismatch-secret")
Mcp\WaitForResourcesToolTests.cs (3)
108[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 266[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true) 377[KnownProperties.Resource.ExcludeFromMcp] = JsonValue.Create(true)