33 references to UnmarshalFromJson
Aspire.Hosting.RemoteHost (7)
Ats\AtsCallbackProxyFactory.cs (1)
291return (T?)_marshaller.UnmarshalFromJson(result, typeof(T), context);
Ats\AtsMarshaller.cs (4)
392return (TReferenceExpression?)marshaller.UnmarshalFromJson(node, typeToConvert, context); 635converted.SetValue(UnmarshalFromJson(array[i], elementType, elementContext), i); 656list.Add(UnmarshalFromJson(array[i], elementType, elementContext)); 685dict[prop.Key] = UnmarshalFromJson(prop.Value, valueType, valueContext);
Ats\CapabilityDispatcher.cs (2)
774return _marshaller.UnmarshalFromJson(argNode, parameterType, context); 841var unmarshalledValue = _marshaller.UnmarshalFromJson(argNode, unionMemberType, context);
Aspire.Hosting.RemoteHost.Tests (26)
AtsMarshallerTests.cs (26)
340var result = Assert.IsType<ContainerFilesOptions>(marshaller.UnmarshalFromJson(json, typeof(ContainerFilesOptions), context)); 352var result = marshaller.UnmarshalFromJson(null, typeof(string), context); 362var result = marshaller.UnmarshalFromJson(null, typeof(CancellationToken), context); 377var result = marshaller.UnmarshalFromJson(json, typeof(TestClass), context); 389marshaller.UnmarshalFromJson(json, typeof(object), context)); 398var result = marshaller.UnmarshalFromJson(json, typeof(int[]), context); 411var result = marshaller.UnmarshalFromJson(json, typeof(List<string>), context); 424var result = marshaller.UnmarshalFromJson(json, typeof(Dictionary<string, int>), context); 676var result = marshaller.UnmarshalFromJson(json, typeof(IList<int>), context); 689var result = marshaller.UnmarshalFromJson(json, typeof(IEnumerable<string>), context); 702var result = marshaller.UnmarshalFromJson(json, typeof(IDictionary<string, int>), context); 717marshaller.UnmarshalFromJson(json, typeof(TestClass), context)); 728var result = marshaller.UnmarshalFromJson(json, typeof(TestDto), context); 756var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithInitListProperties), context); 791var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context); 809var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context); 841() => marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context)); 852var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 863var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 874var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 885var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum?), context); 895var result = marshaller.UnmarshalFromJson(null, typeof(TestEnum?), context); 1356var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1397var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1439var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1479marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context));