1 write to MetadataPath
Aspire.Hosting (1)
ApplicationModel\TerminalHostLayout.cs (1)
45MetadataPath = metadataPath;
14 references to MetadataPath
Aspire.Hosting (1)
TerminalResourceBuilderExtensions.cs (1)
237layout.MetadataPath,
Aspire.Hosting.Tests (13)
WithTerminalTests.cs (13)
396h.Layout.MetadataPath, 406File.Exists(host.Layout.MetadataPath), 407$"Metadata sidecar '{host.Layout.MetadataPath}' should exist after BeforeStartEvent."); 456Assert.True(File.Exists(host.Layout.MetadataPath)); 458using var doc = JsonDocument.Parse(await File.ReadAllTextAsync(host.Layout.MetadataPath)); 481Assert.Equal(_terminalDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 482Assert.False(File.Exists(TerminalHostPaths.GetMetadataTemporaryPath(host.Layout.MetadataPath))); 489var mode = File.GetUnixFileMode(host.Layout.MetadataPath); 1093host.Layout.MetadataPath, 1222Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1227Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.MetadataPath)); 1403Assert.Equal(directory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1404Assert.True(File.Exists(host.Layout.MetadataPath));