public EntityMerge GetEntityMerge(EntityCacheType type, IOrganizationService service) { switch (type) { case EntityCacheType.Customer: return(new EntityMergeCustomer(service)); } throw new NotImplementedException(); }
public EntityCache(EntityCacheType type = EntityCacheType.Normal) { if (currentCache.Value == null || type != EntityCacheType.Normal) { oldCache = currentCache.Value; currentCache.Value = new RealEntityCache(type == EntityCacheType.ForceNewSealed); } else { facked = true; } }