/// <summary> /// Adds a rule to the catalog which perform URI rewriting. /// </summary> /// <param name="startString">The prefix string to match with.</param> /// <param name="rewritePrefix">The string to replace matches with.</param> /// <returns>The constructed <see cref="RewriteUriEntry"/> instance.</returns> public RewriteUriEntry AddRewriteUri(String startString, String rewritePrefix) { RewriteUriEntry result = new RewriteUriEntry(this, startString, rewritePrefix); rules.Add(result); return(result); }
/// <summary> /// Adds a rule to the catalog which perform URI rewriting. /// </summary> /// <param name="startString">The prefix string to match with.</param> /// <param name="rewritePrefix">The string to replace matches with.</param> /// <returns>The constructed <see cref="RewriteUriEntry"/> instance.</returns> public RewriteUriEntry AddRewriteUri(String startString, String rewritePrefix) { RewriteUriEntry result = new RewriteUriEntry (this, startString, rewritePrefix); rules.Add (result); return (result); }