1 write to Layout
Aspire.Hosting (1)
ApplicationModel\TerminalHostResource.cs (1)
34Layout = layout;
76 references to Layout
Aspire.Hosting (11)
ApplicationModel\ResourceTerminalCatalog.cs (2)
93ConsumerUdsPath: host.Layout.ConsumerUdsPath, 94ControlUdsPath: host.Layout.ControlUdsPath,
ApplicationModel\TerminalHostResource.cs (1)
52public int ParentReplicaIndex => Layout.ParentReplicaIndex;
ApplicationModel\TerminalResourceSnapshotProperties.cs (1)
53? terminalHosts[replicaIndex].Layout.ConsumerUdsPath
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
503/// for the consumer UDS path and replica index — those come from <see cref="TerminalHostResource.Layout"/> 512var layout = host.Layout;
Dcp\ContainerCreator.cs (1)
279UdsPath = terminalAnnotation.TerminalHosts[0].Layout.ProducerUdsPath,
Dcp\ExecutableCreator.cs (1)
391UdsPath = terminalAnnotation.TerminalHosts[replicaIndex].Layout.ProducerUdsPath,
TerminalResourceBuilderExtensions.cs (3)
394context.Args.Add(host.Layout.ProducerUdsPath); 397context.Args.Add(host.Layout.ConsumerUdsPath); 400context.Args.Add(host.Layout.ControlUdsPath);
Aspire.Hosting.Tests (65)
Backchannel\GetTerminalInfoAsyncTests.cs (8)
80Assert.Equal(hosts[i].Layout.ConsumerUdsPath, result.Replicas[i].ConsumerUdsPath); 145Assert.Equal(hosts[0].Layout.ConsumerUdsPath, result.Replicas[0].ConsumerUdsPath); 163Assert.Equal(hosts[1].Layout.ConsumerUdsPath, result.Replicas[1].ConsumerUdsPath); 196Assert.Equal(hosts[0].Layout.ConsumerUdsPath, result.Replicas[0].ConsumerUdsPath); 197Assert.Equal(hosts[1].Layout.ConsumerUdsPath, result.Replicas[1].ConsumerUdsPath); 226Assert.Equal(hosts[i].Layout.ConsumerUdsPath, summary.Replicas[i].ConsumerUdsPath); 260Assert.Equal(hosts[0].Layout.ConsumerUdsPath, summary.Replicas[0].ConsumerUdsPath); 261Assert.Equal(hosts[1].Layout.ConsumerUdsPath, summary.Replicas[1].ConsumerUdsPath);
Dashboard\DashboardServiceDataTerminalTests.cs (4)
71Assert.Equal(GetTerminalHosts(resource)[0].Layout.ConsumerUdsPath, path.Value.StringValue); 97GetTerminalHosts(resource)[2].Layout.ConsumerUdsPath, 119GetTerminalHosts(resource)[0].Layout.ConsumerUdsPath, 144GetTerminalHosts(resource)[0].Layout.ConsumerUdsPath,
Dcp\DcpExecutorTests.cs (3)
11175Assert.Equal(hosts[i].Layout.ProducerUdsPath, spec!.UdsPath); 11236Assert.Equal(host.Layout.ProducerUdsPath, exe.Spec.Terminal!.UdsPath); 11280Assert.Equal(host.Layout.ProducerUdsPath, container.Spec.Terminal!.UdsPath);
WithTerminalTests.cs (50)
458h.Layout.MetadataPath, 459h.Layout.ProducerUdsPath, 460h.Layout.ConsumerUdsPath, 461h.Layout.ControlUdsPath, 468File.Exists(host.Layout.MetadataPath), 469$"Metadata sidecar '{host.Layout.MetadataPath}' should exist after BeforeStartEvent."); 473File.WriteAllText(host.Layout.ProducerUdsPath, string.Empty); 474File.WriteAllText(host.Layout.ConsumerUdsPath, string.Empty); 475File.WriteAllText(host.Layout.ControlUdsPath, string.Empty); 518Assert.True(File.Exists(host.Layout.MetadataPath)); 520using var doc = JsonDocument.Parse(await File.ReadAllTextAsync(host.Layout.MetadataPath)); 524Assert.Equal(host.Layout.ReplicaId, root.GetProperty("replicaId").GetString()); 539Assert.Equal(host.Layout.ControlUdsPath, root.GetProperty("controlSocketPath").GetString()); 540Assert.Equal(host.Layout.ConsumerUdsPath, root.GetProperty("consumerSocketPath").GetString()); 543Assert.Equal(_terminalDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 544Assert.False(File.Exists(TerminalHostPaths.GetMetadataTemporaryPath(host.Layout.MetadataPath))); 551var mode = File.GetUnixFileMode(host.Layout.MetadataPath); 1155host.Layout.MetadataPath, 1156host.Layout.ProducerUdsPath, 1157host.Layout.ConsumerUdsPath, 1158host.Layout.ControlUdsPath); 1208Assert.NotEmpty(single.Layout.ProducerUdsPath); 1209Assert.NotEmpty(single.Layout.ConsumerUdsPath); 1210Assert.NotEmpty(single.Layout.ControlUdsPath); 1232Assert.NotEmpty(hosts[i].Layout.ReplicaId); 1233Assert.StartsWith(hosts[i].Layout.ReplicaId + ".", Path.GetFileName(hosts[i].Layout.ProducerUdsPath)); 1234Assert.StartsWith(hosts[i].Layout.ReplicaId + ".", Path.GetFileName(hosts[i].Layout.ConsumerUdsPath)); 1281Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.ProducerUdsPath)); 1282Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.ConsumerUdsPath)); 1283Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.ControlUdsPath)); 1284Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1286Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.ProducerUdsPath)); 1287Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.ConsumerUdsPath)); 1288Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.ControlUdsPath)); 1289Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.MetadataPath)); 1293Assert.True(seenReplicaIds.Add(host.Layout.ReplicaId), $"Duplicate replica id '{host.Layout.ReplicaId}'."); 1304firstResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.ReplicaId; 1310secondResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.ReplicaId; 1365Assert.Contains(host.Layout.ProducerUdsPath, args); 1366Assert.Contains(host.Layout.ConsumerUdsPath, args); 1367Assert.Contains(host.Layout.ControlUdsPath, args); 1465Assert.Equal(directory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1466Assert.True(File.Exists(host.Layout.MetadataPath));