LoadAllCharactersForAccountToCache() public méthode

Dumps everything of a single type into the cache from the filesystem for BackingData
public LoadAllCharactersForAccountToCache ( string accountHandle ) : bool
accountHandle string
Résultat bool
        private static IEnumerable<ICharacter> EnsureAccountCharacters(string accountHandle)
        {
            //No shenanigans
            if(String.IsNullOrWhiteSpace(accountHandle))
                return Enumerable.Empty<ICharacter>();

            var chars = BackingCache.GetAll<ICharacter>().Where(ch => ch.AccountHandle.Equals(accountHandle, StringComparison.InvariantCultureIgnoreCase));

            if(!chars.Any())
            {
                var pData = new PlayerData();

                pData.LoadAllCharactersForAccountToCache(accountHandle);
            }

            return chars;
        }