Exemple #1
0
    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;
        }
    }
Exemple #2
0
 public AlwaysRememberCache(LoadObjectAsync <Arguments, ObjectToCache> loadObjectDelegate)
     : this()
 {
     this.loadObjectAsyncDelegate = loadObjectDelegate;
 }