Ejemplo n.º 1
0
 protected MethodsBaseComponent(ICacheComponent cacher, IPropertyComponent properties, Members <T> collection)
 {
     _properties        = properties;
     _collection        = collection;
     _queryStore        = cacher.Memoize <Type, object, IEnumerable <T> >((o, a) => Query(this, o, a));
     _flaggedQueryStore = cacher.Memoize <Type, object, BindingFlags, IEnumerable <T> >((o, a, f) => Query(this, o, a, f));
 }
Ejemplo n.º 2
0
 public AttributeComponent(ICacheComponent cacheComponent)
 {
     _getAttributes = cacheComponent.Memoize <object, IEnumerable <Attribute> >(GetCustomAttributesImpl);
 }