Пример #1
0
            public static void Handle(IClientMessage clientMessage, HandleDistributedObject handleDistributedObject)
            {
                var messageType = clientMessage.GetMessageType();

                if (messageType == EventMessageConst.EventDistributedObject)
                {
                    var name        = clientMessage.GetStringUtf8();
                    var serviceName = clientMessage.GetStringUtf8();
                    var eventType   = clientMessage.GetStringUtf8();
                    handleDistributedObject(name, serviceName, eventType);
                    return;
                }
                Hazelcast.Logging.Logger.GetLogger(typeof(AbstractEventHandler))
                .Warning("Unknown message type received on event handler :" + clientMessage.GetMessageType());
            }
 public static void Handle(IClientMessage clientMessage, HandleDistributedObject handleDistributedObject)
 {
     int messageType = clientMessage.GetMessageType();
     if (messageType == EventMessageConst.EventDistributedObject)
     {
         string name = null;
         name = clientMessage.GetStringUtf8();
         string serviceName = null;
         serviceName = clientMessage.GetStringUtf8();
         string eventType = null;
         eventType = clientMessage.GetStringUtf8();
         handleDistributedObject(name, serviceName, eventType);
         return;
     }
     Hazelcast.Logging.Logger.GetLogger(typeof(AbstractEventHandler)).Warning("Unknown message type received on event handler :" + clientMessage.GetMessageType());
 }