コード例 #1
0
        public Action Copy()
        {
            Server.Application.Action serverAction = (Server.Application.Action)ToServerObject();

            Action copiedAction = new Action(application, serverAction);

            return(copiedAction);
        }
コード例 #2
0
        public override Object ToServerObject()
        {
            Server.Application.Action serverAction = new Server.Application.Action();

            MapToServerObject(serverAction);

            return(serverAction);
        }
コード例 #3
0
        public virtual void MapToServerObject(Server.Application.Action serverAction)
        {
            base.MapToServerObject((Server.Application.CoreObject)serverAction);


            serverAction.DescribingParameterName = describingParameterName;


            // COPY DO NOT REFERENCE

            serverAction.ActionParameters = new Dictionary <String, Server.Application.ActionParameter> ();

            foreach (String currentParameterName in actionParameters.Keys)
            {
                serverAction.ActionParameters.Add(currentParameterName, application.CopyActionParameter(actionParameters[currentParameterName]));
            }

            return;
        }
コード例 #4
0
        public Action(Application applicationReference, Server.Application.Action serverAction)
        {
            BaseConstructor(applicationReference, serverAction);


            describingParameterName = serverAction.DescribingParameterName;


            // COPY, DO NOT REFERENCE

            actionParameters = new Dictionary <String, Server.Application.ActionParameter> ();

            foreach (String currentParameterName in serverAction.ActionParameters.Keys)
            {
                actionParameters.Add(currentParameterName, application.CopyActionParameter(serverAction.ActionParameters[currentParameterName]));
            }

            return;
        }