/// <summary> /// Adds the specified paths to the <see cref="Uri"/>. /// </summary> /// <param name="segments">The path segments to add to the <see cref="Uri"/>.</param> public UriFormatter AppendPath(IEnumerable <UriPathSegment> segments) { CheckParsePath(); InternalPathSegments.AddRange(segments); LinkSegment(segments); RequiresRebuildPath = true; return(this); }
/// <summary> /// Adds the specified paths to the <see cref="Uri"/>. /// </summary> /// <param name="segment">The path segment to add to the <see cref="Uri"/>.</param> public UriFormatter AppendPath(UriPathSegment segment) { CheckParsePath(); InternalPathSegments.Add(segment); LinkSegment(segment); RequiresRebuildPath = true; return(this); }
/// <summary> /// Sets the path for the <see cref="Uri"/>. /// </summary> /// <param name="segments">The path segments for the <see cref="Uri"/>.</param> public UriFormatter SetPath(IEnumerable <UriPathSegment> segments) { Guard.ArgumentNotNull(segments, "segments"); CheckParsePath(); InternalPathSegments.Clear(); AddPathSegments(segments); _requiresParsePath = false; RequiresRebuildPath = true; return(this); }