Esempio n. 1
0
        public IActionSpec[] GetLocallyContributedActions(ITypeSpec typeSpec, string id)
        {
            if (!locallyContributedActions.ContainsKey(id))
            {
                locallyContributedActions[id] = ObjectActions.Where(oa => oa.IsLocallyContributedTo(typeSpec, id)).ToArray();
            }

            return(locallyContributedActions[id]);
        }
 private void DecorateAllFacets(IFacetDecoratorSet decorator)
 {
     decorator.DecorateAllHoldersFacets(this);
     Fields.ForEach(decorator.DecorateAllHoldersFacets);
     ObjectActions.Where(s => s != null).ForEach(action => DecorateAction(decorator, action));
 }