private void OnMessagingEvent_MessageReceive(Client client, BroadcastParams broadcastParams, MessagingEventParams messagingEventParams) { MessagingEventParams.ReceiveParams receiveParams = null; try { receiveParams = messagingEventParams.ParametersAs <MessagingEventParams.ReceiveParams>(); } catch (Exception exc) { mLogger.LogWarning(exc, "Failed to parse ReceiveParams"); return; } MessageReceivedHandler(messagingEventParams, receiveParams); }
private void OnMessagingEvent_MessageState(Client client, BroadcastParams broadcastParams, MessagingEventParams messagingEventParams) { MessagingEventParams.StateParams stateParams = null; try { stateParams = messagingEventParams.ParametersAs <MessagingEventParams.StateParams>(); } catch (Exception exc) { mLogger.LogWarning(exc, "Failed to parse StateParams"); return; } MessageStateChangeHandler(messagingEventParams, stateParams); }