Exemplo n.º 1
0
        public static void handleBrokerStatUpdate(Message message, Communication communication)
        {
            Broker myBrokerUpdate = new Broker();

            myBrokerUpdate =
                ConfigurationUtility.GetBrokerByApplicationAndCommunication(communication, myBrokerUpdate);
            myBrokerUpdate.lastMessageId   = message.id;
            myBrokerUpdate.lastMessageDTTM = DateTime.Now;
            BrokerDAO.UpdateAppBrokerProperty(myBrokerUpdate, BrokerDAO.Property.Stats);

            // update the inbound one because it won't for some reason work on the inbound service
            myBrokerUpdate.id = 2;
            BrokerDAO.UpdateAppBrokerProperty(myBrokerUpdate, BrokerDAO.Property.Stats);
        }