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
コード例 #1
0
        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);
            }
        }
コード例 #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);
 }
コード例 #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");
        }
コード例 #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);
        }