Kooboo.Commerce.Categories.CategoryTree.Get C# (CSharp) Méthode

Get() public static méthode

public static Get ( string instance ) : CategoryTree
instance string
Résultat CategoryTree
        public static CategoryTree Get(string instance)
        {
            Require.NotNullOrEmpty(instance, "instance");

            return _caches.GetOrAdd(instance, instanceName =>
            {
                var manager = EngineContext.Current.Resolve<ICommerceInstanceManager>();
                return BuildFrom(manager.GetInstance(instanceName).Database.Repository<Category>().Query().ToList());
            });
        }