// Invoked when a network event is received public void On_ReceivedEvent(object sender, ReceivedPayload <IProtocolEvent> payload) { if (payload.Payload.Channel == _channel) { payload.Payload.ProcessProtocolEvent(null, this); } }
public void On_ReceivedEvent(object sender, ReceivedPayload <IProtocolEvent> payload) { log.Debug("RECV: [{0}] {1}", this, payload.Payload); if (_channels.ContainsKey(payload.Payload.Channel)) { return; } Channel channel = GetChannel(payload.Payload.Channel); channel.On_ReceivedEvent(sender, payload); }