Esempio n. 1
0
        private IMessage Update(DataMessage dataMessage)
        {
            IList body  = dataMessage.body as IList;
            IList list2 = body[0] as IList;

            if ((list2 != null) && (list2.Count != 0))
            {
                IAssembler assembler = this.GetAssembler();
                if (assembler != null)
                {
                    if ((log != null) && log.get_IsDebugEnabled())
                    {
                        log.Debug(assembler.GetType().FullName + " Update");
                    }
                    assembler.UpdateItem(body[2], body[1], body[0] as IList);
                }
            }
            return(dataMessage);
        }
Esempio n. 2
0
        private IMessage Update(DataMessage dataMessage)
        {
            IList parameters   = dataMessage.body as IList;
            IList changeObject = parameters[0] as IList;

            if (changeObject == null || changeObject.Count == 0)
            {
                return(dataMessage);
            }

            IAssembler assembler = GetAssembler();

            if (assembler != null)
            {
                if (log != null && log.IsDebugEnabled)
                {
                    log.Debug(assembler.GetType().FullName + " Update");
                }
                assembler.UpdateItem(parameters[2], parameters[1], parameters[0] as IList);
            }
            return(dataMessage);
        }