Пример #1
0
        // static GameManager  gamemanager = new GameManager("")
        static void Main(string[] args)
        {
            try
            {
                //   redis.HashDelete("GameBasicInfo", "-1");
                _websockerRuner.InitSocket();
                //var r = GameTest.GetRoom();

                //  GameTest.DoSomethine();

                //var roomSeatKey = GK.Room_Seat("03258363");
                //var dicSeat = redis.HashFindAll(roomSeatKey);
                // PushSharp ps = new PushSharp();
                //ps.StartServer();

                //ps.SendMsg();
                //
                //var r = redis.HashAdd("TestKey", "Field", "shanghai");
                //r = redis.HashAdd("TestKey", "Field", "shanghai");
                // string s = redis.HashGet(GK.GameStatus, "03077460");
                //  Console.WriteLine(s);
                //redis.HashAdd("TestKey", "Field", s);
                //s = redis.HashGet("TestKey", "Field");


                //   redis.WriteSortedSet2<string>("test1", "abc", 0);
                //  var r = redis.FindSortedSet<string>("test1");
                // RedisValue rv = JsonConvert.SerializeObject("abc");


                //var s = redis.AdjustScore("Room_AllRoom_0", "02190154", -1);
                //Console.WriteLine(s);


                Console.Read();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.Read();
            }
            finally
            {
            }
        }