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)
532new AtsTypeInfo { AtsTypeId = AtsConstants.BuilderTypeId, IsInterface = true }, 533new AtsTypeInfo { AtsTypeId = PoolId }, 534new AtsTypeInfo { AtsTypeId = AksPoolId, BaseTypeHierarchy = [s_pool] }, 535new AtsTypeInfo { AtsTypeId = SpotPoolId, BaseTypeHierarchy = [s_aksPool, s_pool] }, 536new AtsTypeInfo { AtsTypeId = GpuSpotPoolId, BaseTypeHierarchy = [s_spotPool, s_aksPool, s_pool] }, 537new AtsTypeInfo { AtsTypeId = WorkloadId }, 538new AtsTypeInfo { AtsTypeId = QueueId }
GoDocCommentTests.cs (2)
498new AtsTypeInfo 503new AtsTypeInfo
GoGeneratorEscapingTests.cs (1)
166new AtsTypeInfo { AtsTypeId = ResourceTypeId, Documentation = new AtsDocumentationInfo { Summary = InjectedText } }
Aspire.Hosting.CodeGeneration.Java.Tests (3)
AtsJavaCodeGeneratorTests.cs (3)
3310HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }], 3656HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }], 3957HandleTypes = [new AtsTypeInfo { AtsTypeId = resourceType.TypeId! }],
Aspire.Hosting.CodeGeneration.Python.Tests (7)
AtsPythonCodeGeneratorTests.cs (7)
901new AtsTypeInfo 957new AtsTypeInfo 1027new AtsTypeInfo 1034new AtsTypeInfo 1039new AtsTypeInfo 1233new AtsTypeInfo 1238new AtsTypeInfo
Aspire.Hosting.Native.CodeGeneration (2)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (2)
566typeInfos.Add(new AtsTypeInfo 1131return 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)
566typeInfos.Add(new AtsTypeInfo 1131return 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
68 references to AtsTypeInfo
Aspire.Hosting.CodeGeneration.Go (9)
AtsGoCodeGenerator.ApiProjection.cs (4)
641var handleType = scope.GetHandleType(typeId); 1196private readonly Dictionary<string, AtsTypeInfo> _handleTypesById = new(StringComparer.Ordinal); 1205foreach (var handleType in context.HandleTypes) 1256public AtsTypeInfo? GetHandleType(string typeId) => _handleTypesById.GetValueOrDefault(typeId);
AtsGoCodeGenerator.cs (3)
411foreach (var handleType in context.HandleTypes) 665foreach (var handleType in context.HandleTypes) 896foreach (var handleType in context.HandleTypes)
src\Shared\CodeGeneration\AtsTypeSystemCompatibility.cs (2)
18typeof(AtsTypeInfo).GetProperty("IsObsolete", BindingFlags.Instance | BindingFlags.Public); 37public static bool IsObsolete(AtsTypeInfo type) =>
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoCodeGeneratorTests.cs (3)
2054var containerResourceType = result.HandleTypes 2059var testRedisType = result.HandleTypes 2757var obsoleteContext = Assert.Single(context.HandleTypes, type => type.ClrType == typeof(GoObsoleteContext));
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)
316var containerResourceType = result.HandleTypes 321var 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 (3)
src\Shared\CodeGeneration\AtsTypeSystemCompatibility.cs (2)
18typeof(AtsTypeInfo).GetProperty("IsObsolete", BindingFlags.Instance | BindingFlags.Public); 37public static bool IsObsolete(AtsTypeInfo type) =>
TypeScriptApiProjector.cs (1)
192foreach (var handleType in context.HandleTypes)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1532var containerResourceType = result.HandleTypes 1537var 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; } 144var allTypeInfos = new List<AtsTypeInfo>(); 180foreach (var typeInfo in result.HandleTypes) 377var typeInfos = new List<AtsTypeInfo>(); 413var typeInfo = CreateTypeInfo(exportedType, assemblyExportAttr); 455var typeInfo = CreateTypeInfo(type, typeExportAttr); 908List<AtsTypeInfo> typeInfos) 951List<AtsTypeInfo> typeInfos) 955foreach (var typeInfo in typeInfos) 1110private static AtsTypeInfo? CreateTypeInfo(
Aspire.Hosting.RemoteHost (20)
AtsCapabilityScanner.cs (10)
33public required List<AtsTypeInfo> HandleTypes { get; init; } 144var allTypeInfos = new List<AtsTypeInfo>(); 180foreach (var typeInfo in result.HandleTypes) 377var typeInfos = new List<AtsTypeInfo>(); 413var typeInfo = CreateTypeInfo(exportedType, assemblyExportAttr); 455var typeInfo = CreateTypeInfo(type, typeExportAttr); 908List<AtsTypeInfo> typeInfos) 951List<AtsTypeInfo> typeInfos) 955foreach (var typeInfo in typeInfos) 1110private 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; }