1 write to MetadataPath
Aspire.Hosting (1)
ApplicationModel\TerminalHostLayout.cs (1)
45MetadataPath = metadataPath;
14 references to MetadataPath
Aspire.Hosting (1)
TerminalResourceBuilderExtensions.cs (1)
226layout.MetadataPath,
Aspire.Hosting.Tests (13)
WithTerminalTests.cs (13)
470h.Layout.MetadataPath, 480File.Exists(host.Layout.MetadataPath), 481$"Metadata sidecar '{host.Layout.MetadataPath}' should exist after BeforeStartEvent."); 530Assert.True(File.Exists(host.Layout.MetadataPath)); 532using var doc = JsonDocument.Parse(await File.ReadAllTextAsync(host.Layout.MetadataPath)); 555Assert.Equal(_terminalDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 556Assert.False(File.Exists(TerminalHostPaths.GetMetadataTemporaryPath(host.Layout.MetadataPath))); 563var mode = File.GetUnixFileMode(host.Layout.MetadataPath); 1167host.Layout.MetadataPath, 1296Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1301Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.MetadataPath)); 1479Assert.Equal(directory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1480Assert.True(File.Exists(host.Layout.MetadataPath));