3 writes to TypeId
Aspire.Hosting.CodeGeneration.TypeScript (3)
TypeScriptApiProjector.cs (3)
2729TypeId = typeId, 2763TypeId = interfaceTypeId, 2802TypeId = typeId,
49 references to TypeId
Aspire.Hosting.CodeGeneration.TypeScript (49)
AtsTypeScriptCodeGenerator.cs (23)
809WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 856if (!_projector.TypesWithPromiseWrappers.Contains(builder.TypeId)) 931var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 938WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId)); 997var handleType = TypeScriptApiProjector.GetHandleTypeName(builder.TypeId); 1000WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 1100var returnTypeId = builder.TypeId; 1103!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 1555if (!_projector.TypesWithPromiseWrappers.Contains(builder.TypeId)) 1664!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 2110var className = _projector.WrapperClassNames.GetValueOrDefault(typeClass.TypeId) ?? TypeScriptApiProjector.DeriveClassName(typeClass.TypeId); 2111var handleType = _projector.GetConcreteHandleTypeName(typeClass.TypeId); 2112WriteLine($"registerHandleWrapper('{typeClass.TypeId}', (handle, client) => new {TypeScriptApiProjector.GetImplementationClassName(className)}(handle as {handleType}, client));"); 2118var className = _projector.WrapperClassNames.GetValueOrDefault(builder.TypeId) ?? TypeScriptApiProjector.DeriveClassName(builder.TypeId); 2119var handleType = _projector.GetConcreteHandleTypeName(builder.TypeId); 2120WriteLine($"registerHandleWrapper('{builder.TypeId}', (handle, client) => new {TypeScriptApiProjector.GetImplementationClassName(className)}(handle as {handleType}, client));"); 2145var handleType = TypeScriptApiProjector.GetHandleTypeName(model.TypeId); 2146var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 2164WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId), $"Type class for {className}."); 2862var className = TypeScriptApiProjector.DeriveClassName(model.TypeId); 3086var 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, 2500!string.Equals(capability.ReturnType.TypeId, builder.TypeId, StringComparison.Ordinal) && 2822.ThenBy(builder => builder.TypeId, StringComparer.Ordinal) 2832.Select(candidate => candidate.TypeId) 2878if (string.Equals(retainedBuilder.TypeId, candidate.TypeId, StringComparison.Ordinal))