From 490f3eeebd2e3b164de17dea09a7e55670a3360e Mon Sep 17 00:00:00 2001 From: ahmed Date: Sun, 24 Aug 2025 20:50:34 +0300 Subject: [PATCH] 11 --- Esiur/Resource/Warehouse.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Esiur/Resource/Warehouse.cs b/Esiur/Resource/Warehouse.cs index bfde8cf..834d7ab 100644 --- a/Esiur/Resource/Warehouse.cs +++ b/Esiur/Resource/Warehouse.cs @@ -436,7 +436,6 @@ public class Warehouse var location = path.TrimStart('/').Split('/'); - IResource parent = null; IStore store = null; var instanceName = location.Last(); @@ -446,7 +445,7 @@ public class Warehouse if (!(resource is IStore)) throw new Exception("Resource is not a store, root level path is not allowed."); - + store = (IStore)resource; } if (location.Length == 1 && @@ -478,15 +477,16 @@ public class Warehouse resource.Instance = new Instance(this, resourceCounter++, instanceName, resource, store, customTemplate, age); - + if (attributes != null) if (attributes is Map attrs) resource.Instance.SetAttributes(attrs); else resource.Instance.SetAttributes(Map.FromObject(attributes)); - if (manager != null) - resource.Instance.Managers.Add(manager); + + //if (manager != null) + // resource.Instance.Managers.Add(manager); //if (store == parent) // parent = null;