예제 #1
0
        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);
        }
예제 #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);
 }
예제 #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);
 }
예제 #4
0
        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);
        }
예제 #5
0
 public void Accept(IVisitCacheable visitor)
 {
     visitor.Visit(this);
 }
예제 #6
0
 public void Accept(IVisitCacheable visitor)
 {
     visitor.Visit(this);
 }