Esempio n. 1
0
        public virtual INakedObject Execute(INakedObject nakedObject, INakedObject[] parameterSet)
        {
            Log.DebugFormat("Execute action {0}.{1}", nakedObject, Id);
            INakedObject[] parms  = RealParameters(nakedObject, parameterSet);
            INakedObject   target = RealTarget(nakedObject);

            return(ActionInvocationFacet.Invoke(target, parms, LifecycleManager, MetamodelManager, Session, nakedObjectManager));
        }
Esempio n. 2
0
        public INakedObjectAdapter Execute(INakedObjectAdapter nakedObjectAdapter, INakedObjectAdapter[] parameterSet)
        {
            INakedObjectAdapter[] parms  = RealParameters(nakedObjectAdapter, parameterSet);
            INakedObjectAdapter   target = RealTarget(nakedObjectAdapter);
            var result = ActionInvocationFacet.Invoke(target, parms, LifecycleManager, MetamodelManager, Session, nakedObjectManager, messageBroker, transactionManager);

            if (result != null && result.Oid == null)
            {
                result.SetATransientOid(new CollectionMemento(LifecycleManager, nakedObjectManager, MetamodelManager, nakedObjectAdapter, this, parameterSet));
            }
            return(result);
        }
        public INakedObjectAdapter Execute(INakedObjectAdapter nakedObjectAdapter, INakedObjectAdapter[] parameterSet)
        {
            var parms  = RealParameters(nakedObjectAdapter, parameterSet);
            var target = RealTarget(nakedObjectAdapter);
            var result = ActionInvocationFacet.Invoke(target, parms, framework);

            if (result != null && result.Oid == null)
            {
                result.SetATransientOid(new CollectionMemento(LifecycleManager, framework.NakedObjectManager, MetamodelManager, loggerFactory.CreateLogger <CollectionMemento>(), nakedObjectAdapter, this, parameterSet));
            }

            return(result);
        }