/// <summary> /// Asynchronously read a set of top-level entity reference links. /// </summary> /// <returns>Task which when completed returns an <see cref="ODataEntityReferenceLinks"/> representing the read links.</returns> internal override Task <ODataEntityReferenceLinks> ReadEntityReferenceLinksAsync() { this.AssertAsynchronous(); ODataJsonLightEntityReferenceLinkDeserializer jsonLightEntityReferenceLinkDeserializer = new ODataJsonLightEntityReferenceLinkDeserializer(this); return(jsonLightEntityReferenceLinkDeserializer.ReadEntityReferenceLinksAsync()); }
/// <summary> /// Reads a top-level entity reference link. /// </summary> /// <returns>An <see cref="ODataEntityReferenceLink"/> representing the read entity reference link.</returns> internal override ODataEntityReferenceLink ReadEntityReferenceLink() { this.AssertSynchronous(); this.VerifyCanReadEntityReferenceLink(); ODataJsonLightEntityReferenceLinkDeserializer jsonLightEntityReferenceLinkDeserializer = new ODataJsonLightEntityReferenceLinkDeserializer(this); return(jsonLightEntityReferenceLinkDeserializer.ReadEntityReferenceLink()); }