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) { 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 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); }