public ListDelegate(LoadObjectAsync loadAction, bool cached = true) : base(loadAction.Target, loadAction.Method) { LoadAction = loadAction; CacheEnabled = cached; MethodInfo = loadAction.Method; Name = MethodInfo.Name.WordSpaced(); NameAttribute attribute = MethodInfo.GetCustomAttribute <NameAttribute>(); if (attribute != null) { Name = attribute.Name; } }
public AlwaysRememberCache(LoadObjectAsync <Arguments, ObjectToCache> loadObjectDelegate) : this() { this.loadObjectAsyncDelegate = loadObjectDelegate; }