Exemple #1
0
        protected virtual void EventingHandler_Received(object sender, BasicDeliverEventArgs ea)
        {
            try {
                RabbitConnection.BasicAck(ea.DeliveryTag, false);

                byte[] body = ea.Body;
                handlerItem.Execute(ea.Body);
                if (handlerItem.IsNeedDispose)
                {
                    Dispose();
                }
            } catch (Exception ex) {
                ReturnOnErorr(ea.Body);
                Log.Error(ex);
            }
        }