withSIX.Mini.Infra.Data.Services.DbContexts.DbContexts C# (CSharp) Method

DbContexts() public method

public DbContexts ( ILocalCache cache, Func apiCacheCreator, ISettingsStorage settingsStorage ) : System
cache ILocalCache
apiCacheCreator Func
settingsStorage ISettingsStorage
return System
        public DbContexts(ILocalCache cache, Func<ApiContext> apiCacheCreator, ISettingsStorage settingsStorage) {
            _cache = cache;
            _apiCacheCreator = apiCacheCreator;
            _gameContext = new Lazy<IGameContext>(Factory);
            _apiContext = new Lazy<IApiContext>(ApiFactory);
            _settingsContext = new Lazy<ISettingsStorage>(() => settingsStorage);
            _contentLinkContext =
                new Lazy<IContentFolderLinkContext>(
                    () =>
                        new ContentFolderLinkContext(
                            Common.Paths.LocalDataPath.GetChildFileWithName("folderlink.json")));
        }