Exemplo n.º 1
0
        public async override Task Execute()
        {
            var i    = OrderHelper.GetOrderID();
            var data = await RedisDB.StringGetAsync(i.ToString());

            var item = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(data);
        }
Exemplo n.º 2
0
        public override Task Execute()
        {
            var i      = OrderHelper.GetOrderID();
            var values = cli.GetAll <Northwind.Data.Order>(new string[] { i.ToString(), (i + 1).ToString() });

            return(base.Execute());
        }
Exemplo n.º 3
0
 public async override Task Execute()
 {
     var id = OrderHelper.GetOrderID();
     await RedisDB.MGet <Northwind.Data.Order, Northwind.Data.Order>
         (id.ToString(),
         (id + 1).ToString());
 }
Exemplo n.º 4
0
        public override Task Execute()
        {
            var i    = OrderHelper.GetOrderID();
            var data = cli.Get <Northwind.Data.Order>(i.ToString());

            return(base.Execute());
        }
Exemplo n.º 5
0
        public async override Task Execute()
        {
            var i    = OrderHelper.GetOrderID();
            var data = await RedisDB.StringGetAsync(i.ToString());

            var item = Newtonsoft.Json.JsonConvert.DeserializeObject <Northwind.Data.Order>(data);
        }
Exemplo n.º 6
0
        public override Task Execute()
        {
            var i    = OrderHelper.GetOrderID();
            var data = RedisDB.StringGet(i.ToString());
            var item = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(data);

            return(base.Execute());
        }
Exemplo n.º 7
0
        public override Task Execute()
        {
            var    i = OrderHelper.GetOrderID();
            var    values = RedisDB.StringGet(new RedisKey[] { i.ToString(), (i + 1).ToString() });
            object item1, item2;

            if (!values[0].IsNullOrEmpty)
            {
                item1 = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(values[0]);
            }
            if (!values[1].IsNullOrEmpty)
            {
                item2 = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(values[1]);
            }
            return(base.Execute());
        }
Exemplo n.º 8
0
        public override Task Execute()
        {
            var    i = OrderHelper.GetOrderID();
            var    values = cli.MGet(i.ToString(), (i + 1).ToString());
            object item1, item2;

            if (!string.IsNullOrEmpty(values[0]))
            {
                item1 = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(values[0]);
            }
            if (!string.IsNullOrEmpty(values[1]))
            {
                item2 = System.Text.Json.JsonSerializer.Deserialize <Northwind.Data.Order>(values[1]);
            }
            return(base.Execute());
        }
Exemplo n.º 9
0
        public override Task Execute()
        {
            var    i = OrderHelper.GetOrderID();
            var    values = RedisDB.StringGet(new RedisKey[] { i.ToString(), (i + 1).ToString() });
            object item1, item2;

            if (!values[0].IsNullOrEmpty)
            {
                item1 = Newtonsoft.Json.JsonConvert.DeserializeObject(values[0], typeof(Northwind.Data.Order));
            }
            if (!values[1].IsNullOrEmpty)
            {
                item2 = Newtonsoft.Json.JsonConvert.DeserializeObject(values[1], typeof(Northwind.Data.Order));
            }
            return(base.Execute());
        }
Exemplo n.º 10
0
 public async override Task Execute()
 {
     await RedisDB.Get <Northwind.Data.Order>(OrderHelper.GetOrderID().ToString());
 }