1 write to IsNullable
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
2607
IsNullable
= true,
14 references to IsNullable
Aspire.Hosting.CodeGeneration.Java (6)
AtsJavaCodeGenerator.cs (6)
1842
WriteLine($" return {RenderJavaTransportValueConversion(capability.ReturnType, "result", capability.ReturnType?.
IsNullable
== true)};");
2007
return RenderJavaTransportValueConversion(callbackParameter.Type, argumentExpression, callbackParameter.Type?.
IsNullable
== true);
2027
var allowNull = isOptional || typeRef.
IsNullable
== true;
2059
var allowNull = isOptional || typeRef.
IsNullable
== true;
2070
typeRef.ElementType?.
IsNullable
== true,
2133
typeRef.ElementType?.
IsNullable
== true,
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
237
if (typeRef.
IsNullable
!= true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum))
Aspire.Hosting.CodeGeneration.TypeScript (2)
AtsTypeScriptCodeGenerator.cs (1)
1525
IsNullable = callbackProperty.Type.
IsNullable
== true,
TypeScriptApiProjector.cs (1)
1706
if (typeRef.
IsNullable
!= true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum))
Aspire.Hosting.RemoteHost.Tests (5)
AtsCapabilityScannerTests.cs (5)
449
Assert.True(descriptionGetter.ReturnType.
IsNullable
);
470
Assert.True(nullableString.Type.
IsNullable
);
475
Assert.NotEqual(true, requiredString.Type.
IsNullable
);
480
Assert.True(nullableNumber.Type.
IsNullable
);
485
Assert.NotEqual(true, requiredNumber.Type.
IsNullable
);