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)
392
return (TReferenceExpression?)marshaller.
UnmarshalFromJson
(node, typeToConvert, context);
635
converted.SetValue(
UnmarshalFromJson
(array[i], elementType, elementContext), i);
656
list.Add(
UnmarshalFromJson
(array[i], elementType, elementContext));
685
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)
340
var result = Assert.IsType<ContainerFilesOptions>(marshaller.
UnmarshalFromJson
(json, typeof(ContainerFilesOptions), context));
352
var result = marshaller.
UnmarshalFromJson
(null, typeof(string), context);
362
var result = marshaller.
UnmarshalFromJson
(null, typeof(CancellationToken), context);
377
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestClass), context);
389
marshaller.
UnmarshalFromJson
(json, typeof(object), context));
398
var result = marshaller.
UnmarshalFromJson
(json, typeof(int[]), context);
411
var result = marshaller.
UnmarshalFromJson
(json, typeof(List<string>), context);
424
var result = marshaller.
UnmarshalFromJson
(json, typeof(Dictionary<string, int>), context);
676
var result = marshaller.
UnmarshalFromJson
(json, typeof(IList<int>), context);
689
var result = marshaller.
UnmarshalFromJson
(json, typeof(IEnumerable<string>), context);
702
var result = marshaller.
UnmarshalFromJson
(json, typeof(IDictionary<string, int>), context);
717
marshaller.
UnmarshalFromJson
(json, typeof(TestClass), context));
728
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestDto), context);
756
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithInitListProperties), context);
791
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context);
809
var result = marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context);
841
() => marshaller.
UnmarshalFromJson
(json, typeof(DtoWithTimeSpans), context));
852
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
863
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
874
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum), context);
885
var result = marshaller.
UnmarshalFromJson
(json, typeof(TestEnum?), context);
895
var result = marshaller.
UnmarshalFromJson
(null, typeof(TestEnum?), context);
1356
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1397
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1439
var result = marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context);
1479
marshaller.
UnmarshalFromJson
(json, typeof(ReferenceExpression), context));