Exemple #1
0
        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();
        }
Exemple #2
0
 public override void Run(IPsOscEngine engine)
 {
     if (String.IsNullOrEmpty(Data))
     {
         engine.SendOscMessage(Address);
     }
     else
     {
         engine.SendOscMessage(Address, ConvertValue());
     }
 }
Exemple #3
0
 public abstract void Run(IPsOscEngine engine);
Exemple #4
0
 public override void Run(IPsOscEngine engine)
 {
     throw new NotImplementedException();
 }