Ejemplo n.º 1
0
        public virtual void Execute(UniformPair <EventBean[]> result)
        {
            DataMap[] newData;
            DataMap[] oldData;

            if (result == null)
            {
                newData = null;
                oldData = null;
            }
            else
            {
                newData = Convert(result.First);
                oldData = Convert(result.Second);
            }

            var paramList = new object[] { newData, oldData };

            try {
                _fastMethod.Invoke(_subscriber, paramList);
            }
            catch (TargetInvocationException e) {
                ResultDeliveryStrategyImpl.Handle(_statement.Name, Log, e, paramList, _subscriber, _fastMethod);
            }
        }
Ejemplo n.º 2
0
        public override void Execute(UniformPair<EventBean[]> result)
        {
            IDictionary<string, object>[] newData;
            IDictionary<string, object>[] oldData;

            if (result == null) {
                newData = null;
                oldData = null;
            }
            else {
                newData = Convert(result.First);
                oldData = Convert(result.Second);
            }

            var parameters = new object[] {_statement, newData, oldData};
            try {
                _fastMethod.Invoke(_subscriber, parameters);
            }
            catch (TargetInvocationException e) {
                ResultDeliveryStrategyImpl.Handle(_statement.Name, Log, e, parameters, _subscriber, _fastMethod);
            }
        }