private void cmdLogin_Click(object sender, RoutedEventArgs e) { Protocol.Login login = new Protocol.Login(); login.EMail = txtEMail.Text; login.Password = txtPassword.Password; mClient.Send(login); }
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); } }
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); } }
public void Login(EC.ISession session, Protocol.Login e) { mDispatchFactory.Route(CreateToken(e, session)); }