public override void Run(IPsOscEngine engine) { var scriptData = File.ReadAllText(ScriptFilename); Engine.Instance.PowerShell.StartPipeline(); Engine.Instance.PowerShell.RegisterVariable("PsOscEvent", this); Engine.Instance.PowerShell.AddScript(scriptData); Engine.Instance.PowerShell.Invoke(); }
public override void Run(IPsOscEngine engine) { if (String.IsNullOrEmpty(Data)) { engine.SendOscMessage(Address); } else { engine.SendOscMessage(Address, ConvertValue()); } }
public abstract void Run(IPsOscEngine engine);
public override void Run(IPsOscEngine engine) { throw new NotImplementedException(); }