protected override IInventorRepository CreateInventorStore() { Region region = CreateRegion(); cache = new GemFireCache(region); context.ObjectFactory.RegisterSingleton("inventors", cache); ProxyFactory pf = new ProxyFactory(new InventorRepository()); pf.AddAdvisors(cacheAspect); Repository = (IInventorRepository)pf.GetProxy(); return Repository; }