31 instantiations of AtsTypeInfo
aspire-managed (1)
AppHostServerV2CodeGeneration.cs (1)
116handles.TryAdd(type.TypeId, new AtsTypeInfo { AtsTypeId = type.TypeId });
Aspire.Hosting.CodeGeneration.Go.Tests (10)
AtsGoDerivedBuilderTests.cs (7)
531new AtsTypeInfo { AtsTypeId = AtsConstants.BuilderTypeId, IsInterface = true }, 532new AtsTypeInfo { AtsTypeId = PoolId }, 533new AtsTypeInfo { AtsTypeId = AksPoolId, BaseTypeHierarchy = [s_pool] }, 534new AtsTypeInfo { AtsTypeId = SpotPoolId, BaseTypeHierarchy = [s_aksPool, s_pool] }, 535new AtsTypeInfo { AtsTypeId = GpuSpotPoolId, BaseTypeHierarchy = [s_spotPool, s_aksPool, s_pool] }, 536new AtsTypeInfo { AtsTypeId = WorkloadId }, 537new AtsTypeInfo { AtsTypeId = QueueId }
GoDocCommentTests.cs (2)
408new AtsTypeInfo 413new AtsTypeInfo
GoGeneratorEscapingTests.cs (1)
140new AtsTypeInfo { AtsTypeId = ResourceTypeId, Documentation = new AtsDocumentationInfo { Summary = InjectedText } }
Aspire.Hosting.CodeGeneration.Java.Tests (3)
AtsJavaCodeGeneratorTests.cs (3)
3088HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }], 3434HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }], 3735HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }],
Aspire.Hosting.CodeGeneration.Python.Tests (7)
AtsPythonCodeGeneratorTests.cs (7)
909new AtsTypeInfo 965new AtsTypeInfo 1035new AtsTypeInfo 1042new AtsTypeInfo 1047new AtsTypeInfo 1241new AtsTypeInfo 1246new AtsTypeInfo
Aspire.Hosting.Native.CodeGeneration (2)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (2)
563typeInfos.Add(new AtsTypeInfo 1125return new AtsTypeInfo
Aspire.Hosting.Native.Core.Tests (1)
NativeProviderContractReaderTests.cs (1)
69await Verify(NativeProviderTypeScriptProjection.Generate(exports, [new() { AtsTypeId = "core/Resource" }]), "ts")
Aspire.Hosting.RemoteHost (2)
AtsCapabilityScanner.cs (2)
563typeInfos.Add(new AtsTypeInfo 1125return new AtsTypeInfo
Aspire.Hosting.RemoteHost.Tests (5)
AtsContextFilterTests.cs (4)
378var selectedHandleType = new AtsTypeInfo 389var referencedCoreHandleType = new AtsTypeInfo 400var unrelatedCoreHandleType = new AtsTypeInfo 411var siblingHandleType = new AtsTypeInfo
CallbackProxyTests.cs (1)
236new AtsTypeInfo
63 references to AtsTypeInfo
Aspire.Hosting.CodeGeneration.Go (7)
AtsGoCodeGenerator.ApiProjection.cs (4)
491var handleType = scope.GetHandleType(typeId); 1038private readonly Dictionary<string, AtsTypeInfo> _handleTypesById = new(StringComparer.Ordinal); 1047foreach (var handleType in context.HandleTypes) 1098public AtsTypeInfo? GetHandleType(string typeId) => _handleTypesById.GetValueOrDefault(typeId);
AtsGoCodeGenerator.cs (3)
185foreach (var handleType in context.HandleTypes) 374foreach (var handleType in context.HandleTypes) 623foreach (var handleType in context.HandleTypes)
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
1433var containerResourceType = result.HandleTypes 1438var testRedisType = result.HandleTypes
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
2415foreach (var handleType in context.HandleTypes) 2479if (handleTypeInfoMap.TryGetValue(typeId, out var handleTypeInfo))
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
314var containerResourceType = result.HandleTypes 319var testRedisType = result.HandleTypes
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
208var containerResourceType = result.HandleTypes 213var testRedisType = result.HandleTypes
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
780foreach (var handleType in context.HandleTypes)
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
AtsRustCodeGeneratorTests.cs (2)
366var containerResourceType = result.HandleTypes 371var testRedisType = result.HandleTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
192foreach (var handleType in context.HandleTypes)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1447var containerResourceType = result.HandleTypes 1452var testRedisType = result.HandleTypes
Aspire.Hosting.Native.CodeGeneration (14)
NativeCSharpProjection.cs (1)
52foreach (var handle in context.HandleTypes.OrderBy(type => type.AtsTypeId, StringComparer.Ordinal))
NativeProviderTypeScriptProjection.cs (2)
14public static async Task GenerateAsync(string manifestPath, string output, IReadOnlyList<AtsTypeInfo> coreHandles) 22internal static string Generate(IReadOnlyList<NativeProviderExport> exports, IReadOnlyList<AtsTypeInfo> coreHandles)
Program.cs (1)
463var typeId = context.HandleTypes.SingleOrDefault(handle => handle.AtsTypeId == $"{type.Assembly.GetName().Name}/{type.FullName}");
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (10)
33public required List<AtsTypeInfo> HandleTypes { get; init; } 142var allTypeInfos = new List<AtsTypeInfo>(); 178foreach (var typeInfo in result.HandleTypes) 374var typeInfos = new List<AtsTypeInfo>(); 410var typeInfo = CreateTypeInfo(exportedType, assemblyExportAttr); 452var typeInfo = CreateTypeInfo(type, typeExportAttr); 902List<AtsTypeInfo> typeInfos) 945List<AtsTypeInfo> typeInfos) 949foreach (var typeInfo in typeInfos) 1104private static AtsTypeInfo? CreateTypeInfo(
Aspire.Hosting.RemoteHost (20)
AtsCapabilityScanner.cs (10)
33public required List<AtsTypeInfo> HandleTypes { get; init; } 142var allTypeInfos = new List<AtsTypeInfo>(); 178foreach (var typeInfo in result.HandleTypes) 374var typeInfos = new List<AtsTypeInfo>(); 410var typeInfo = CreateTypeInfo(exportedType, assemblyExportAttr); 452var typeInfo = CreateTypeInfo(type, typeExportAttr); 902List<AtsTypeInfo> typeInfos) 945List<AtsTypeInfo> typeInfos) 949foreach (var typeInfo in typeInfos) 1104private static AtsTypeInfo? CreateTypeInfo(
AtsContextFilter.cs (9)
237foreach (var handleType in context.HandleTypes.Where(type => includedHandleTypeIds.Contains(type.AtsTypeId)).ToList()) 310IReadOnlyDictionary<string, AtsTypeInfo> supportingHandleTypes) 320supportingHandleTypes.TryGetValue(targetTypeId, out var handleType)) 414IReadOnlyDictionary<string, AtsTypeInfo> handleTypesById, 426if (handleTypesById.TryGetValue(typeRef.TypeId, out var handleType) && includedHandleTypeIds.Add(handleType.AtsTypeId)) 455AtsTypeInfo handleType, 456IReadOnlyDictionary<string, AtsTypeInfo> handleTypesById, 476IReadOnlyDictionary<string, AtsTypeInfo> handleTypesById, 553foreach (var type in context.HandleTypes)
CodeGeneration\CodeGenerationService.cs (1)
161private static HandleTypeResponse MapHandleType(AtsTypeInfo t) => new()
Aspire.Hosting.RemoteHost.Tests (7)
AtsCapabilityScannerTests.cs (1)
273var cancellationTokenType = result.HandleTypes
AtsContextFilterTests.cs (5)
177var referencedHandleType = Assert.Single( 378var selectedHandleType = new AtsTypeInfo 389var referencedCoreHandleType = new AtsTypeInfo 400var unrelatedCoreHandleType = new AtsTypeInfo 411var siblingHandleType = new AtsTypeInfo
CallbackProxyTests.cs (1)
468private static AtsCallbackProxyFactory CreateFactory(ICallbackInvoker? invoker = null, bool registerDtoTypes = false, IReadOnlyList<AtsTypeInfo>? handleTypes = null)
Aspire.TypeSystem (1)
AtsContext.cs (1)
65public required IReadOnlyList<AtsTypeInfo> HandleTypes { get; init; }