public static void Handle(IClientMessage clientMessage, HandleTopic handleTopic) { var messageType = clientMessage.GetMessageType(); if (messageType == EventMessageConst.EventTopic) { var item = clientMessage.GetData(); var publishTime = clientMessage.GetLong(); var uuid = clientMessage.GetStringUtf8(); handleTopic(item, publishTime, uuid); return; } Hazelcast.Logging.Logger.GetLogger(typeof(AbstractEventHandler)) .Warning("Unknown message type received on event handler :" + clientMessage.GetMessageType()); }
public static void Handle(IClientMessage clientMessage, HandleTopic handleTopic) { var messageType = clientMessage.GetMessageType(); if (messageType == EventMessageConst.EventTopic) { IData item = null; item = clientMessage.GetData(); long publishTime; publishTime = clientMessage.GetLong(); string uuid = null; uuid = clientMessage.GetStringUtf8(); handleTopic(item, publishTime, uuid); return; } Logger.GetLogger(typeof (AbstractEventHandler)) .Warning("Unknown message type received on event handler :" + clientMessage.GetMessageType()); }