public MemberLocation Get(Guid teamId, Guid memberId)
        {
            var db = this.connection.GetDatabase();

            var            value = (string)db.HashGet(teamId.ToString(), memberId.ToString());
            MemberLocation ml    = MemberLocation.FromJsonString(value);

            return(ml);
        }
        private IList <MemberLocation> ConvertRedisValsToLocationList(RedisValue[] vals)
        {
            List <MemberLocation> memberLocations = new List <MemberLocation>();

            foreach (var t in vals)
            {
                var            val = (string)t;
                MemberLocation ml  = MemberLocation.FromJsonString(val);
                memberLocations.Add(ml);
            }

            return(memberLocations);
        }
        private IList <MemberLocation> ConvertRedisValsToLocationList(RedisValue[] vals)
        {
            List <MemberLocation> memberLocations = new List <MemberLocation>();

            for (int x = 0; x < vals.Length; x++)
            {
                string         val = (string)vals[x];
                MemberLocation ml  = MemberLocation.FromJsonString(val);
                memberLocations.Add(ml);
            }

            return(memberLocations);
        }
Esempio n. 4
0
        private IList <MemberLocation> ConvertRedisValuesToLocationList(RedisValue[] values)
        {
            var memberLocations = new List <MemberLocation>();

            for (int i = 0; i < values.Length; i++)
            {
                var value          = (string)values[i];
                var memberLocation = MemberLocation.FromJsonString(value);
                memberLocations.Add(memberLocation);
            }

            return(memberLocations);
        }