Beispiel #1
0
        public void StartClient()
        {
            Start();
            model.Header h = new model.Header();
            h.Method = "LOGIN";
            h.Source = "CLIENT";
            h.Status = model.Status.Login.REQUEST.ToString();
            model.Login l = new model.Login();
            l.UserName = "******";
            l.Password = "******";
            h.Body     = l;
            var json = JsonConvert.SerializeObject(h);

            Send(string.Format("{0}", json));
            CloseClient();
        }
        public void StartClient()
        {
            Start();
            model.Header h = new model.Header();
            h.Method = "LOGIN";
            h.Source = "CLIENT";
            h.Status = model.Status.Login.REQUEST.ToString();
            model.Login l = new model.Login();
            l.UserName = "******";
            l.Password = "******";
            h.Body = l;
            var json = JsonConvert.SerializeObject(h);

            Send(string.Format("{0}", json));
            CloseClient();
        }