34 references to UnmarshalFromJson
Aspire.Hosting.RemoteHost (8)
Ats\AtsCallbackProxyFactory.cs (1)
298return (T?)_marshaller.UnmarshalFromJson(result, typeof(T), context);
Ats\AtsMarshaller.cs (4)
375return (TReferenceExpression?)marshaller.UnmarshalFromJson(node, typeToConvert, context); 618converted.SetValue(UnmarshalFromJson(array[i], elementType, elementContext), i); 639list.Add(UnmarshalFromJson(array[i], elementType, elementContext)); 668dict[prop.Key] = UnmarshalFromJson(prop.Value, valueType, valueContext);
Ats\CapabilityDispatcher.cs (2)
801return _marshaller.UnmarshalFromJson(argNode, parameterType, context); 868var unmarshalledValue = _marshaller.UnmarshalFromJson(argNode, unionMemberType, context);
Ats\ExternalCapabilityRegistry.cs (1)
607.Select(parameter => (CancellationToken)marshaller.UnmarshalFromJson(
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); 1453var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1494var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1536var result = marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context); 1576marshaller.UnmarshalFromJson(json, typeof(ReferenceExpression), context));