public EntityMerge GetEntityMerge(EntityCacheType type, IOrganizationService service)
 {
     switch (type)
     {
     case EntityCacheType.Customer:
         return(new EntityMergeCustomer(service));
     }
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
 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;
     }
 }