public RouteAction Match(HttpMethod method, PathNodeType nodeType, TypeSpec resourceType)
{
switch (nodeType)
{
case PathNodeType.Collection:
return MatchCollectionNodeRequest(method, (ResourceType)resourceType);
case PathNodeType.Resource:
if (!MethodInfo.Name.StartsWith(method.ToString()))
return null;
return MatchResourceNodeRequest(method, (ResourceType)resourceType);
}
return null;
}