MethodQueueAdd() public static method

Adds a method to the queue
public static MethodQueueAdd ( string objectName, string method, string param1, string param2, string plugin ) : void
objectName string
method string
param1 string
param2 string
plugin string
return void
        public static void RunPatternScript(string pattern, string parameter, string from)
        {
            List <int> scriptIDs = GetScriptsForPattern(pattern);

            foreach (int scriptID in scriptIDs)
            {
                OSAEMethodManager.MethodQueueAdd(GetDestinationScriptProcessor(scriptID), "RUN SCRIPT", scriptID.ToString(), parameter, from);
            }
        }
Ejemplo n.º 2
0
 public void Run()
 {
     if (Id == 0)
     {
         throw new ArgumentException("Cannot invoke run when Id is not available");
     }
     if (string.IsNullOrEmpty(MethodName))
     {
         throw new ArgumentException("Cannot invoke run when method name is not available");
     }
     if (string.IsNullOrEmpty(ObjectName))
     {
         ObjectName = GetObjectNameFromMethodId(Id);
     }
     OSAEMethodManager.MethodQueueAdd(ObjectName, MethodName, Parameter1, Parameter2, FromObject);
 }
Ejemplo n.º 3
0
        public void Run()
        {
            if (this.Id == null | this.Id == 0)
            {
                throw new ArgumentException("Cannot invoke run when Id is not available");
            }

            if (string.IsNullOrEmpty(this.MethodName))
            {
                throw new ArgumentException("Cannot invoke run when method name is not available");
            }

            if (string.IsNullOrEmpty(this.ObjectName))
            {
                this.ObjectName = GetObjectNameFromMethodId(Id);
            }

            OSAEMethodManager.MethodQueueAdd(this.ObjectName, this.MethodName, this.Parameter1, this.Parameter2, "API");
        }
Ejemplo n.º 4
0
        public static void RunScript(string scriptname, string scriptparameter, string from)
        {
            int iScriptID = OSAEScriptManager.GetScriptID(scriptname);

            OSAEMethodManager.MethodQueueAdd(GetDestinationScriptProcessor(iScriptID), "RUN SCRIPT", iScriptID.ToString(), scriptparameter, from);
        }