示例#1
0
        public AssemblyApi()
        {
            string assemblyName = @"ClientLib.dll";

            Assembly assembly = AssemblyHandler.LoadCSharpAssembly(assemblyName);

            mApi = AssemblyHandler.ActionAssembly(assembly, "ClientLib.GateServer");
            methods.Clear();
            MethodInfo meth = mApi.GetType().GetMethod("Init");

            methods.Add("Init", meth);
            meth = mApi.GetType().GetMethod("Exit");
            methods.Add("Exit", meth);
            meth = mApi.GetType().GetMethod("ReConnect");
            methods.Add("ReConnect", meth);
            meth = mApi.GetType().GetMethod("Process");
            methods.Add("Process", meth);
            meth = mApi.GetType().GetMethod("RouteInit");
            methods.Add("RouteInit", meth);
            meth = mApi.GetType().GetMethod("RouteGet");
            methods.Add("RouteGet", meth);
            meth = mApi.GetType().GetMethod("RouteSend");
            methods.Add("RouteSend", meth);
            //meth = mApi.GetType().GetMethod("Login_Request_MSG_CG_USER_LOGIN");
            //methods.Add("Login_Request_MSG_CG_USER_LOGIN", meth);
        }