Пример #1
0
        public static T Generated <T>(this Config cfg, bool loadSync = true) where T : class
        {
            var ret = GeneratedStoreImpl.Create <T>();

            cfg.SetStore(ret as IConfigStore);
            if (loadSync)
            {
                cfg.LoadSync();
            }
            else
            {
                cfg.LoadAsync();
            }

            return(ret);
        }
Пример #2
0
 public static T Create <T>() where T : class
 => GeneratedStoreImpl.Create <T>();