/// <summary> /// Enable caching for this federation and use the supplied IFederationCache as the underlying store for /// the caching. By using this method, you can pass in a cache that's smarter about memory allocation and /// resource utilization than the GenericCache used by default. /// </summary> /// <param name="aCache"></param> public void EnableCaching(IFederationCache aCache) { _FederationCacheManager = new FederationCacheManager(this, aCache); }
public FederationCacheManager(Federation aFed, IFederationCache cache) { // Hook the update events aFed.FederationUpdated += new Federation.FederationUpdateEventHandler(FederationUpdated); _Cache = cache; }