private void CreateRegionAndDoWork(IGeodeCache cache, string regionName, RegionShortcut regionType)
 {
     using (var regionFactory = cache.CreateRegionFactory(regionType))
     {
         using (var region = regionFactory.CreateRegion(regionName))
         {
             doPutsAndGets(region);
             DoRemoves(region);
         }
     }
 }
 public RegionFactory CreateRegionFactory(RegionShortcut regionType)
 {
     return(new RegionFactory(_containedObject, regionType));
 }
 internal RegionFactory(IntPtr cache, RegionShortcut regionType)
 {
     _containedObject = apache_geode_Cache_CreateRegionFactory(cache, (int)regionType);
 }