33 references to UnmarshalFromJson
Aspire.Hosting.RemoteHost (7)
Ats\AtsCallbackProxyFactory.cs (1)
291return (T?)_marshaller.UnmarshalFromJson(result, typeof(T), context);
Ats\AtsMarshaller.cs (4)
412return (TReferenceExpression?)marshaller.UnmarshalFromJson(node, typeToConvert, context); 655converted.SetValue(UnmarshalFromJson(array[i], elementType, elementContext), i); 676list.Add(UnmarshalFromJson(array[i], elementType, elementContext)); 705dict[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)
408var result = Assert.IsType<ContainerFilesOptions>(marshaller.UnmarshalFromJson(json, typeof(ContainerFilesOptions), context)); 420var result = marshaller.UnmarshalFromJson(null, typeof(string), context); 430var result = marshaller.UnmarshalFromJson(null, typeof(CancellationToken), context); 445var result = marshaller.UnmarshalFromJson(json, typeof(TestClass), context); 457marshaller.UnmarshalFromJson(json, typeof(object), context)); 466var result = marshaller.UnmarshalFromJson(json, typeof(int[]), context); 479var result = marshaller.UnmarshalFromJson(json, typeof(List<string>), context); 492var result = marshaller.UnmarshalFromJson(json, typeof(Dictionary<string, int>), context); 744var result = marshaller.UnmarshalFromJson(json, typeof(IList<int>), context); 757var result = marshaller.UnmarshalFromJson(json, typeof(IEnumerable<string>), context); 770var result = marshaller.UnmarshalFromJson(json, typeof(IDictionary<string, int>), context); 785marshaller.UnmarshalFromJson(json, typeof(TestClass), context)); 796var result = marshaller.UnmarshalFromJson(json, typeof(TestDto), context); 824var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithInitListProperties), context); 859var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context); 877var result = marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context); 909() => marshaller.UnmarshalFromJson(json, typeof(DtoWithTimeSpans), context)); 920var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 931var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 942var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum), context); 953var result = marshaller.UnmarshalFromJson(json, typeof(TestEnum?), context); 963var result = marshaller.UnmarshalFromJson(null, typeof(TestEnum?), context); 1424var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1465var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1507var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1547marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context));