Esempio n. 1
0
 public virtual IEnumerator LoadWithEnumerator(string fileUrl, K entity, AsyncLoad <T> asyncLoad)
 {
     this.entity       = entity;
     this.isInProgress = true;
     this.asyncLoad    = asyncLoad;
     yield return(chainLoader?.Load(fileUrl, FinishLoad, ErrorLoad, ProgressLoad));
 }
Esempio n. 2
0
    public IEnumerator Load(string source)
    {
        breakChain = false;
        sourceKey  = source;

        if (showTime)
        {
            time = System.DateTime.Now.Ticks;
        }

        yield return(BeforeLoad(source));

        if (childLoader != null && !breakChain)
        {
            yield return(childLoader.Load(sourceKey));
        }
    }