Exemple #1
0
        private async Task <CharacterCache> GetCharacterCacheCoreAsync(bool blnSync)
        {
            string strPath = FilePath;

            if (!string.IsNullOrEmpty(strPath))
            {
                CharacterCache objReturn;
                if (blnSync)
                {
                    // ReSharper disable once MethodHasAsyncOverload
                    objReturn = new CharacterCache(strPath);
                }
                else
                {
                    objReturn = await CharacterCache.CreateFromFileAsync(strPath);
                }
                return(objReturn);
            }
            return(null);
        }