/// <summary> /// Creates an instance of <see cref="HalDocumentBuilder"/>. /// </summary> /// <param name="resource">The hypermedia aware resource upon which to build the HAL document.</param> public HalDocumentBuilder(IHalResource resource) { if (resource == null) { throw new ArgumentNullException("resource"); } _resource = resource; _linkCollection = new HalLinkCollection(); _embeddedResourceCollection = new HalEmbeddedResourceCollection(); }
/// <summary> /// Creates an instance of <see cref="HalDocumentBuilder"/>. /// </summary> /// <param name="resource">The hypermedia aware resource upon which to build the HAL document.</param> public HalDocumentBuilder(IHalResource resource) { if (resource == null) { throw new ArgumentNullException("resource"); } _resource = resource; _linkCollection = new HalLinkCollection(); _embeddedResourceCollection = new HalEmbeddedResourceCollection(); }
/// <summary> /// Creates an instance of <see cref="HalDocument"/>. /// </summary> /// <param name="resource">The hypermedia aware resource.</param> /// <param name="linkCollection">A collection of hypermedia links.</param> /// <param name="embeddedResourceCollection">A collection of embedded resources.</param> internal HalDocument(IHalResource resource, HalLinkCollection linkCollection, HalEmbeddedResourceCollection embeddedResourceCollection) : this(resource, linkCollection) { _embeddedResourceCollection = embeddedResourceCollection; }
/// <summary> /// Creates an instance of <see cref="HalDocument"/>. /// </summary> /// <param name="resource">The hypermedia aware resource.</param> /// <param name="linkCollection">A collection of hypermedia links.</param> /// <param name="embeddedResourceCollection">A collection of embedded resources.</param> internal HalDocument(IHalResource resource, HalLinkCollection linkCollection, HalEmbeddedResourceCollection embeddedResourceCollection) : this(resource, linkCollection) { _embeddedResourceCollection = embeddedResourceCollection; }