Ejemplo n.º 1
0
        public ActionXmlSet Read()
        {
            ScriptObject script = ServerApiInvoker.Get_Script(scriptId);

            ActionXmlSet xmlset = new ActionXmlSet()
            {
                XmlAction = script.Script,
                SchemaSet = new ActionSchemaSet()
            };

            Schema schema = null;

            if (Convert.ToInt32(schemaId) > 0)
            {
                schema = ServerApiInvoker.GetSchema(schemaId);
            }

            SchemaObject sco = null;

            if (Convert.ToInt32(schemaObjectId) > 0)
            {
                sco = ServerApiInvoker.GetSchemaObject(schemaObjectId);
            }
            if (schema != null)
            {
                xmlset.SchemaSet = new ActionSchemaSet(schema.DisplayName, schema.JsonObject, sco.JsonValue);
            }
            return(xmlset);
        }
Ejemplo n.º 2
0
        public ActionXmlSet Read()
        {
            RecorderProtocol protocol = identity as RecorderProtocol;

            if (protocol == null)
            {
                throw new ArgumentException();
            }
            ScriptObject scriptObject = ServerApiInvoker.Get_Script(protocol.ScriptId);

            xmlset = CreateActionXmlSet(scriptObject);
            return(xmlset);
        }
Ejemplo n.º 3
0
 public ActionXmlSet GetModulerModel(string modulerId)
 {
     return(CreateActionXmlSet(ServerApiInvoker.Get_Script(identity.WebsiteId, modulerId)));
 }