1 write to MetadataPath
Aspire.Hosting (1)
ApplicationModel\TerminalHostLayout.cs (1)
45MetadataPath = metadataPath;
14 references to MetadataPath
Aspire.Hosting (1)
TerminalResourceBuilderExtensions.cs (1)
244layout.MetadataPath,
Aspire.Hosting.Tests (13)
WithTerminalTests.cs (13)
458h.Layout.MetadataPath, 468File.Exists(host.Layout.MetadataPath), 469$"Metadata sidecar '{host.Layout.MetadataPath}' should exist after BeforeStartEvent."); 518Assert.True(File.Exists(host.Layout.MetadataPath)); 520using var doc = JsonDocument.Parse(await File.ReadAllTextAsync(host.Layout.MetadataPath)); 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, 1284Assert.Equal(expectedDirectory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1289Assert.StartsWith(host.Layout.ReplicaId + ".", Path.GetFileName(host.Layout.MetadataPath)); 1465Assert.Equal(directory, Path.GetDirectoryName(host.Layout.MetadataPath)); 1466Assert.True(File.Exists(host.Layout.MetadataPath));