Пример #1
0
        static void Main(string[] args)
        {
            Type type = typeof(MsgPackClient).Assembly.GetType("q");
            Type[] aa = new Type[0];
            object obj = type.GetMethod("a", aa).Invoke(null, null);
            Console.WriteLine(obj);
            MsgPackClient client = new MsgPackClient("127.0.0.1");

            client.Receive += (o, e) => {
                Console.WriteLine(e.Message);
            };
            Protocol.Login login = new Protocol.Login();
            login.EMail = "*****@*****.**";
            login.Password = "******";
            client.Send(login);
            while (true)
            {
                System.Threading.Thread.Sleep(1);
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            Type type = typeof(MsgPackClient).Assembly.GetType("q");

            Type[] aa  = new Type[0];
            object obj = type.GetMethod("a", aa).Invoke(null, null);

            Console.WriteLine(obj);
            MsgPackClient client = new MsgPackClient("127.0.0.1");

            client.Receive += (o, e) => {
                Console.WriteLine(e.Message);
            };
            Protocol.Login login = new Protocol.Login();
            login.EMail    = "*****@*****.**";
            login.Password = "******";
            client.Send(login);
            while (true)
            {
                System.Threading.Thread.Sleep(1);
            }
        }