private RestHandler(HttpContext context, Type type, string filePath)
{
LogicalTypeInfo logicalTypeInfo = LogicalTypeInfo.GetLogicalTypeInfo(type, filePath);
HttpRequest request = context.Request;
string methodName = request.PathInfo.Substring(1);
if (logicalTypeInfo == null || String.IsNullOrEmpty(methodName))
{
ThrowInvalidOperationException(methodName);
}
_logicalMethodInfo = logicalTypeInfo [methodName];
if (_logicalMethodInfo == null)
{
ThrowInvalidOperationException(methodName);
}
}