Example #1
0
        private Task Initialize()
        {
            return(ExecuteSafe(async() =>
            {
                using (await _asyncLock.LockAsync())
                {
                    if (_isInitialized)
                    {
                        return;
                    }

                    _isInitialized = true;
                    ThemeManager.AddThemes(await _themeGenericRepository.GetAllAsync());
                }
            }));
        }