GetLogicalTypeInfo() static private method

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