private Action <T> WrapAction <T>(SlaveEventType type, Action <T> action) => input => { action(input); Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this)); };
/// <summary> /// /// </summary> /// <param name="type"></param> /// <param name="data"></param> protected void FireSlaveEvent(SlaveEventType type, object data) => Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, data));
private Action WrapAction(SlaveEventType type, Action action) => () => { action(); Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this)); };
public SlaveEvent(SlaveEventType eventType, Slave slave, object data = null) : base((int)eventType, slave, data) { }