3 writes to TypeId
Aspire.Hosting.CodeGeneration.TypeScript (3)
TypeScriptApiProjector.cs (3)
2741TypeId = typeId, 2775TypeId = interfaceTypeId, 2814TypeId = typeId,
49 references to TypeId
Aspire.Hosting.CodeGeneration.TypeScript (49)
AtsTypeScriptCodeGenerator.cs (23)
823WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 870if (!_projector.TypesWithPromiseWrappers.Contains(builder.TypeId)) 945var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 952WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId)); 1011var handleType = TypeScriptApiProjector.GetHandleTypeName(builder.TypeId); 1014WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 1114var returnTypeId = builder.TypeId; 1117!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 1560if (!_projector.TypesWithPromiseWrappers.Contains(builder.TypeId)) 1614!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 2079var className = _projector.WrapperClassNames.GetValueOrDefault(typeClass.TypeId) ?? TypeScriptApiProjector.DeriveClassName(typeClass.TypeId); 2080var handleType = _projector.GetConcreteHandleTypeName(typeClass.TypeId); 2081WriteLine($"registerHandleWrapper('{typeClass.TypeId}', (handle, client) => new {TypeScriptApiProjector.GetImplementationClassName(className)}(handle as {handleType}, client));"); 2087var className = _projector.WrapperClassNames.GetValueOrDefault(builder.TypeId) ?? TypeScriptApiProjector.DeriveClassName(builder.TypeId); 2088var handleType = _projector.GetConcreteHandleTypeName(builder.TypeId); 2089WriteLine($"registerHandleWrapper('{builder.TypeId}', (handle, client) => new {TypeScriptApiProjector.GetImplementationClassName(className)}(handle as {handleType}, client));"); 2114var handleType = TypeScriptApiProjector.GetHandleTypeName(model.TypeId); 2115var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 2133WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId), $"Type class for {className}."); 2831var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 3045var className = TypeScriptApiProjector.DeriveClassName(model.TypeId);
TypeScriptApiProjector.cs (26)
161if (!dtoTypeIds.Contains(builder.TypeId)) 163typeIds.Add(builder.TypeId); 202_wrapperClassNames[builder.TypeId] = builder.BuilderClassName; 203_concreteTypeIds[builder.TypeId] = builder.TypeId; 206_typeRefsById[builder.TypeId] = targetType; 216_typesWithPromiseWrappers.Add(builder.TypeId); 224_concreteTypeIds[alias.TypeId] = builder.TypeId; 233_wrapperClassNames[typeClass.TypeId] = DeriveClassName(typeClass.TypeId); 234_concreteTypeIds[typeClass.TypeId] = typeClass.TypeId; 237_typeRefsById[typeClass.TypeId] = targetType; 242_typesWithPromiseWrappers.Add(typeClass.TypeId); 426return GetPromiseInterfaceName(DeriveClassName(builder.TypeId)); 975: DeriveClassName(builderModel.TypeId)); 1012var documentation = _handleDocumentationById.GetValueOrDefault(builderModel.TypeId); 1014var typeOwner = GetTypeOwningAssemblyName(builderModel.TypeId); 1019var promiseInterfaceName = _typesWithPromiseWrappers.Contains(builderModel.TypeId) 1020? GetPromiseInterfaceName(isResourceBuilder ? builderModel.BuilderClassName : DeriveClassName(builderModel.TypeId)) 1103TypeId = builderModel.TypeId, 2512!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 2834.ThenBy(builder => builder.TypeId, StringComparer.Ordinal) 2844.Select(candidate => candidate.TypeId) 2890if (string.Equals(retainedBuilder.TypeId, candidate.TypeId, StringComparison.Ordinal))