35 writes to Name
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
205Name = dto.Name,
Aspire.Hosting.CodeGeneration.Go.Tests (7)
AtsGoCodeGeneratorTests.cs (3)
1843Name = "NullableArrayDto", 2682Name = "FooBarBaz", 2728Name = "NumericDto",
AtsGoDerivedBuilderTests.cs (1)
546Name = "PoolSettings",
GoApiExportTests.cs (1)
331Name = "Settings",
GoDocCommentTests.cs (1)
515Name = "DocumentedSettings",
GoGeneratorEscapingTests.cs (1)
173Name = "EscapedSettings",
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
729Name = "GenerateParameterDefault", 3315Name = "ArrayDto", 3546Name = "MutableContext", 3559Name = "CallbackOptions", 3661Name = "MutableContext", 3928Name = "KeywordProbe",
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
383Name = "ATerminalKeywordOptions",
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
159Name = "NullableArrayDto",
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
989Name = "NullableNumberArrayDto",
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
1221Name = typeName,
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1221Name = typeName,
Aspire.Hosting.RemoteHost.Tests (16)
AtsContextFilterTests.cs (4)
267Name = "UnreferencedOptions", 425Name = nameof(TestOptions), 446Name = nameof(AtsContext), 478Name = "ExportedValueMetadata",
AtsMarshallerTests.cs (11)
23new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] }, 24new AtsDtoTypeInfo { TypeId = "test/TestDtoWithEnum", Name = "TestDtoWithEnum", ClrType = typeof(TestDtoWithEnum), Properties = [] }, 25new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] }, 26new AtsDtoTypeInfo { TypeId = "test/SelfReferencingDto", Name = "SelfReferencingDto", ClrType = typeof(SelfReferencingDto), Properties = [] }, 27new AtsDtoTypeInfo { TypeId = "test/ParentDto", Name = "ParentDto", ClrType = typeof(ParentDto), Properties = [] }, 28new AtsDtoTypeInfo { TypeId = "test/ChildDto", Name = "ChildDto", ClrType = typeof(ChildDto), Properties = [] }, 29new AtsDtoTypeInfo { TypeId = "test/DtoWithJsonPropertyName", Name = "DtoWithJsonPropertyName", ClrType = typeof(DtoWithJsonPropertyName), Properties = [] }, 30new AtsDtoTypeInfo { TypeId = "test/DtoWithJsonIgnore", Name = "DtoWithJsonIgnore", ClrType = typeof(DtoWithJsonIgnore), Properties = [] }, 31new AtsDtoTypeInfo { TypeId = "test/DtoWithReadOnlyProperty", Name = "DtoWithReadOnlyProperty", ClrType = typeof(DtoWithReadOnlyProperty), Properties = [] }, 32new AtsDtoTypeInfo { TypeId = "test/DtoWithInitListProperties", Name = "DtoWithInitListProperties", ClrType = typeof(DtoWithInitListProperties), Properties = [] }, 33new AtsDtoTypeInfo { TypeId = "test/DtoWithTimeSpans", Name = "DtoWithTimeSpans", ClrType = typeof(DtoWithTimeSpans), Properties = [] },
CallbackProxyTests.cs (1)
475new() { TypeId = "test/TestCallbackDto", Name = "TestCallbackDto", ClrType = typeof(TestCallbackDto), Properties = [] }
25 references to Name
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.ApiProjection.cs (1)
332var createBuilderOptions = context.DtoTypes.FirstOrDefault(dto => dto.Name == "CreateBuilderOptions");
AtsGoCodeGenerator.cs (7)
205Name = dto.Name, 403_dtoNames[dto.TypeId] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false); 625if (context.DtoTypes.FirstOrDefault(dto => dto.Name == "CreateBuilderOptions") is { } createBuilderOptions) 913AddDocTypeName(dto.Name, dtoName); 1080FallbackSummary = $"{dtoName} represents {dto.Name}.", 2470|| context.DtoTypes.FirstOrDefault(dto => dto.Name == "CreateBuilderOptions") is not { } dto 3035if (dto.Name.Equals("CreateBuilderOptions", StringComparison.Ordinal)
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
600_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 739WriteLine($"/** {dto.Name} DTO. */");
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
921foreach (var dtoType in dtoTypes.OrderBy(d => d.Name))
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
392TypeId = context.DtoTypes.Single(t => t.Name == "TerminalOptions").TypeId,
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
96_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 213WriteLine($"/// {dto.Name}");
Aspire.Hosting.CodeGeneration.TypeScript (2)
AtsTypeScriptCodeGenerator.cs (2)
694foreach (var dto in generatedDtoTypes.OrderBy(d => d.Name)) 698WriteDocumentationComment(string.Empty, dto.Documentation, dto.Description ?? $"DTO interface for {dto.Name}");
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
193var testConfig = context.DtoTypes.First(dto => dto.Name == nameof(TestConfigDto)); 1962var processCommandExportOptions = Assert.Single(atsContext.DtoTypes, dto => dto.Name == "ProcessCommandExportOptions");
Aspire.Hosting.Native.CodeGeneration (4)
NativeCSharpProjection.cs (4)
21var dtos = context.DtoTypes.ToDictionary(type => type.TypeId, type => type.Name); 35foreach (var dto in context.DtoTypes.OrderBy(type => type.Name, StringComparer.Ordinal)) 37code.AppendLine(CultureInfo.InvariantCulture, $"/// <summary>Copied ATS data for {dto.Name}; contains no execution authority.</summary>"); 38code.AppendLine(CultureInfo.InvariantCulture, $"public sealed class {dto.Name}");
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
175Name = t.Name,
Aspire.Hosting.RemoteHost.Tests (2)
AtsCapabilityScannerTests.cs (2)
429Assert.Equal(nameof(HttpCommandExportOptions), dto.Name); 456Assert.Equal(nameof(HttpCommandRequestExportData), requestDataDto.Name);