void HandleMarketingMessageUpdate(IPacketMsg packetMsg) { var marketingMessage = new ClientMsg <MsgClientMarketingMessageUpdate2>(packetMsg); byte[] payload = marketingMessage.Payload.ToArray(); var callback = new MarketingMessageCallback(marketingMessage.Body, payload); this.Client.PostCallback(callback); }
void HandleMarketingMessageUpdate( IPacketMsg packetMsg ) { var marketingMessage = new ClientMsg<MsgClientMarketingMessageUpdate2>( packetMsg ); byte[] payload = marketingMessage.Payload.ToArray(); var callback = new MarketingMessageCallback( marketingMessage.Body, payload ); this.Client.PostCallback( callback ); }