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); }
public static T Create <T>() where T : class => GeneratedStoreImpl.Create <T>();