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);
            }
        }
Exemple #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);
 }
Exemple #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");
        }
Exemple #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);
        }