public void Invoke(InvokerArgs args = null) { foreach (Type command in CommandTypes) { Command c = (Command)Activator.CreateInstance(command); DIUtil.InjectProps(c); c.Execute(args); } Invoked(this, new InvokedEventArgs(args)); }
public virtual void Invoke(InvokerArgs args = null) { foreach (Type command in CommandTypes) { Command c = (Command)Activator.CreateInstance(command); DIUtil.InjectProps(c); if (c.Detained) { c.Released += HandleCommandRelease; detainedCommands.Add(c); } c.Execute(args); } Invoked(this, new InvokedEventArgs(args)); }
public void Start(Invoker invoker, InvokerArgs args = null) { ArgsMap.Clear(); invoker.Invoke(args); }
public abstract void Execute(InvokerArgs args);
public InvokedEventArgs(InvokerArgs invokerArgs) { this.invokerArgs = invokerArgs; }
public virtual void Execute(InvokerArgs args) { }