Наследование: Zetbox.API.Utils.Cache
Пример #1
0
 private static void PrimeCaches(Toolkit?tk, IReadOnlyZetboxContext ctx)
 {
     if (_pmdCache == null)
     {
         _pmdCache = new ViewModelDescriptorCache(ctx);
     }
     if (tk.HasValue && !_viewCaches.ContainsKey(tk.Value))
     {
         _viewCaches[tk.Value] = ViewDescriptorToolkitCache.Content.CreateCache(tk.Value, ctx);
     }
 }
Пример #2
0
 private static void PrimeCaches(Toolkit? tk, IReadOnlyZetboxContext ctx)
 {
     if (_pmdCache == null)
     {
         _pmdCache = new ViewModelDescriptorCache(ctx);
     }
     if (tk.HasValue && !_viewCaches.ContainsKey(tk.Value))
     {
         _viewCaches[tk.Value] = ViewDescriptorToolkitCache.Content.CreateCache(tk.Value, ctx);
     }
 }