6 writes to Type
Aspire.Hosting (6)
Ats\AtsCapabilityScanner.cs (6)
1050Type = contextTypeRef, 1085Type = contextTypeRef, 1094Type = propertyTypeRef!, 1199Type = instanceContextTypeRef, 1394Type = unionTypeRef, 1436Type = finalTypeRef,
24 references to Type
Aspire.Hosting (3)
Ats\AtsCapabilityScanner.cs (3)
428CollectEnumTypeIds(param.Type, enumTypeIds); 513ResolveTypeRef(param.Type, validTypes); 582var result = FindUnknownType(param.Type);
Aspire.Hosting.CodeGeneration.TypeScript (8)
AtsTypeScriptCodeGenerator.cs (8)
245var baseType = MapTypeRefToTypeScript(param.Type); 249if (IsInterfaceHandleType(param.Type)) 383if (IsHandleType(param.Type) && !dtoTypeIds.Contains(param.Type!.TypeId)) 385typeIds.Add(param.Type!.TypeId); 1219return param.Type?.TypeId == AtsConstants.CancellationToken; 1646var valueType = MapTypeRefToTypeScript(valueParam.Type); 2419CollectFromTypeRef(param.Type);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (13)
AtsTypeScriptCodeGeneratorTests.cs (13)
122Assert.Contains(addTestRedis.Parameters, p => p.Name == "name" && p.Type?.TypeId == "string"); 559Assert.NotNull(dependencyParam.Type); 560Assert.Equal(AtsTypeCategory.Handle, dependencyParam.Type.Category); 561Assert.True(dependencyParam.Type.IsInterface, "IResourceWithConnectionString is an interface"); 888Assert.NotNull(valueParam.Type); 889Assert.Equal("any", valueParam.Type.TypeId); 1012Assert.NotNull(ctParam.Type); 1013Assert.Equal(AtsConstants.CancellationToken, ctParam.Type.TypeId); 1014Assert.Equal(AtsTypeCategory.Primitive, ctParam.Type.Category); 1065Assert.Equal(AtsConstants.TimeSpan, timeoutParam.Type?.TypeId); 1069Assert.Equal(AtsConstants.CancellationToken, ctParam.Type?.TypeId); 1182Assert.NotNull(param.Type); 1183Assert.NotEqual(AtsTypeCategory.Unknown, param.Type.Category);