public void Populate() { foreach (var info in storage.ReadBundleMetainfos()) { bundles[info.BundleId] = info; } }
public void Populate() { foreach (var info in storage.ReadBundleMetainfos()) { if (info == null) { continue; } bundles[info.BundleId] = info; } }
public void Populate() { var sw = new Stopwatch(); sw.Start(); foreach (var info in storage.ReadBundleMetainfos().Result) { if (info == null) { continue; } bundles[info.BundleId] = info; } sw.Stop(); Console.WriteLine($"Finished populating BundleRepository in {sw.Elapsed}"); }