private void button1_Click(object sender, EventArgs e)
        {
            OnlineUsersQueryRequest info = new OnlineUsersQueryRequest();
            var data = ESHelper.Pack(ref info);

            this.SendMessage(data);
        }
        private void button2_Click(object sender, EventArgs e)
        {
            P_CMD_Request           req  = new P_CMD_Request();
            OnlineUsersQueryRequest info = new OnlineUsersQueryRequest();
            var          data            = ESHelper.Pack(ref req, 1);
            BytesBuilder bb = new BytesBuilder();

            bb.Append(data
                      ).Append(ESHelper.Pack(ref info));

            this.SendMessage(bb.ToBytes());
        }
Exemple #3
0
        public string Search([FromBody] UserModel userModel)
        {
            //UserModel userModel = new UserModel();
            //userModel.AddTime = DateTime.Now;
            //userModel.Deleted = false;
            //userModel.Dic = "超时的人,的哈哈哈测试测试哈哈哈哈";
            //userModel.Id = 1;
            //userModel.State = 2;
            //userModel.UserName = "******";
            ESHelper eSHelper = new ESHelper();

            eSHelper.CreateIndex("ceshi");
            eSHelper.AddIndex <UserModel>(userModel);
            return("获取成功");
        }
Exemple #4
0
 public void CreateIndexDataTest()
 {
     ESHelper.CreateIndexData();
     Assert.Fail();
 }
Exemple #5
0
 public void Search1Test()
 {
     ESHelper.Search1();
 }
Exemple #6
0
 public void SearchTest()
 {
     ESHelper.Search();
 }
Exemple #7
0
 public void GetMappingTest()
 {
     ESHelper.GetMapping();
 }