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