Beispiel #1
0
        public void DependsOn(params string[] keys)
        {
            var objects = Manager.GetDependsOnObjects(keys);

            DependsOnItems.AddRange(objects);
            Array.ForEach(objects, x => x.DependsByItems.Add(this));
        }
Beispiel #2
0
        public void Rebuild()
        {
            if (TagForUpdate)
            {
                try
                {
                    foreach (var dependentObject in DependsOnItems)
                    {
                        dependentObject.Rebuild();
                    }

                    Value = BuildFromDependents(this, DependsOnItems.ToArray());
                    ClearTagForUpdate();
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.GetDetail());
                }
            }
        }