Ejemplo n.º 1
0
 public void AddLink(Link link)
 {
     Links.Add(link);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Factory method, creating an appropriate Link instance based on the specified Uri
        /// </summary>
        public virtual Link GetLink(Uri uri, string relValue, HttpMethod httpMethod)
        {
            var link = new Link
            {
                Href = uri.AbsoluteUri,
                Rel = relValue,
                Method = httpMethod.Method
            };

            return link;
        }