/// <summary> /// /// </summary> /// <param name="slave"></param> private void FireSlaveDisconnected(Slave slave) { m_slaveById.Remove(slave.Id); Slave.PostEvent(new SlaveEvent(SlaveEventType.Disconnected, slave)); }
/// <summary> /// /// </summary> /// <param name="slave"></param> /// <param name="message"></param> private void FireSlaveIncommingMessage(Slave slave, NetMessage message) => Slave.PostEvent(new SlaveEvent(SlaveEventType.IncommingMessage, slave, message));
/// <summary> /// /// </summary> /// <param name="slave"></param> private void FireSlaveConnected(Slave slave) => Slave.PostEvent(new SlaveEvent(SlaveEventType.Connected, slave));