예제 #1
0
 /// <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;
 }
예제 #2
0
 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();
 }
예제 #3
0
 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));
 }
예제 #4
0
 /// <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;
 }
예제 #5
0
 public EscapeApp(ICacheHost cacheHost, IViewPlatform viewPlatform)
     : base("EscapeApp")
 {
     this.CacheHost    = cacheHost;
     this.ViewPlatform = viewPlatform;
 }