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