public override bool CanMatch(UrlPart other,RequestContext context) { if (other is FixedStringUrlPart) { return ((FixedStringUrlPart) other)._urlChunk.Equals(_urlChunk, StringComparison.InvariantCultureIgnoreCase); } else { return false; } }
public override bool CanMatch(UrlPart other,RequestContext context) { if (other is FixedStringUrlPart) { context.AddParameter(_paramName, other.Value); return true; } else if (other is VariableUrlPart) { return ((VariableUrlPart) other)._paramName.Equals(_paramName, StringComparison.InvariantCultureIgnoreCase); } else { return false; } }
public virtual bool CanMatch(UrlPart other,RequestContext context) { return true; }