33 references to UnmarshalFromJson
Aspire.Hosting.RemoteHost (7)
Ats\AtsCallbackProxyFactory.cs (1)
291
return (T?)_marshaller.
UnmarshalFromJson
(result, typeof(T), context);
Ats\AtsMarshaller.cs (4)
412
return (TReferenceExpression?)marshaller.
UnmarshalFromJson
(node, typeToConvert, context);
655
converted.SetValue(
UnmarshalFromJson
(array[i], elementType, elementContext), i);
676
list.Add(
UnmarshalFromJson
(array[i], elementType, elementContext));
705
dict[prop.Key] =
UnmarshalFromJson
(prop.Value, valueType, valueContext);
Ats\CapabilityDispatcher.cs (2)
774
return _marshaller.
UnmarshalFromJson
(argNode, parameterType, context);
841
var unmarshalledValue = _marshaller.
UnmarshalFromJson
(argNode, unionMemberType, context);
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);
1424
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1465
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1507
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1547
marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context));