public Action Copy() { Server.Application.Action serverAction = (Server.Application.Action)ToServerObject(); Action copiedAction = new Action(application, serverAction); return(copiedAction); }
public override Object ToServerObject() { Server.Application.Action serverAction = new Server.Application.Action(); MapToServerObject(serverAction); return(serverAction); }
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; }
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; }