示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="slave"></param>
 private void FireSlaveDisconnected(Slave slave)
 {
     m_slaveById.Remove(slave.Id);
     Slave.PostEvent(new SlaveEvent(SlaveEventType.Disconnected, slave));
 }
示例#2
0
 /// <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));
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="slave"></param>
 private void FireSlaveConnected(Slave slave) =>
 Slave.PostEvent(new SlaveEvent(SlaveEventType.Connected, slave));