static private GetLogicalTypeInfo ( |
||
t | ||
filePath | string | |
return |
static internal LogicalTypeInfo GetLogicalTypeInfo (Type t, string filePath) {
Hashtable type_to_manager = _type_to_logical_type;
LogicalTypeInfo tm = (LogicalTypeInfo) type_to_manager [t];
if (tm != null)
return tm;
tm = CreateTypeInfo (t, filePath);
type_to_manager [t] = tm;
return tm;
}
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); } }