Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonObjectLoader"/> class.
 /// </summary>
 public JsonObjectLoader()
 {
     this.queryBuilder = new JsonQueryBuilder();
     this.deserializer = new JsonObjectDeserializer {
         AreCircularReferencesExpected = true
     };
     this.referenceResolver = new IdReferenceResolver();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonObjectLoader"/> class.
 /// </summary>
 /// <param name="queryBuilder">The query builder.</param>
 /// <param name="deserializer">The deserializer.</param>
 /// <param name="referenceResolver">The reference resolver.</param>
 public JsonObjectLoader(JsonQueryBuilder queryBuilder, JsonObjectDeserializer deserializer, IReferenceResolver referenceResolver)
 {
     this.queryBuilder      = queryBuilder;
     this.deserializer      = deserializer;
     this.referenceResolver = referenceResolver;
 }