GetLogicalTypeInfo() static private method

static private GetLogicalTypeInfo ( Type t, string filePath ) : LogicalTypeInfo
t System.Type
filePath string
return LogicalTypeInfo
Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public static string GetClientProxyScript(Type type, string path, bool debug)
 {
     return(LogicalTypeInfo.GetLogicalTypeInfo(type, path).Proxy);
 }
Esempio n. 3
0
 public ClientProxyHandler(Type type, string filePath)
 {
     _type            = type;
     _logicalTypeInfo = LogicalTypeInfo.GetLogicalTypeInfo(type, filePath);
 }