public void TryCache(Type sourceType,IVisitCacheable visitor,IResolveValue resolver)
        {
            var propertyNameResolver = resolver as PropertyNameResolver;
            if(propertyNameResolver==null)
                return;

            var sourced = propertyNameResolver.SourcedBy(sourceType);
            visitor.Visit(sourced);
        }
Esempio n. 2
0
 public void Accept(IVisitCacheable visitor)
 {
     foreach (var sourceContext in SourceContexts.OfType<ICacheable>())
     {
         sourceContext.Accept(visitor);
     }
     foreach (var cachedDestinationProp in DestinationProperties.OfType<ICacheable>())
     {
         cachedDestinationProp.Accept(visitor);
     }
     visitor.Visit(this);
 }
Esempio n. 3
0
 public void Accept(IVisitCacheable visitor)
 {
     foreach (var sourceContext in SourceContexts.OfType <ICacheable>())
     {
         sourceContext.Accept(visitor);
     }
     foreach (var cachedDestinationProp in DestinationProperties.OfType <ICacheable>())
     {
         cachedDestinationProp.Accept(visitor);
     }
     visitor.Visit(this);
 }
        public void TryCache(Type sourceType, IVisitCacheable visitor, IResolveValue resolver)
        {
            var propertyNameResolver = resolver as PropertyNameResolver;

            if (propertyNameResolver == null)
            {
                return;
            }

            var sourced = propertyNameResolver.SourcedBy(sourceType);

            visitor.Visit(sourced);
        }
 public void Accept(IVisitCacheable visitor)
 {
     visitor.Visit(this);
 }
 public void Accept(IVisitCacheable visitor)
 {
     visitor.Visit(this);
 }