16 writes to PathSegments
Aspire.Hosting.CodeGeneration.Go.Tests (6)
AtsGoCodeGeneratorTests.cs (1)
1255PathSegments = ["NullableArrays", "Numbers"],
AtsGoDerivedBuilderTests.cs (1)
583PathSegments = [rootName, "Default"],
GoDocCommentTests.cs (2)
458PathSegments = ["DocumentedDefaults", "Primary"], 466PathSegments = ["DocumentedDefaults", "Secondary"],
GoGeneratorEscapingTests.cs (2)
172PathSegments = ["Defaults\"X", "Pri-mary"], 192PathSegments = pathSegments,
Aspire.Hosting.CodeGeneration.Java.Tests (3)
AtsJavaCodeGeneratorTests.cs (3)
3631PathSegments = ["Probes", "Sample"], 3665PathSegments = ["NullableArrays", "Numbers"], 3672PathSegments = ["NullableArrays", "Flags"],
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
192PathSegments = ["NullableArrays", "Numbers"],
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
1357PathSegments = pathSegments,
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1357PathSegments = pathSegments,
Aspire.Hosting.RemoteHost.Tests (4)
AtsContextFilterTests.cs (3)
575PathSegments = ["Aspire.Hosting.RemoteHost.Tests", "SelectedValues", "Default"], 588PathSegments = ["Aspire.Hosting.RemoteHost.Tests", "SelectedValues", "Metadata"], 601PathSegments = ["Aspire.Hosting", "CoreValues", "Default"],
ExternalCapabilityRegistryTests.cs (1)
963PathSegments = ["Defaults", "Name"],
38 references to PathSegments
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
1049foreach (var segment in exportedValue.PathSegments.Select(SanitizeIdentifier))
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
1275Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Default"); 1276Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Profiles.Development");
Aspire.Hosting.CodeGeneration.Java (1)
AtsJavaCodeGenerator.cs (1)
928foreach (var segment in exportedValue.PathSegments)
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
133Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Default"); 134Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Profiles.Development");
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
1069foreach (var segment in exportedValue.PathSegments)
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
50Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Default"); 51Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Profiles.Development");
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
330foreach (var segment in exportedValue.PathSegments)
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
AtsRustCodeGeneratorTests.cs (2)
209Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Default"); 210Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Profiles.Development");
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
930foreach (var segment in exportedValue.PathSegments)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
AtsTypeScriptCodeGeneratorTests.cs (3)
102Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Default"); 103Assert.Contains(atsContext.ExportedValues, value => string.Join(".", value.PathSegments) == "TestConfigs.Profiles.Development"); 202var defaultConfig = context.ExportedValues.First(value => string.Join(".", value.PathSegments) == "TestConfigs.Default");
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
1519var path = string.Join(".", exportedValue.PathSegments); 1528if (TryFindConflictingExportedValuePath(exportedValue.PathSegments, uniqueValues, out var conflictingPath)) 1549if (PathsConflict(candidatePathSegments, existingValue.PathSegments)) 1551conflictingPath = string.Join(".", existingValue.PathSegments);
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (4)
1519var path = string.Join(".", exportedValue.PathSegments); 1528if (TryFindConflictingExportedValuePath(exportedValue.PathSegments, uniqueValues, out var conflictingPath)) 1549if (PathsConflict(candidatePathSegments, existingValue.PathSegments)) 1551conflictingPath = string.Join(".", existingValue.PathSegments);
CodeGeneration\CodeGenerationService.cs (1)
203PathSegments = value.PathSegments.ToList(),
Aspire.Hosting.RemoteHost.Tests (13)
AtsCapabilityScannerTests.cs (7)
761string.Join(".", value.PathSegments) == "InvalidValues.InvalidExportedValues.MutableMetadata"); 763string.Join(".", value.PathSegments) == "InvalidValues.InvalidExportedValues.DtoWithMutableList"); 808value => string.Join(".", value.PathSegments) == "IgnoredPropertyValues.IgnoredPropertyExportedValues.Value"); 820string.Join(".", value.PathSegments).Contains("Invalid-Values", StringComparison.Ordinal)); 822string.Join(".", value.PathSegments).Contains("123Name", StringComparison.Ordinal)); 839value => string.Join(".", value.PathSegments) == "DuplicateValues.DuplicateExportedValues.Shared"); 854string.Join(".", value.PathSegments) == "ConflictingValues.PrefixConflictingExportedValues.Node.Child");
AtsContextFilterTests.cs (6)
139filteredContext.ExportedValues.OrderBy(value => string.Join(".", value.PathSegments), StringComparer.Ordinal), 140value => Assert.Equal("Aspire.Hosting.RemoteHost.Tests.SelectedValues.Default", string.Join(".", value.PathSegments)), 141value => Assert.Equal("Aspire.Hosting.RemoteHost.Tests.SelectedValues.Metadata", string.Join(".", value.PathSegments))); 166filteredContext.ExportedValues.OrderBy(value => string.Join(".", value.PathSegments), StringComparer.Ordinal), 167value => Assert.Equal("Aspire.Hosting.RemoteHost.Tests.SelectedValues.Default", string.Join(".", value.PathSegments)), 168value => Assert.Equal("Aspire.Hosting.RemoteHost.Tests.SelectedValues.Metadata", string.Join(".", value.PathSegments)));