Ejemplo n.º 1
0
        public Deferred GetCharacters(Account account)
        {
            var cond = Conductor.GetConductor();

            if (cond == null)
            {
                var res = new List <Character>();
                return(Deferred.Succeed(res));
            }
            var ssvc = cond.GetLocalServiceByInterface <IStorageService>();

            if (ssvc == null)
            {
                var res = new List <Character>();
                return(Deferred.Succeed(res));
            }
            var keys = StorageUtilities.GenerateGenericStorageKeys(StorageLevel.Account, ssvc, account, null);

            return(ssvc.LoadList <Character>(keys));
        }