Exemplo n.º 1
0
 private Action <T> WrapAction <T>(SlaveEventType type, Action <T> action) => input =>
 {
     action(input);
     Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this));
 };
Exemplo n.º 2
0
 /// <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));
Exemplo n.º 3
0
 private Action WrapAction(SlaveEventType type, Action action) => () =>
 {
     action();
     Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this));
 };
Exemplo n.º 4
0
 public SlaveEvent(SlaveEventType eventType, Slave slave, object data = null)
     : base((int)eventType, slave, data)
 {
 }