5 writes to Type
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
2858Type = callbackPayloadType
Aspire.Hosting.RemoteHost (3)
AtsCapabilityScanner.cs (3)
2195Type = paramTypeRef, 2268Type = paramTypeRef 2289Type = paramTypeRef
Aspire.Hosting.RemoteHost.Tests (1)
AtsContextFilterTests.cs (1)
292Type = new AtsTypeRef
46 references to Type
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.cs (6)
177CollectHandleTypeIds(handleTypeIds, cbParam.Type); 1127sb.Append(MapTypeRefToGo(cps[i].Type, false)); 1549var goType = MapTypeRefToGo(cps[i].Type, false); 1568else if (p.CallbackParameters is { Count: > 0 } callbackParameters && callbackParameters.Any(cp => cp.Type.Category == AtsTypeCategory.Dto)) 1575var goType = MapTypeRefToGo(callbackParameters[i].Type, false); 1583if (callbackParameters[i].Type.Category == AtsTypeCategory.Dto)
Aspire.Hosting.CodeGeneration.Java (9)
AtsJavaCodeGenerator.cs (9)
1022if (!string.Equals(leftCallbackParameters[i].Type.TypeId, rightCallbackParameters[i].Type.TypeId, StringComparison.Ordinal)) 1897typeArguments.AddRange(callbackParameters.Select(parameter => MapCallbackTypeToJava(parameter.Type))); 1997if (callbackParameter.Type?.TypeId == AtsConstants.CancellationToken) 2002if (IsUnionType(callbackParameter.Type)) 2007return RenderJavaTransportValueConversion(callbackParameter.Type, argumentExpression, callbackParameter.Type?.IsNullable == true); 2355AddHandleTypeIfNeeded(handleTypeIds, callbackParam.Type); 2471AddListOrDictTypeIfNeeded(typeIds, callbackParam.Type);
Aspire.Hosting.CodeGeneration.Python (5)
AtsPythonCodeGenerator.cs (5)
744if (IsHandleType(cbParam.Type) && !dtoTypeIds.Contains(cbParam.Type.TypeId)) 746typeIds.Add(cbParam.Type.TypeId); 2142CollectFromTypeRef(cbParam.Type); 2625var paramTypes = parameters?.Select(p => MapTypeRefToPython(p.Type)).ToList() ?? [];
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
800AddHandleTypeIfNeeded(handleTypeIds, callbackParam.Type); 889AddListOrDictTypeIfNeeded(typeIds, callbackParam.Type);
Aspire.Hosting.CodeGeneration.TypeScript (10)
AtsTypeScriptCodeGenerator.cs (6)
1929var tsType = _projector.MapTypeRefToTypeScript(callbackParameter.Type); 1930var cbTypeId = callbackParameter.Type.TypeId; 1936else if (TypeScriptApiProjector.IsDictionaryType(callbackParameter.Type) && !callbackParameter.Type.IsReadOnly) 1938var keyType = _projector.MapTypeRefToTypeScript(callbackParameter.Type.KeyType); 1939var valueType = _projector.MapTypeRefToTypeScript(callbackParameter.Type.ValueType);
TypeScriptApiProjector.cs (4)
2275if (!string.Equals(aCallbackParams[i].Type.TypeId, bCallbackParams[i].Type.TypeId, StringComparison.Ordinal)) 2900CollectFromTypeRef(cbParam.Type); 3026var tsType = MapTypeRefToTypeScript(param.Type);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1625Assert.Equal(expectedTypes.Select(GetAtsTypeId), parameter.CallbackParameters.Select(p => p.Type?.TypeId)); 1957Assert.Equal(AtsConstants.CancellationToken, operationParam.CallbackParameters[0].Type?.TypeId);
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (4)
558CollectEnumClrTypes(cbParam.Type, enumTypes); 652ResolveTypeRef(cbParam.Type, validTypes); 672ResolveTypeRef(cbParam.Type, validTypes); 759result = FindUnknownType(cbParam.Type);
AtsContextFilter.cs (3)
265CollectReferencedType(callbackParameter.Type, handleTypesById, dtoTypesById, enumTypesById, includedHandleTypeIds, includedDtoTypeIds, includedEnumTypeIds); 370CollectHandleTypes(callbackParameter.Type); 492CollectReferencedType(callbackParameter.Type, handleTypesById, dtoTypesById, enumTypesById, includedHandleTypeIds, includedDtoTypeIds, includedEnumTypeIds);
CodeGeneration\CodeGenerationService.cs (1)
131Type = MapTypeRef(cp.Type),
Aspire.Hosting.RemoteHost.Tests (4)
AtsCapabilityScannerTests.cs (4)
393Assert.Equal(AtsTypeMapping.DeriveTypeId(typeof(HttpCommandPrepareRequestContext)), callbackParameter.Type.TypeId); 394Assert.Equal(AtsTypeCategory.Handle, callbackParameter.Type.Category); 539Assert.NotNull(cbParam.Type); 540Assert.NotEqual(AtsTypeCategory.Unknown, cbParam.Type.Category);