39 writes to Properties
Aspire.Cli.Tests (39)
Backchannel\ResourceSnapshotMapperTests.cs (2)
44Properties = 375Properties = new Dictionary<string, JsonNode?>
Commands\DescribeCommandTests.cs (1)
846Properties = new Dictionary<string, JsonNode?>
Commands\TerminalResourceResolverTests.cs (8)
53new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties(replicaIndex) } 83new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties("0") }, 84new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties("1") } 108new() { Name = "other-abc123", DisplayName = "shell-def456", Properties = Properties("0") }, 109new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties("1") } 214new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties(replicaIndex) } 252Properties = new() { [KnownProperties.Terminal.ReplicaIndex] = JsonNode.Parse(json) } 306new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties("0") }
Commands\TerminalTapePlayCommandTests.cs (2)
211Properties = new() { [KnownProperties.Terminal.ReplicaIndex] = JsonValue.Create("0") } 217Properties = new() { [KnownProperties.Terminal.ReplicaIndex] = JsonValue.Create("1") }
Mcp\ExcludeFromMcpTests.cs (10)
32Properties = [] 44Properties = new Dictionary<string, JsonNode?> 59Properties = new Dictionary<string, JsonNode?> 74Properties = new Dictionary<string, JsonNode?> 89Properties = new Dictionary<string, JsonNode?> 129Properties = new Dictionary<string, JsonNode?> 171Properties = new Dictionary<string, JsonNode?> 217Properties = new Dictionary<string, JsonNode?> 289Properties = new Dictionary<string, JsonNode?> 483Properties = new Dictionary<string, JsonNode?>
Mcp\ListResourcesToolTests.cs (13)
397Properties = new Dictionary<string, JsonNode?> 729Properties = new Dictionary<string, JsonNode?> 739Properties = new Dictionary<string, JsonNode?> 767Properties = new Dictionary<string, JsonNode?> 778Properties = new Dictionary<string, JsonNode?> 789Properties = new Dictionary<string, JsonNode?> 818Properties = new Dictionary<string, JsonNode?> 891Properties = new Dictionary<string, JsonNode?> 969Properties = new Dictionary<string, JsonNode?> 980Properties = new Dictionary<string, JsonNode?> 990Properties = new Dictionary<string, JsonNode?> 1000Properties = new Dictionary<string, JsonNode?> 1058Properties = new Dictionary<string, JsonNode?>
Mcp\WaitForResourcesToolTests.cs (3)
106Properties = 264Properties = 375Properties =
8 references to Properties
aspire (7)
Backchannel\ResourceSnapshotMapper.cs (3)
87var properties = snapshot.Properties.OrderBy(p => p.Key).ToDistinctDictionary( 134var stringProperties = snapshot.Properties.OrderBy(p => p.Key).ToDistinctDictionary( 176snapshot.Properties.TryGetValue(KnownProperties.Resource.WaitingFor, out var waitingForProperty) &&
Commands\TerminalResourceResolver.cs (1)
91if (snapshot.Properties.TryGetValue(KnownProperties.Terminal.ReplicaIndex, out var property))
Mcp\Tools\ListResourcesTool.cs (2)
501if (snapshot.Properties.TryGetValue(KnownProperties.Resource.Source, out var explicitSourceNode) && 537if (snapshot.Properties.TryGetValue(propertyName, out var value) &&
Mcp\Tools\McpToolHelpers.cs (1)
372if (snapshot.Properties.TryGetValue(KnownProperties.Resource.ExcludeFromMcp, out var value) && value is not null)
Aspire.Cli.Tests (1)
Backchannel\ResourceSnapshotMapperTests.cs (1)
31var pid = Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["executable.pid"]);