Ejemplo n.º 1
0
 public override bool CanMatch(UrlPart other,RequestContext context)
 {
     if (other is FixedStringUrlPart)
     {
         return ((FixedStringUrlPart) other)._urlChunk.Equals(_urlChunk, StringComparison.InvariantCultureIgnoreCase);
     }
     else
     {
         return false;
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 public virtual bool CanMatch(UrlPart other,RequestContext context)
 {
     return true;
 }