34 references to UnmarshalFromJson
Aspire.Hosting.RemoteHost (8)
Ats\AtsCallbackProxyFactory.cs (1)
298
return (T?)_marshaller.
UnmarshalFromJson
(result, typeof(T), context);
Ats\AtsMarshaller.cs (4)
375
return (TReferenceExpression?)marshaller.
UnmarshalFromJson
(node, typeToConvert, context);
618
converted.SetValue(
UnmarshalFromJson
(array[i], elementType, elementContext), i);
639
list.Add(
UnmarshalFromJson
(array[i], elementType, elementContext));
668
dict[prop.Key] =
UnmarshalFromJson
(prop.Value, valueType, valueContext);
Ats\CapabilityDispatcher.cs (2)
801
return _marshaller.
UnmarshalFromJson
(argNode, parameterType, context);
868
var unmarshalledValue = _marshaller.
UnmarshalFromJson
(argNode, unionMemberType, context);
Ats\ExternalCapabilityRegistry.cs (1)
607
.Select(parameter => (CancellationToken)marshaller.
UnmarshalFromJson
(
Aspire.Hosting.RemoteHost.Tests (26)
AtsMarshallerTests.cs (26)
408
var result = Assert.IsType<ContainerFilesOptions>(marshaller.
UnmarshalFromJson
(json, typeof(ContainerFilesOptions), context));
420
var result = marshaller.
UnmarshalFromJson
(null, typeof(string), context);
430
var result = marshaller.
UnmarshalFromJson
(null, typeof(CancellationToken), context);
445
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestClass), context);
457
marshaller.
UnmarshalFromJson
(json, typeof(object), context));
466
var result = marshaller.
UnmarshalFromJson
(json, typeof(int[]), context);
479
var result = marshaller.
UnmarshalFromJson
(json, typeof(List<string>), context);
492
var result = marshaller.
UnmarshalFromJson
(json, typeof(Dictionary<string, int>), context);
744
var result = marshaller.
UnmarshalFromJson
(json, typeof(IList<int>), context);
757
var result = marshaller.
UnmarshalFromJson
(json, typeof(IEnumerable<string>), context);
770
var result = marshaller.
UnmarshalFromJson
(json, typeof(IDictionary<string, int>), context);
785
marshaller.
UnmarshalFromJson
(json, typeof(TestClass), context));
796
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestDto), context);
824
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithInitListProperties), context);
859
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context);
877
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context);
909
() => marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context));
920
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
931
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
942
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
953
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum?), context);
963
var result = marshaller.
UnmarshalFromJson
(null, typeof(TestEnum?), context);
1453
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1494
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1536
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1576
marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context));