318 references to AtsConstants
Aspire.Hosting.CodeGeneration.Go (37)
AtsGoCodeGenerator.cs (37)
137
if (dto.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
151
if (handleType.AtsTypeId ==
AtsConstants
.ReferenceExpressionTypeId
315
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId
536
if (dto.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
922
if (string.Equals(typeId,
AtsConstants
.BuilderTypeId, StringComparison.Ordinal))
924
var appInterface = _interfaceNames.TryGetValue(
AtsConstants
.ApplicationTypeId, out var appName)
1147
&& p.CallbackReturnType.TypeId !=
AtsConstants
.Void;
1164
var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId !=
AtsConstants
.Void;
1557
&& p.CallbackReturnType.TypeId !=
AtsConstants
.Void;
1908
var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId !=
AtsConstants
.Void;
1932
WriteLine("\tc.registerHandleWrapper(\"" +
AtsConstants
.ReferenceExpressionTypeId + "\", func(h *handle, c *client) any {");
1950
var builderTypeId =
AtsConstants
.BuilderTypeId;
1957
var appTypeId =
AtsConstants
.ApplicationTypeId;
2007
WriteLine($"\tresult, err := b.client.invokeCapability(context.Background(), \"{
AtsConstants
.BuildCapability}\", map[string]any{{");
2065
WriteLine($"\tresult, err := c.invokeCapability(context.Background(), \"{
AtsConstants
.CreateBuilderCapability}\", map[string]any{{\"argsOrOptions\": resolved}})");
2098
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
2136
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
2166
&& typeRef.TypeId is not (
AtsConstants
.Void or
AtsConstants
.Any or
AtsConstants
.CancellationToken);
2189
AtsConstants
.String or
AtsConstants
.Char => "string",
2190
AtsConstants
.Number => "float64",
2191
AtsConstants
.Boolean => "bool",
2192
AtsConstants
.Void => "",
2193
AtsConstants
.Any => "any",
2194
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
2195
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly => "string",
2196
AtsConstants
.TimeSpan => "float64",
2197
AtsConstants
.Guid or
AtsConstants
.Uri => "string",
2198
AtsConstants
.CancellationToken => "*CancellationToken",
2208
string.Equals(capabilityId,
AtsConstants
.BuildCapability, StringComparison.Ordinal)
2209
|| string.Equals(capabilityId,
AtsConstants
.CreateBuilderCapability, StringComparison.Ordinal);
2215
string.Equals(typeId,
AtsConstants
.CancellationToken, StringComparison.Ordinal)
Aspire.Hosting.CodeGeneration.Java (41)
AtsJavaCodeGenerator.cs (41)
732
if (dto.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
1336
var builderClassName = _classNames.TryGetValue(
AtsConstants
.BuilderTypeId, out var name)
1894
var hasReturn = capability.ReturnType?.TypeId !=
AtsConstants
.Void;
1909
var hasReturnType = callbackReturnType != null && callbackReturnType.TypeId !=
AtsConstants
.Void;
1943
var hasReturnType = callbackParam.CallbackReturnType != null && callbackParam.CallbackReturnType.TypeId !=
AtsConstants
.Void;
1999
var hasReturnType = property.CallbackReturnType != null && property.CallbackReturnType.TypeId !=
AtsConstants
.Void;
2029
if (callbackParameter.Type?.TypeId ==
AtsConstants
.CancellationToken)
2049
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
2171
AtsConstants
.String or
AtsConstants
.Char or
2172
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
2173
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly or
2174
AtsConstants
.Guid or
AtsConstants
.Uri => $"(String) {valueExpression}",
2175
AtsConstants
.Number or
AtsConstants
.TimeSpan => $"((Number) {valueExpression}).doubleValue()",
2176
AtsConstants
.Boolean => $"(Boolean) {valueExpression}",
2177
AtsConstants
.Void => "null",
2228
if (typeRef.TypeId ==
AtsConstants
.CancellationToken)
2338
var builderClassName = _classNames.TryGetValue(
AtsConstants
.BuilderTypeId, out var name)
2417
if (handleType.AtsTypeId ==
AtsConstants
.ReferenceExpressionTypeId
2568
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
2600
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
2658
AtsConstants
.String or
AtsConstants
.Char => "String",
2667
AtsConstants
.Number => useBoxedTypes ? "Number" : "double",
2668
AtsConstants
.Boolean => useBoxedTypes ? "Boolean" : "boolean",
2669
AtsConstants
.Void => "void",
2670
AtsConstants
.Any => "Object",
2671
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
2672
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly => "String",
2673
AtsConstants
.TimeSpan => useBoxedTypes ? "Number" : "double",
2674
AtsConstants
.Guid or
AtsConstants
.Uri => "String",
2675
AtsConstants
.CancellationToken => "CancellationToken",
2685
string.Equals(typeId,
AtsConstants
.CancellationToken, StringComparison.Ordinal)
2696
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId
Aspire.Hosting.CodeGeneration.Java.Tests (17)
AtsJavaCodeGeneratorTests.cs (17)
2776
var stringType = new AtsTypeRef { TypeId =
AtsConstants
.String, Category = AtsTypeCategory.Primitive };
2785
CallbackReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive }
2792
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive },
2817
Type = new AtsTypeRef { TypeId =
AtsConstants
.CancellationToken, Category = AtsTypeCategory.Dto }
2824
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive },
2859
TypeId =
AtsConstants
.Number,
2893
new AtsTypeRef { TypeId =
AtsConstants
.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }),
2897
new AtsTypeRef { TypeId =
AtsConstants
.Number, Category = AtsTypeCategory.Primitive, IsNullable = true }));
3018
TypeId =
AtsConstants
.Number,
3024
TypeId =
AtsConstants
.Boolean,
3056
CallbackReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive }
3063
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive },
3287
Type = new AtsTypeRef { TypeId =
AtsConstants
.String, Category = AtsTypeCategory.Primitive }
3308
TypeId =
AtsConstants
.Void,
3373
CallbackReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive }
3380
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive },
3402
Type = new AtsTypeRef { TypeId =
AtsConstants
.String, Category = AtsTypeCategory.Primitive }
Aspire.Hosting.CodeGeneration.Python (24)
AtsPythonCodeGenerator.cs (24)
148
AtsConstants
.ReferenceExpressionTypeId,
247
&& typeRef.TypeId is not (
AtsConstants
.Void or
AtsConstants
.Any or
AtsConstants
.CancellationToken);
254
AtsConstants
.String or
AtsConstants
.Char => "str",
255
AtsConstants
.Number => "int",
256
AtsConstants
.Boolean => "bool",
257
AtsConstants
.Void => "None",
258
AtsConstants
.Any => "typing.Any",
259
AtsConstants
.DateTime => "datetime.datetime",
260
AtsConstants
.DateTimeOffset => "datetime.datetime",
261
AtsConstants
.DateOnly => "datetime.date",
262
AtsConstants
.TimeOnly => "datetime.time",
263
AtsConstants
.TimeSpan => "float",
264
AtsConstants
.Guid or
AtsConstants
.Uri => "str",
265
AtsConstants
.CancellationToken => "CancellationToken",
275
if (param.Type?.TypeId ==
AtsConstants
.CancellationToken)
288
if (param.Type?.TypeId ==
AtsConstants
.CancellationToken)
454
filtered = filtered.Where(p => p.Type?.TypeId !=
AtsConstants
.CancellationToken);
466
if (param.Type?.TypeId ==
AtsConstants
.CancellationToken)
528
if (typeRef.Category == AtsTypeCategory.Primitive && typeRef.TypeId ==
AtsConstants
.Void)
661
if (param.Type?.TypeId ==
AtsConstants
.CancellationToken)
Aspire.Hosting.CodeGeneration.Python.Tests (9)
AtsPythonCodeGeneratorTests.cs (9)
523
TypeId =
AtsConstants
.String,
579
TypeId =
AtsConstants
.String,
653
TypeId =
AtsConstants
.Void,
705
TypeId =
AtsConstants
.Number,
713
TypeId =
AtsConstants
.String,
752
TypeId =
AtsConstants
.Number,
762
TypeId =
AtsConstants
.Void,
798
TypeId =
AtsConstants
.String,
804
TypeId =
AtsConstants
.Boolean,
Aspire.Hosting.CodeGeneration.Rust (43)
AtsRustCodeGenerator.cs (43)
207
if (dto.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
375
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId
472
var hasReturn = capability.ReturnType.TypeId !=
AtsConstants
.Void;
609
else if (returnTypeRef?.TypeId ==
AtsConstants
.CancellationToken)
713
var builderStructName = _structNames.TryGetValue(
AtsConstants
.BuilderTypeId, out var name)
781
if (handleType.AtsTypeId ==
AtsConstants
.ReferenceExpressionTypeId
905
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
943
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
983
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
1013
AtsConstants
.String or
AtsConstants
.Char => "String",
1014
AtsConstants
.Number => "f64",
1015
AtsConstants
.Boolean => "bool",
1016
AtsConstants
.Void => "()",
1017
AtsConstants
.Any => "Value",
1018
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
1019
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly => "String",
1020
AtsConstants
.TimeSpan => "f64",
1021
AtsConstants
.Guid or
AtsConstants
.Uri => "String",
1022
AtsConstants
.CancellationToken => "CancellationToken",
1039
AtsConstants
.String or
AtsConstants
.Char => "&str",
1040
AtsConstants
.Number => "f64",
1041
AtsConstants
.Boolean => "bool",
1042
AtsConstants
.Void => "()",
1043
AtsConstants
.Any => "&Value",
1044
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
1045
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly => "&str",
1046
AtsConstants
.TimeSpan => "f64",
1047
AtsConstants
.Guid or
AtsConstants
.Uri => "&str",
1048
AtsConstants
.CancellationToken => "&CancellationToken",
1062
&& typeRef.TypeId is not (
AtsConstants
.Void or
AtsConstants
.Any or
AtsConstants
.CancellationToken);
1066
&& typeRef.TypeId !=
AtsConstants
.ReferenceExpressionTypeId
1084
string.Equals(typeId,
AtsConstants
.CancellationToken, StringComparison.Ordinal)
1095
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId
Aspire.Hosting.CodeGeneration.TypeScript (36)
AtsTypeScriptCodeGenerator.cs (14)
134
capability.ReturnType.TypeId ==
AtsConstants
.Void ? null : capability.Documentation?.Returns,
135
suppressReturns: capability.ReturnType.TypeId ==
AtsConstants
.Void,
926
var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId ==
AtsConstants
.Void;
1203
if (capability.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
1787
else if (capability.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
1865
&& callbackParam.CallbackReturnType.TypeId !=
AtsConstants
.Void;
1902
if (cbTypeId ==
AtsConstants
.CancellationToken)
1929
var builderHandle = TypeScriptApiProjector.GetHandleTypeName(
AtsConstants
.BuilderTypeId);
2253
if (getter.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
2333
if (getter.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
2682
else if (method.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
2870
var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId ==
AtsConstants
.Void;
3012
if (capability.ReturnType?.TypeId ==
AtsConstants
.CancellationToken)
3077
var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId ==
AtsConstants
.Void;
TypeScriptApiProjector.cs (22)
424
if (capability.ReturnType is null || capability.ReturnType.TypeId ==
AtsConstants
.Void)
1663
if (typeRef.TypeId ==
AtsConstants
.ReferenceExpressionTypeId)
1715
return typeRef.TypeId is
AtsConstants
.Void or
AtsConstants
.Any or
AtsConstants
.CancellationToken
1764
AtsConstants
.String or
AtsConstants
.Char => "string",
1765
AtsConstants
.Number => "number",
1766
AtsConstants
.Boolean => "boolean",
1767
AtsConstants
.Void => "void",
1768
AtsConstants
.Any => "any",
1769
AtsConstants
.DateTime or
AtsConstants
.DateTimeOffset or
1770
AtsConstants
.DateOnly or
AtsConstants
.TimeOnly => "string",
1771
AtsConstants
.TimeSpan => "number",
1772
AtsConstants
.Guid or
AtsConstants
.Uri => "string",
1773
AtsConstants
.CancellationToken => GetCancellationTokenInterfaceName(),
2011
internal static bool IsCancellationTokenType(AtsTypeRef? typeRef) => typeRef?.TypeId ==
AtsConstants
.CancellationToken;
2674
if (targetTypeId is
AtsConstants
.ReferenceExpressionTypeId or InteractionInputCollectionTypeId)
3112
var returnType = callbackReturnType == null || callbackReturnType.TypeId ==
AtsConstants
.Void
Aspire.Hosting.CodeGeneration.TypeScript.Tests (20)
AtsTypeScriptCodeGeneratorTests.cs (20)
280
TypeId =
AtsConstants
.String,
889
TypeId =
AtsConstants
.Number,
895
TypeId = $"{
AtsConstants
.Number}[]",
989
TypeId =
AtsConstants
.Number,
997
KeyType = new AtsTypeRef { TypeId =
AtsConstants
.String, Category = AtsTypeCategory.Primitive },
1849
TypeId =
AtsConstants
.Void,
1874
TypeId =
AtsConstants
.Void,
2159
c.TargetTypeId ==
AtsConstants
.ReferenceExpressionTypeId);
2251
Assert.Equal(
AtsConstants
.CancellationToken, ctParam.Type.TypeId);
2286
Assert.Equal(
AtsConstants
.CancellationToken, operationParam.CallbackParameters[0].Type?.TypeId);
2305
Assert.Equal(
AtsConstants
.TimeSpan, timeoutParam.Type?.TypeId);
2309
Assert.Equal(
AtsConstants
.CancellationToken, ctParam.Type?.TypeId);
2838
TypeId =
AtsConstants
.String,
2843
TypeId =
AtsConstants
.Void,
3147
TypeId =
AtsConstants
.Void,
3280
TypeId =
AtsConstants
.Void,
3287
TypeId =
AtsConstants
.Void,
3314
TypeId =
AtsConstants
.String,
3323
TypeId =
AtsConstants
.Number,
3331
TypeId =
AtsConstants
.Void,
Aspire.Hosting.RemoteHost (55)
Ats\AtsMarshaller.cs (2)
144
if (typeRef.TypeId ==
AtsConstants
.CancellationToken && value is CancellationToken cancellationToken)
150
if (typeRef.TypeId == TypeSystem.
AtsConstants
.Any)
Ats\ExternalCapabilityRegistry.cs (2)
606
.Where(parameter => parameter.Type?.TypeId ==
AtsConstants
.CancellationToken)
760
$"Integration capability '{capability.Id}' must declare returnType; use '{
AtsConstants
.Void}' for a void method.");
AtsCapabilityScanner.cs (50)
98
var typeId =
AtsConstants
.EnumTypeId(fullName);
1386
AtsTypeCategory.Primitive => typeRef.TypeId !=
AtsConstants
.CancellationToken && typeRef.TypeId !=
AtsConstants
.Void,
1691
: new AtsTypeRef { TypeId =
AtsConstants
.Any, Category = AtsTypeCategory.Primitive };
1695
TypeId =
AtsConstants
.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
1718
propertyTypeRef = new AtsTypeRef { TypeId =
AtsConstants
.Any, Category = AtsTypeCategory.Primitive };
2288
returnTypeRef = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive };
2292
returnTypeRef = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive };
2300
?? new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive }
2301
: new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive };
2306
?? new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive }
2334
var voidTypeRef = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive };
2452
if (
AtsConstants
.IsPrimitiveType(type))
2460
return
AtsConstants
.Any;
2465
return
AtsConstants
.DictTypeId(
AtsConstants
.String,
AtsConstants
.Any);
2470
return
AtsConstants
.ListTypeId(
AtsConstants
.Any);
2476
return
AtsConstants
.EnumTypeId(type.FullName ?? type.Name);
2498
return
AtsConstants
.DictTypeId(keyTypeName, valueTypeName);
2514
return
AtsConstants
.ListTypeId(elementTypeName);
2585
return
AtsConstants
.String;
2589
return
AtsConstants
.Char;
2593
return
AtsConstants
.Boolean;
2602
return
AtsConstants
.Number;
2608
return
AtsConstants
.DateTime;
2612
return
AtsConstants
.DateTimeOffset;
2616
return
AtsConstants
.DateOnly;
2620
return
AtsConstants
.TimeOnly;
2624
return
AtsConstants
.TimeSpan;
2630
return
AtsConstants
.Guid;
2634
return
AtsConstants
.Uri;
2638
return
AtsConstants
.CancellationToken;
2669
TypeId =
AtsConstants
.Void,
2770
return new AtsTypeRef { TypeId =
AtsConstants
.Any, ClrType = type, Category = AtsTypeCategory.Primitive };
2777
TypeId =
AtsConstants
.DictTypeId(
AtsConstants
.String,
AtsConstants
.Any),
2780
KeyType = new AtsTypeRef { TypeId =
AtsConstants
.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive },
2781
ValueType = new AtsTypeRef { TypeId =
AtsConstants
.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive },
2790
TypeId =
AtsConstants
.ListTypeId(
AtsConstants
.Any),
2793
ElementType = new AtsTypeRef { TypeId =
AtsConstants
.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }
2805
TypeId =
AtsConstants
.EnumTypeId(type.FullName ?? type.Name),
2828
TypeId =
AtsConstants
.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
2851
TypeId =
AtsConstants
.DictTypeId(keyTypeRef.TypeId, valueTypeRef.TypeId),
2873
TypeId =
AtsConstants
.ListTypeId(elementTypeRef.TypeId),
2893
TypeId =
AtsConstants
.ArrayTypeId(elementTypeRef.TypeId),
2938
TypeId =
AtsConstants
.ArrayTypeId(elementTypeRef.TypeId),
AtsContextFilter.cs (1)
344
TypeId =
AtsConstants
.Void,
Aspire.Hosting.RemoteHost.Tests (34)
AtsCapabilityScannerTests.cs (9)
170
[InlineData(typeof(double?[]),
AtsConstants
.Number)]
171
[InlineData(typeof(bool?[]),
AtsConstants
.Boolean)]
194
Assert.Contains(parameter.Type.UnionTypes!, type => type.TypeId ==
AtsConstants
.String);
491
Assert.Equal(
AtsConstants
.String, nameGetter.ReturnType.TypeId);
496
Assert.Equal(
AtsConstants
.String, descriptionGetter.ReturnType.TypeId);
517
Assert.Equal(
AtsConstants
.String, nullableString.Type.TypeId);
522
Assert.Equal(
AtsConstants
.String, requiredString.Type.TypeId);
527
Assert.Equal(
AtsConstants
.Number, nullableNumber.Type.TypeId);
532
Assert.Equal(
AtsConstants
.Number, requiredNumber.Type.TypeId);
AtsContextFilterTests.cs (11)
136
type => Assert.Equal(
AtsConstants
.EnumTypeId(typeof(TestMode).FullName!), type.TypeId));
163
Assert.Contains(filteredContext.EnumTypes, type => type.TypeId ==
AtsConstants
.EnumTypeId(typeof(DistributedApplicationOperation).FullName!));
164
Assert.Contains(filteredContext.EnumTypes, type => type.TypeId ==
AtsConstants
.EnumTypeId("Aspire.TypeSystem.ExportedValueMode"));
231
Assert.Equal(
AtsConstants
.Void, filteredSupport.ReturnType.TypeId);
248
TypeId =
AtsConstants
.EnumTypeId("Some.Foreign.Dependency.ForeignMode"),
256
TypeId =
AtsConstants
.EnumTypeId("Some.Foreign.Dependency.ForeignCallbackMode"),
285
Type = new AtsTypeRef { TypeId =
AtsConstants
.Void, Category = AtsTypeCategory.Primitive },
434
TypeId =
AtsConstants
.EnumTypeId(typeof(TestMode).FullName!),
453
TypeId =
AtsConstants
.EnumTypeId(typeof(TestMode).FullName!),
461
TypeId =
AtsConstants
.EnumTypeId("Aspire.TypeSystem.ExportedValueMode"),
469
TypeId =
AtsConstants
.EnumTypeId(typeof(DistributedApplicationOperation).FullName!),
AtsMarshallerTests.cs (10)
175
new AtsTypeRef { TypeId =
AtsConstants
.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive },
176
new AtsTypeRef { TypeId =
AtsConstants
.Number, ClrType = typeof(int), Category = AtsTypeCategory.Primitive },
177
new AtsTypeRef { TypeId =
AtsConstants
.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive }
198
new AtsTypeRef { TypeId =
AtsConstants
.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive },
220
new AtsTypeRef { TypeId =
AtsConstants
.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive },
221
new AtsTypeRef { TypeId =
AtsConstants
.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive }
293
TypeId =
AtsConstants
.CancellationToken,
1394
var conditionHandleId = registry.Register(condition,
AtsConstants
.ReferenceExpressionTypeId);
1436
var conditionHandleId = registry.Register(condition,
AtsConstants
.ReferenceExpressionTypeId);
1478
var conditionHandleId = registry.Register(condition,
AtsConstants
.ReferenceExpressionTypeId);
ExternalCapabilityRegistryTests.cs (3)
894
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Boolean, Category = AtsTypeCategory.Primitive }
920
ReturnType = new AtsTypeRef { TypeId =
AtsConstants
.Boolean, Category = AtsTypeCategory.Primitive }
964
Type = new AtsTypeRef { TypeId =
AtsConstants
.String, Category = AtsTypeCategory.Primitive },
HandleRegistryTests.cs (1)
350
var typeId =
AtsConstants
.ReferenceExpressionTypeId;
Aspire.TypeSystem (2)
AtsCapabilityInfo.cs (1)
314
/// Use <see cref="
AtsConstants
.Void"/> TypeId for void return types.
AtsContext.cs (1)
110
if (
AtsConstants
.IsPrimitiveType(type))