/// <summary> /// Not the standard IoC, but it'll work just fine /// </summary> public static void RegisterDependencies(ICacheFileStore cacheStore, ICacheHost cacheHost, IEscapeApp escapeApp, IViewPlatform platform) { Container.ViewPlatform = platform; Container.EscapeApp = escapeApp; Container.CacheStore = cacheStore; Container.CacheHost = cacheHost; Container.ViewPlatform = platform; }
public StencilApp(IViewPlatform platform, ICacheHost cacheHost, IDataCache dataCache, string apiBaseUrl) : base("StencilApp") { this.ApiBaseUrl = apiBaseUrl; this.CacheHost = cacheHost; this.DataCache = dataCache; this.ViewPlatform = platform; this.AppConfig = new AppConfig(); }
public DataCache(ICacheHost cacheHost) : base("DataCache") { this.CacheHost = cacheHost; this.CachedData = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase); this.Executing = new HashSet <string>(); this.Filters = new Dictionary <string, IDataCacheFilter>(StringComparer.OrdinalIgnoreCase); this.Filters.Add(SizeDataCacheFilter.NAME, new SizeDataCacheFilter(100000, 20, 5)); }
/// <summary> /// Not the standard IoC, but it'll work just fine /// </summary> public static void RegisterDependencies(IFileStore fileStore, ICacheHost cacheHost, IDataCache dataCache, IStencilApp stencilApp, IViewPlatform platform, IMediaUploader mediaUploader) { Container.ViewPlatform = platform; Container.StencilApp = stencilApp; Container.FileStore = fileStore; Container.DataCache = dataCache; Container.CacheHost = cacheHost; Container._mediaUploader = mediaUploader; }
public EscapeApp(ICacheHost cacheHost, IViewPlatform viewPlatform) : base("EscapeApp") { this.CacheHost = cacheHost; this.ViewPlatform = viewPlatform; }